From 1f672e9e53d134f9a0eaa2ada09ae289797c2165 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 17 Jun 2026 23:12:21 +0000 Subject: [PATCH 1/2] feat: add new FORWARD QuoteType enum in the QuotedMessageMetadata proto docs: update documentation for QuotedMessageMetadata docs: update documentation for enum value `REPLY` in enum `QuoteType` PiperOrigin-RevId: 933892740 Source-Link: https://github.com/googleapis/googleapis/commit/db88feb4756963c6aa9b5996a880cfe5572d0320 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ee36a1b5d0f0001a13a813c808154a1c5c47d3 Copy-Tag: eyJwIjoiQXBwc0NoYXQvLk93bEJvdC55YW1sIiwiaCI6ImExZWUzNmExYjVkMGYwMDAxYTEzYTgxM2M4MDgxNTRhMWM1YzQ3ZDMifQ== --- .../GPBMetadata/Google/Apps/Card/V1/Card.php | 25 + .../proto/src/Google/Apps/Card/V1/Action.php | 431 +++ .../Apps/Card/V1/Action/ActionParameter.php | 108 + .../Apps/Card/V1/Action/Interaction.php | 71 + .../Apps/Card/V1/Action/LoadIndicator.php | 57 + .../src/Google/Apps/Card/V1/BorderStyle.php | 208 ++ .../Apps/Card/V1/BorderStyle/BorderType.php | 63 + .../proto/src/Google/Apps/Card/V1/Button.php | 418 +++ .../src/Google/Apps/Card/V1/Button/Type.php | 86 + .../src/Google/Apps/Card/V1/ButtonList.php | 72 + .../v1/proto/src/Google/Apps/Card/V1/Card.php | 641 ++++ .../Google/Apps/Card/V1/Card/CardAction.php | 115 + .../Apps/Card/V1/Card/CardFixedFooter.php | 143 + .../Google/Apps/Card/V1/Card/CardHeader.php | 230 ++ .../Google/Apps/Card/V1/Card/DisplayStyle.php | 68 + .../Google/Apps/Card/V1/Card/DividerStyle.php | 65 + .../Google/Apps/Card/V1/Card/NestedWidget.php | 143 + .../src/Google/Apps/Card/V1/Card/Section.php | 304 ++ .../src/Google/Apps/Card/V1/Carousel.php | 104 + .../Apps/Card/V1/Carousel/CarouselCard.php | 110 + .../v1/proto/src/Google/Apps/Card/V1/Chip.php | 302 ++ .../src/Google/Apps/Card/V1/ChipList.php | 104 + .../Google/Apps/Card/V1/ChipList/Layout.php | 62 + .../Google/Apps/Card/V1/CollapseControl.php | 181 + .../proto/src/Google/Apps/Card/V1/Columns.php | 93 + .../Google/Apps/Card/V1/Columns/Column.php | 183 + .../V1/Columns/Column/HorizontalSizeStyle.php | 68 + .../V1/Columns/Column/VerticalAlignment.php | 71 + .../Apps/Card/V1/Columns/Column/Widgets.php | 308 ++ .../Google/Apps/Card/V1/DateTimePicker.php | 327 ++ .../V1/DateTimePicker/DateTimePickerType.php | 64 + .../src/Google/Apps/Card/V1/DecoratedText.php | 682 ++++ .../Card/V1/DecoratedText/SwitchControl.php | 244 ++ .../SwitchControl/ControlType.php | 67 + .../proto/src/Google/Apps/Card/V1/Divider.php | 42 + .../v1/proto/src/Google/Apps/Card/V1/Grid.php | 281 ++ .../src/Google/Apps/Card/V1/Grid/GridItem.php | 220 ++ .../Card/V1/Grid/GridItem/GridItemLayout.php | 63 + .../v1/proto/src/Google/Apps/Card/V1/Icon.php | 318 ++ .../proto/src/Google/Apps/Card/V1/Image.php | 165 + .../Google/Apps/Card/V1/ImageComponent.php | 191 + .../Google/Apps/Card/V1/ImageCropStyle.php | 138 + .../Card/V1/ImageCropStyle/ImageCropType.php | 78 + .../src/Google/Apps/Card/V1/MaterialIcon.php | 250 ++ .../proto/src/Google/Apps/Card/V1/OnClick.php | 231 ++ .../src/Google/Apps/Card/V1/OpenLink.php | 157 + .../Google/Apps/Card/V1/OpenLink/OnClose.php | 64 + .../Google/Apps/Card/V1/OpenLink/OpenAs.php | 61 + .../src/Google/Apps/Card/V1/OverflowMenu.php | 73 + .../Card/V1/OverflowMenu/OverflowMenuItem.php | 203 ++ .../Google/Apps/Card/V1/SelectionInput.php | 468 +++ .../V1/SelectionInput/PlatformDataSource.php | 82 + .../PlatformDataSource/CommonDataSource.php | 58 + .../Card/V1/SelectionInput/SelectionItem.php | 233 ++ .../Card/V1/SelectionInput/SelectionType.php | 117 + .../src/Google/Apps/Card/V1/Suggestions.php | 84 + .../Card/V1/Suggestions/SuggestionItem.php | 80 + .../src/Google/Apps/Card/V1/TextInput.php | 587 +++ .../Google/Apps/Card/V1/TextInput/Type.php | 59 + .../src/Google/Apps/Card/V1/TextParagraph.php | 175 + .../Apps/Card/V1/TextParagraph/TextSyntax.php | 62 + .../src/Google/Apps/Card/V1/Validation.php | 123 + .../Apps/Card/V1/Validation/InputType.php | 82 + .../proto/src/Google/Apps/Card/V1/Widget.php | 1251 +++++++ .../Card/V1/Widget/HorizontalAlignment.php | 73 + .../Google/Apps/Card/V1/Widget/ImageType.php | 58 + .../Apps/Card/V1/Widget/VerticalAlignment.php | 68 + .../Google/Chat/V1/ActionStatus.php | 25 + .../GPBMetadata/Google/Chat/V1/Annotation.php | 29 + .../GPBMetadata/Google/Chat/V1/Attachment.php | 26 + .../Google/Chat/V1/ChatService.php | 38 + .../Google/Chat/V1/ContextualAddon.php | 25 + .../Google/Chat/V1/DeletionMetadata.php | 24 + .../Google/Chat/V1/EventPayload.php | 29 + .../src/GPBMetadata/Google/Chat/V1/Group.php | 24 + .../Google/Chat/V1/HistoryState.php | 24 + .../GPBMetadata/Google/Chat/V1/MatchedUrl.php | 25 + .../GPBMetadata/Google/Chat/V1/Membership.php | 30 + .../GPBMetadata/Google/Chat/V1/Message.php | 39 + .../GPBMetadata/Google/Chat/V1/Reaction.php | 28 + .../GPBMetadata/Google/Chat/V1/Section.php | 27 + .../Google/Chat/V1/SlashCommand.php | 24 + .../src/GPBMetadata/Google/Chat/V1/Space.php | 29 + .../GPBMetadata/Google/Chat/V1/SpaceEvent.php | 28 + .../Chat/V1/SpaceNotificationSetting.php | 27 + .../Google/Chat/V1/SpaceReadState.php | 28 + .../GPBMetadata/Google/Chat/V1/SpaceSetup.php | 27 + .../Google/Chat/V1/ThreadReadState.php | 27 + .../src/GPBMetadata/Google/Chat/V1/User.php | 25 + .../GPBMetadata/Google/Chat/V1/Widgets.php | 24 + .../Google/Apps/Chat/V1/AccessoryWidget.php | 77 + .../Google/Apps/Chat/V1/ActionResponse.php | 201 ++ .../Chat/V1/ActionResponse/ResponseType.php | 93 + .../Chat/V1/ActionResponse/SelectionItems.php | 67 + .../Chat/V1/ActionResponse/UpdatedWidget.php | 114 + .../src/Google/Apps/Chat/V1/ActionStatus.php | 106 + .../src/Google/Apps/Chat/V1/Annotation.php | 319 ++ .../Google/Apps/Chat/V1/AnnotationType.php | 75 + .../src/Google/Apps/Chat/V1/AttachedGif.php | 67 + .../src/Google/Apps/Chat/V1/Attachment.php | 341 ++ .../Google/Apps/Chat/V1/Attachment/Source.php | 61 + .../Google/Apps/Chat/V1/AttachmentDataRef.php | 113 + .../Apps/Chat/V1/CalendarEventLinkData.php | 117 + .../src/Google/Apps/Chat/V1/CardWithId.php | 121 + .../Google/Apps/Chat/V1/ChatSpaceLinkData.php | 147 + .../Chat/V1/CompleteImportSpaceRequest.php | 71 + .../Chat/V1/CompleteImportSpaceResponse.php | 77 + .../Apps/Chat/V1/ContextualAddOnMarkup.php | 33 + .../Chat/V1/ContextualAddOnMarkup/Card.php | 180 + .../ContextualAddOnMarkup/Card/CardAction.php | 115 + .../ContextualAddOnMarkup/Card/CardHeader.php | 175 + .../Card/CardHeader/ImageStyle.php | 57 + .../V1/ContextualAddOnMarkup/Card/Section.php | 136 + .../Apps/Chat/V1/CreateCustomEmojiRequest.php | 90 + .../Apps/Chat/V1/CreateMembershipRequest.php | 350 ++ .../V1/CreateMessageNotificationOptions.php | 67 + .../NotificationType.php | 72 + .../Apps/Chat/V1/CreateMessageRequest.php | 444 +++ .../MessageReplyOption.php | 71 + .../Apps/Chat/V1/CreateReactionRequest.php | 133 + .../Apps/Chat/V1/CreateSectionRequest.php | 133 + .../Apps/Chat/V1/CreateSpaceRequest.php | 182 + .../src/Google/Apps/Chat/V1/CustomEmoji.php | 257 ++ .../V1/CustomEmoji/CustomEmojiPayload.php | 117 + .../Apps/Chat/V1/CustomEmojiMetadata.php | 77 + .../Apps/Chat/V1/DeleteCustomEmojiRequest.php | 103 + .../Apps/Chat/V1/DeleteMembershipRequest.php | 216 ++ .../Apps/Chat/V1/DeleteMessageRequest.php | 162 + .../Apps/Chat/V1/DeleteReactionRequest.php | 87 + .../Apps/Chat/V1/DeleteSectionRequest.php | 88 + .../Apps/Chat/V1/DeleteSpaceRequest.php | 145 + .../Google/Apps/Chat/V1/DeletionMetadata.php | 68 + .../Chat/V1/DeletionMetadata/DeletionType.php | 104 + .../proto/src/Google/Apps/Chat/V1/Dialog.php | 85 + .../src/Google/Apps/Chat/V1/DialogAction.php | 139 + .../src/Google/Apps/Chat/V1/DriveDataRef.php | 67 + .../src/Google/Apps/Chat/V1/DriveLinkData.php | 119 + .../proto/src/Google/Apps/Chat/V1/Emoji.php | 108 + .../Apps/Chat/V1/EmojiReactionSummary.php | 121 + .../Apps/Chat/V1/FindDirectMessageRequest.php | 111 + .../Apps/Chat/V1/FindGroupChatsRequest.php | 277 ++ .../Apps/Chat/V1/FindGroupChatsResponse.php | 106 + .../Google/Apps/Chat/V1/ForwardedMetadata.php | 121 + .../Apps/Chat/V1/GetAttachmentRequest.php | 86 + .../Apps/Chat/V1/GetCustomEmojiRequest.php | 103 + .../Apps/Chat/V1/GetMembershipRequest.php | 185 + .../Google/Apps/Chat/V1/GetMessageRequest.php | 108 + .../Apps/Chat/V1/GetSpaceEventRequest.php | 87 + .../V1/GetSpaceNotificationSettingRequest.php | 103 + .../Apps/Chat/V1/GetSpaceReadStateRequest.php | 127 + .../Google/Apps/Chat/V1/GetSpaceRequest.php | 145 + .../Chat/V1/GetThreadReadStateRequest.php | 132 + .../proto/src/Google/Apps/Chat/V1/Group.php | 83 + .../src/Google/Apps/Chat/V1/HistoryState.php | 65 + .../Apps/Chat/V1/ListCustomEmojisRequest.php | 199 + .../Apps/Chat/V1/ListCustomEmojisResponse.php | 105 + .../Apps/Chat/V1/ListMembershipsRequest.php | 512 +++ .../Apps/Chat/V1/ListMembershipsResponse.php | 105 + .../Apps/Chat/V1/ListMessagesRequest.php | 417 +++ .../Apps/Chat/V1/ListMessagesResponse.php | 105 + .../Apps/Chat/V1/ListReactionsRequest.php | 345 ++ .../Apps/Chat/V1/ListReactionsResponse.php | 105 + .../Apps/Chat/V1/ListSectionItemsRequest.php | 258 ++ .../Apps/Chat/V1/ListSectionItemsResponse.php | 105 + .../Apps/Chat/V1/ListSectionsRequest.php | 219 ++ .../Apps/Chat/V1/ListSectionsResponse.php | 105 + .../Apps/Chat/V1/ListSpaceEventsRequest.php | 444 +++ .../Apps/Chat/V1/ListSpaceEventsResponse.php | 113 + .../Google/Apps/Chat/V1/ListSpacesRequest.php | 219 ++ .../Apps/Chat/V1/ListSpacesResponse.php | 113 + .../src/Google/Apps/Chat/V1/MatchedUrl.php | 69 + .../Google/Apps/Chat/V1/MeetSpaceLinkData.php | 139 + .../V1/MeetSpaceLinkData/HuddleStatus.php | 70 + .../Apps/Chat/V1/MeetSpaceLinkData/Type.php | 61 + .../src/Google/Apps/Chat/V1/Membership.php | 348 ++ .../Chat/V1/Membership/MembershipRole.php | 111 + .../Chat/V1/Membership/MembershipState.php | 70 + .../V1/MembershipBatchCreatedEventData.php | 68 + .../V1/MembershipBatchDeletedEventData.php | 68 + .../V1/MembershipBatchUpdatedEventData.php | 68 + .../Chat/V1/MembershipCreatedEventData.php | 78 + .../Chat/V1/MembershipDeletedEventData.php | 78 + .../Chat/V1/MembershipUpdatedEventData.php | 78 + .../proto/src/Google/Apps/Chat/V1/Message.php | 1496 ++++++++ .../Chat/V1/MessageBatchCreatedEventData.php | 68 + .../Chat/V1/MessageBatchDeletedEventData.php | 68 + .../Chat/V1/MessageBatchUpdatedEventData.php | 68 + .../Apps/Chat/V1/MessageCreatedEventData.php | 78 + .../Apps/Chat/V1/MessageDeletedEventData.php | 82 + .../Apps/Chat/V1/MessageUpdatedEventData.php | 78 + .../Apps/Chat/V1/MoveSectionItemRequest.php | 130 + .../Apps/Chat/V1/MoveSectionItemResponse.php | 77 + .../Apps/Chat/V1/PositionSectionRequest.php | 161 + .../V1/PositionSectionRequest/Position.php | 61 + .../Apps/Chat/V1/PositionSectionResponse.php | 77 + .../Apps/Chat/V1/QuotedMessageMetadata.php | 269 ++ .../V1/QuotedMessageMetadata/QuoteType.php | 67 + .../Apps/Chat/V1/QuotedMessageSnapshot.php | 228 ++ .../src/Google/Apps/Chat/V1/Reaction.php | 159 + .../Chat/V1/ReactionBatchCreatedEventData.php | 68 + .../Chat/V1/ReactionBatchDeletedEventData.php | 68 + .../Apps/Chat/V1/ReactionCreatedEventData.php | 78 + .../Apps/Chat/V1/ReactionDeletedEventData.php | 78 + .../Google/Apps/Chat/V1/RichLinkMetadata.php | 245 ++ .../Chat/V1/RichLinkMetadata/RichLinkType.php | 84 + .../Apps/Chat/V1/SearchSpacesRequest.php | 539 +++ .../Apps/Chat/V1/SearchSpacesResponse.php | 143 + .../proto/src/Google/Apps/Chat/V1/Section.php | 218 ++ .../Apps/Chat/V1/Section/SectionType.php | 79 + .../src/Google/Apps/Chat/V1/SectionItem.php | 117 + .../Google/Apps/Chat/V1/SetUpSpaceRequest.php | 317 ++ .../src/Google/Apps/Chat/V1/SlashCommand.php | 69 + .../Apps/Chat/V1/SlashCommandMetadata.php | 213 ++ .../Chat/V1/SlashCommandMetadata/Type.php | 59 + .../proto/src/Google/Apps/Chat/V1/Space.php | 1125 ++++++ .../Apps/Chat/V1/Space/AccessSettings.php | 186 + .../V1/Space/AccessSettings/AccessState.php | 73 + .../Apps/Chat/V1/Space/MembershipCount.php | 105 + .../Apps/Chat/V1/Space/PermissionSetting.php | 169 + .../Apps/Chat/V1/Space/PermissionSettings.php | 392 ++ .../V1/Space/PredefinedPermissionSettings.php | 66 + .../Apps/Chat/V1/Space/SpaceDetails.php | 113 + .../Chat/V1/Space/SpaceThreadingState.php | 72 + .../Google/Apps/Chat/V1/Space/SpaceType.php | 71 + .../src/Google/Apps/Chat/V1/Space/Type.php | 62 + .../Chat/V1/SpaceBatchUpdatedEventData.php | 68 + .../src/Google/Apps/Chat/V1/SpaceEvent.php | 956 +++++ .../Apps/Chat/V1/SpaceNotificationSetting.php | 159 + .../SpaceNotificationSetting/MuteSetting.php | 63 + .../NotificationSetting.php | 80 + .../Google/Apps/Chat/V1/SpaceReadState.php | 124 + .../Apps/Chat/V1/SpaceUpdatedEventData.php | 78 + .../src/Google/Apps/Chat/V1/SpaceView.php | 70 + .../proto/src/Google/Apps/Chat/V1/Thread.php | 134 + .../Google/Apps/Chat/V1/ThreadReadState.php | 120 + .../Apps/Chat/V1/UpdateMembershipRequest.php | 216 ++ .../Apps/Chat/V1/UpdateMessageRequest.php | 244 ++ .../Apps/Chat/V1/UpdateSectionRequest.php | 148 + .../UpdateSpaceNotificationSettingRequest.php | 164 + .../Chat/V1/UpdateSpaceReadStateRequest.php | 230 ++ .../Apps/Chat/V1/UpdateSpaceRequest.php | 485 +++ .../Apps/Chat/V1/UploadAttachmentRequest.php | 105 + .../Apps/Chat/V1/UploadAttachmentResponse.php | 77 + .../v1/proto/src/Google/Apps/Chat/V1/User.php | 275 ++ .../src/Google/Apps/Chat/V1/User/Type.php | 59 + .../Apps/Chat/V1/UserMentionMetadata.php | 111 + .../Apps/Chat/V1/UserMentionMetadata/Type.php | 59 + .../src/Google/Apps/Chat/V1/WidgetMarkup.php | 179 + .../Apps/Chat/V1/WidgetMarkup/Button.php | 108 + .../Apps/Chat/V1/WidgetMarkup/FormAction.php | 114 + .../FormAction/ActionParameter.php | 104 + .../Google/Apps/Chat/V1/WidgetMarkup/Icon.php | 195 + .../Apps/Chat/V1/WidgetMarkup/Image.php | 157 + .../Apps/Chat/V1/WidgetMarkup/ImageButton.php | 193 + .../Apps/Chat/V1/WidgetMarkup/KeyValue.php | 422 +++ .../Apps/Chat/V1/WidgetMarkup/OnClick.php | 108 + .../Apps/Chat/V1/WidgetMarkup/OpenLink.php | 67 + .../Apps/Chat/V1/WidgetMarkup/TextButton.php | 111 + .../Chat/V1/WidgetMarkup/TextParagraph.php | 67 + .../complete_import_space.php | 86 + .../ChatServiceClient/create_custom_emoji.php | 73 + .../ChatServiceClient/create_membership.php | 119 + .../V1/ChatServiceClient/create_message.php | 118 + .../V1/ChatServiceClient/create_reaction.php | 90 + .../V1/ChatServiceClient/create_section.php | 90 + .../V1/ChatServiceClient/create_space.php | 100 + .../ChatServiceClient/delete_custom_emoji.php | 93 + .../ChatServiceClient/delete_membership.php | 122 + .../V1/ChatServiceClient/delete_message.php | 96 + .../V1/ChatServiceClient/delete_reaction.php | 82 + .../V1/ChatServiceClient/delete_section.php | 84 + .../V1/ChatServiceClient/delete_space.php | 97 + .../ChatServiceClient/find_direct_message.php | 109 + .../V1/ChatServiceClient/find_group_chats.php | 81 + .../V1/ChatServiceClient/get_attachment.php | 84 + .../V1/ChatServiceClient/get_custom_emoji.php | 92 + .../V1/ChatServiceClient/get_membership.php | 104 + .../V1/ChatServiceClient/get_message.php | 105 + .../V1/ChatServiceClient/get_space.php | 104 + .../V1/ChatServiceClient/get_space_event.php | 117 + .../get_space_notification_setting.php | 85 + .../get_space_read_state.php | 96 + .../get_thread_read_state.php | 97 + .../ChatServiceClient/list_custom_emojis.php | 77 + .../V1/ChatServiceClient/list_memberships.php | 112 + .../V1/ChatServiceClient/list_messages.php | 105 + .../V1/ChatServiceClient/list_reactions.php | 90 + .../ChatServiceClient/list_section_items.php | 94 + .../V1/ChatServiceClient/list_sections.php | 97 + .../ChatServiceClient/list_space_events.php | 175 + .../V1/ChatServiceClient/list_spaces.php | 83 + .../ChatServiceClient/move_section_item.php | 89 + .../V1/ChatServiceClient/position_section.php | 81 + .../V1/ChatServiceClient/search_spaces.php | 154 + .../V1/ChatServiceClient/set_up_space.php | 115 + .../ChatServiceClient/update_membership.php | 85 + .../V1/ChatServiceClient/update_message.php | 85 + .../V1/ChatServiceClient/update_section.php | 85 + .../V1/ChatServiceClient/update_space.php | 95 + .../update_space_notification_setting.php | 71 + .../update_space_read_state.php | 71 + .../ChatServiceClient/upload_attachment.php | 90 + .../v1/src/V1/Client/ChatServiceClient.php | 2632 ++++++++++++++ .../AppsChat/v1/src/V1/gapic_metadata.json | 233 ++ .../resources/chat_service_client_config.json | 249 ++ .../chat_service_descriptor_config.php | 583 +++ .../chat_service_rest_client_config.php | 500 +++ .../Unit/V1/Client/ChatServiceClientTest.php | 3189 +++++++++++++++++ 308 files changed, 51517 insertions(+) create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php create mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/User.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php create mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php create mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php create mode 100644 owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php create mode 100644 owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json create mode 100644 owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php create mode 100644 owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php create mode 100644 owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php new file mode 100644 index 000000000000..0ee68861dccb --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xB7R\x0A\x1Egoogle/apps/card/v1/card.proto\x12\x13google.apps.card.v1\"\xC3\x0A\x0A\x04Card\x124\x0A\x06header\x18\x01 \x01(\x0B2\$.google.apps.card.v1.Card.CardHeader\x123\x0A\x08sections\x18\x02 \x03(\x0B2!.google.apps.card.v1.Card.Section\x12E\x0A\x15section_divider_style\x18\x09 \x01(\x0E2&.google.apps.card.v1.Card.DividerStyle\x12:\x0A\x0Ccard_actions\x18\x03 \x03(\x0B2\$.google.apps.card.v1.Card.CardAction\x12\x0C\x0A\x04name\x18\x04 \x01(\x09\x12?\x0A\x0Cfixed_footer\x18\x05 \x01(\x0B2).google.apps.card.v1.Card.CardFixedFooter\x12=\x0A\x0Ddisplay_style\x18\x06 \x01(\x0E2&.google.apps.card.v1.Card.DisplayStyle\x12>\x0A\x10peek_card_header\x18\x07 \x01(\x0B2\$.google.apps.card.v1.Card.CardHeader\x1A\x93\x01\x0A\x0ACardHeader\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x10\x0A\x08subtitle\x18\x02 \x01(\x09\x129\x0A\x0Aimage_type\x18\x03 \x01(\x0E2%.google.apps.card.v1.Widget.ImageType\x12\x11\x0A\x09image_url\x18\x04 \x01(\x09\x12\x16\x0A\x0Eimage_alt_text\x18\x05 \x01(\x09\x1A\xC1\x01\x0A\x07Section\x12\x0E\x0A\x06header\x18\x01 \x01(\x09\x12,\x0A\x07widgets\x18\x02 \x03(\x0B2\x1B.google.apps.card.v1.Widget\x12\x13\x0A\x0Bcollapsible\x18\x05 \x01(\x08\x12#\x0A\x1Buncollapsible_widgets_count\x18\x06 \x01(\x05\x12>\x0A\x10collapse_control\x18\x08 \x01(\x0B2\$.google.apps.card.v1.CollapseControl\x1AR\x0A\x0ACardAction\x12\x14\x0A\x0Caction_label\x18\x01 \x01(\x09\x12.\x0A\x08on_click\x18\x02 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x1A\xB9\x01\x0A\x0CNestedWidget\x12<\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2\".google.apps.card.v1.TextParagraphH\x00\x126\x0A\x0Bbutton_list\x18\x03 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00\x12+\x0A\x05image\x18\x0A \x01(\x0B2\x1A.google.apps.card.v1.ImageH\x00B\x06\x0A\x04data\x1A}\x0A\x0FCardFixedFooter\x123\x0A\x0Eprimary_button\x18\x01 \x01(\x0B2\x1B.google.apps.card.v1.Button\x125\x0A\x10secondary_button\x18\x02 \x01(\x0B2\x1B.google.apps.card.v1.Button\"P\x0A\x0CDividerStyle\x12\x1D\x0A\x19DIVIDER_STYLE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DSOLID_DIVIDER\x10\x01\x12\x0E\x0A\x0ANO_DIVIDER\x10\x02\"D\x0A\x0CDisplayStyle\x12\x1D\x0A\x19DISPLAY_STYLE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04PEEK\x10\x01\x12\x0B\x0A\x07REPLACE\x10\x02\"\xC7\x07\x0A\x06Widget\x12<\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2\".google.apps.card.v1.TextParagraphH\x00\x12+\x0A\x05image\x18\x02 \x01(\x0B2\x1A.google.apps.card.v1.ImageH\x00\x12<\x0A\x0Edecorated_text\x18\x03 \x01(\x0B2\".google.apps.card.v1.DecoratedTextH\x00\x126\x0A\x0Bbutton_list\x18\x04 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00\x124\x0A\x0Atext_input\x18\x05 \x01(\x0B2\x1E.google.apps.card.v1.TextInputH\x00\x12>\x0A\x0Fselection_input\x18\x06 \x01(\x0B2#.google.apps.card.v1.SelectionInputH\x00\x12?\x0A\x10date_time_picker\x18\x07 \x01(\x0B2#.google.apps.card.v1.DateTimePickerH\x00\x12/\x0A\x07divider\x18\x09 \x01(\x0B2\x1C.google.apps.card.v1.DividerH\x00\x12)\x0A\x04grid\x18\x0A \x01(\x0B2\x19.google.apps.card.v1.GridH\x00\x12/\x0A\x07columns\x18\x0B \x01(\x0B2\x1C.google.apps.card.v1.ColumnsH\x00\x121\x0A\x08carousel\x18\x0D \x01(\x0B2\x1D.google.apps.card.v1.CarouselH\x00\x122\x0A\x09chip_list\x18\x0E \x01(\x0B2\x1D.google.apps.card.v1.ChipListH\x00\x12M\x0A\x14horizontal_alignment\x18\x08 \x01(\x0E2/.google.apps.card.v1.Widget.HorizontalAlignment\"#\x0A\x09ImageType\x12\x0A\x0A\x06SQUARE\x10\x00\x12\x0A\x0A\x06CIRCLE\x10\x01\"[\x0A\x13HorizontalAlignment\x12\$\x0A HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x0A\x0A\x06CENTER\x10\x02\x12\x07\x0A\x03END\x10\x03\"X\x0A\x11VerticalAlignment\x12\"\x0A\x1EVERTICAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x0A\x0A\x06MIDDLE\x10\x02\x12\x0A\x0A\x06BOTTOM\x10\x03B\x06\x0A\x04data\"\xB7\x01\x0A\x0DTextParagraph\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x11\x0A\x09max_lines\x18\x02 \x01(\x05\x12B\x0A\x0Btext_syntax\x18\x04 \x01(\x0E2-.google.apps.card.v1.TextParagraph.TextSyntax\"A\x0A\x0ATextSyntax\x12\x1B\x0A\x17TEXT_SYNTAX_UNSPECIFIED\x10\x00\x12\x08\x0A\x04HTML\x10\x01\x12\x0C\x0A\x08MARKDOWN\x10\x02\"\\\x0A\x05Image\x12\x11\x0A\x09image_url\x18\x01 \x01(\x09\x12.\x0A\x08on_click\x18\x02 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x10\x0A\x08alt_text\x18\x03 \x01(\x09\"\x09\x0A\x07Divider\"\xA9\x07\x0A\x0DDecoratedText\x12+\x0A\x04icon\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.IconB\x02\x18\x01\x12-\x0A\x0Astart_icon\x18\x0C \x01(\x0B2\x19.google.apps.card.v1.Icon\x12T\x0A\x1Dstart_icon_vertical_alignment\x18\x0D \x01(\x0E2-.google.apps.card.v1.Widget.VerticalAlignment\x12\x11\x0A\x09top_label\x18\x03 \x01(\x09\x12:\x0A\x0Etop_label_text\x18\x11 \x01(\x0B2\".google.apps.card.v1.TextParagraph\x12\x0C\x0A\x04text\x18\x04 \x01(\x09\x128\x0A\x0Ccontent_text\x18\x12 \x01(\x0B2\".google.apps.card.v1.TextParagraph\x12\x11\x0A\x09wrap_text\x18\x05 \x01(\x08\x12\x14\x0A\x0Cbottom_label\x18\x06 \x01(\x09\x12=\x0A\x11bottom_label_text\x18\x13 \x01(\x0B2\".google.apps.card.v1.TextParagraph\x12.\x0A\x08on_click\x18\x07 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12-\x0A\x06button\x18\x08 \x01(\x0B2\x1B.google.apps.card.v1.ButtonH\x00\x12J\x0A\x0Eswitch_control\x18\x09 \x01(\x0B20.google.apps.card.v1.DecoratedText.SwitchControlH\x00\x12-\x0A\x08end_icon\x18\x0B \x01(\x0B2\x19.google.apps.card.v1.IconH\x00\x1A\x81\x02\x0A\x0DSwitchControl\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\x12\x10\x0A\x08selected\x18\x03 \x01(\x08\x125\x0A\x10on_change_action\x18\x04 \x01(\x0B2\x1B.google.apps.card.v1.Action\x12R\x0A\x0Ccontrol_type\x18\x05 \x01(\x0E2<.google.apps.card.v1.DecoratedText.SwitchControl.ControlType\"6\x0A\x0BControlType\x12\x0A\x0A\x06SWITCH\x10\x00\x12\x0C\x0A\x08CHECKBOX\x10\x01\x12\x0D\x0A\x09CHECK_BOX\x10\x02B\x09\x0A\x07control\"\xA9\x03\x0A\x09TextInput\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12\x11\x0A\x09hint_text\x18\x03 \x01(\x09\x12\x0D\x0A\x05value\x18\x04 \x01(\x09\x121\x0A\x04type\x18\x05 \x01(\x0E2#.google.apps.card.v1.TextInput.Type\x125\x0A\x10on_change_action\x18\x06 \x01(\x0B2\x1B.google.apps.card.v1.Action\x12=\x0A\x13initial_suggestions\x18\x07 \x01(\x0B2 .google.apps.card.v1.Suggestions\x129\x0A\x14auto_complete_action\x18\x08 \x01(\x0B2\x1B.google.apps.card.v1.Action\x123\x0A\x0Avalidation\x18\x0B \x01(\x0B2\x1F.google.apps.card.v1.Validation\x12\x18\x0A\x10placeholder_text\x18\x0C \x01(\x09\"*\x0A\x04Type\x12\x0F\x0A\x0BSINGLE_LINE\x10\x00\x12\x11\x0A\x0DMULTIPLE_LINE\x10\x01\"z\x0A\x0BSuggestions\x12>\x0A\x05items\x18\x01 \x03(\x0B2/.google.apps.card.v1.Suggestions.SuggestionItem\x1A+\x0A\x0ESuggestionItem\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x09\x0A\x07content\":\x0A\x0AButtonList\x12,\x0A\x07buttons\x18\x01 \x03(\x0B2\x1B.google.apps.card.v1.Button\"\xA4\x07\x0A\x0ESelectionInput\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12?\x0A\x04type\x18\x03 \x01(\x0E21.google.apps.card.v1.SelectionInput.SelectionType\x12@\x0A\x05items\x18\x04 \x03(\x0B21.google.apps.card.v1.SelectionInput.SelectionItem\x125\x0A\x10on_change_action\x18\x05 \x01(\x0B2\x1B.google.apps.card.v1.Action\x12,\x0A\x1Fmulti_select_max_selected_items\x18\x06 \x01(\x05H\x01\x88\x01\x01\x12%\x0A\x1Dmulti_select_min_query_length\x18\x07 \x01(\x05\x12;\x0A\x14external_data_source\x18\x08 \x01(\x0B2\x1B.google.apps.card.v1.ActionH\x00\x12V\x0A\x14platform_data_source\x18\x09 \x01(\x0B26.google.apps.card.v1.SelectionInput.PlatformDataSourceH\x00\x1A{\x0A\x0DSelectionItem\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\x12\x10\x0A\x08selected\x18\x03 \x01(\x08\x12\x18\x0A\x0Estart_icon_uri\x18\x04 \x01(\x09H\x00\x12\x13\x0A\x0Bbottom_text\x18\x05 \x01(\x09B\x0C\x0A\x0Astart_icon\x1A\xB5\x01\x0A\x12PlatformDataSource\x12e\x0A\x12common_data_source\x18\x01 \x01(\x0E2G.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSourceH\x00\")\x0A\x10CommonDataSource\x12\x0B\x0A\x07UNKNOWN\x10\x00\x12\x08\x0A\x04USER\x10\x01B\x0D\x0A\x0Bdata_source\"\\\x0A\x0DSelectionType\x12\x0D\x0A\x09CHECK_BOX\x10\x00\x12\x10\x0A\x0CRADIO_BUTTON\x10\x01\x12\x0A\x0A\x06SWITCH\x10\x02\x12\x0C\x0A\x08DROPDOWN\x10\x03\x12\x10\x0A\x0CMULTI_SELECT\x10\x04B\x1A\x0A\x18multi_select_data_sourceB\"\x0A _multi_select_max_selected_items\"\xBF\x02\x0A\x0EDateTimePicker\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12D\x0A\x04type\x18\x03 \x01(\x0E26.google.apps.card.v1.DateTimePicker.DateTimePickerType\x12\x1B\x0A\x0Evalue_ms_epoch\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x1C\x0A\x14timezone_offset_date\x18\x05 \x01(\x05\x125\x0A\x10on_change_action\x18\x06 \x01(\x0B2\x1B.google.apps.card.v1.Action\"E\x0A\x12DateTimePickerType\x12\x11\x0A\x0DDATE_AND_TIME\x10\x00\x12\x0D\x0A\x09DATE_ONLY\x10\x01\x12\x0D\x0A\x09TIME_ONLY\x10\x02B\x11\x0A\x0F_value_ms_epoch\"\xE5\x01\x0A\x0COverflowMenu\x12A\x0A\x05items\x18\x01 \x03(\x0B22.google.apps.card.v1.OverflowMenu.OverflowMenuItem\x1A\x91\x01\x0A\x10OverflowMenuItem\x12-\x0A\x0Astart_icon\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.Icon\x12\x0C\x0A\x04text\x18\x02 \x01(\x09\x12.\x0A\x08on_click\x18\x03 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x10\x0A\x08disabled\x18\x04 \x01(\x08\"\xC0\x02\x0A\x06Button\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12'\x0A\x04icon\x18\x02 \x01(\x0B2\x19.google.apps.card.v1.Icon\x12!\x0A\x05color\x18\x03 \x01(\x0B2\x12.google.type.Color\x12.\x0A\x08on_click\x18\x04 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x10\x0A\x08disabled\x18\x05 \x01(\x08\x12\x10\x0A\x08alt_text\x18\x06 \x01(\x09\x12.\x0A\x04type\x18\x07 \x01(\x0E2 .google.apps.card.v1.Button.Type\"X\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08OUTLINED\x10\x01\x12\x0A\x0A\x06FILLED\x10\x02\x12\x10\x0A\x0CFILLED_TONAL\x10\x03\x12\x0E\x0A\x0ABORDERLESS\x10\x04\"\xC2\x01\x0A\x04Icon\x12\x14\x0A\x0Aknown_icon\x18\x01 \x01(\x09H\x00\x12\x12\x0A\x08icon_url\x18\x02 \x01(\x09H\x00\x12:\x0A\x0Dmaterial_icon\x18\x05 \x01(\x0B2!.google.apps.card.v1.MaterialIconH\x00\x12\x10\x0A\x08alt_text\x18\x03 \x01(\x09\x129\x0A\x0Aimage_type\x18\x04 \x01(\x0E2%.google.apps.card.v1.Widget.ImageTypeB\x07\x0A\x05icons\"I\x0A\x0CMaterialIcon\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04fill\x18\x02 \x01(\x08\x12\x0E\x0A\x06weight\x18\x03 \x01(\x05\x12\x0D\x0A\x05grade\x18\x04 \x01(\x05\"\xDA\x01\x0A\x0EImageCropStyle\x12?\x0A\x04type\x18\x01 \x01(\x0E21.google.apps.card.v1.ImageCropStyle.ImageCropType\x12\x14\x0A\x0Caspect_ratio\x18\x02 \x01(\x01\"q\x0A\x0DImageCropType\x12\x1F\x0A\x1BIMAGE_CROP_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SQUARE\x10\x01\x12\x0A\x0A\x06CIRCLE\x10\x02\x12\x14\x0A\x10RECTANGLE_CUSTOM\x10\x03\x12\x11\x0A\x0DRECTANGLE_4_3\x10\x04\"\xCF\x01\x0A\x0BBorderStyle\x129\x0A\x04type\x18\x01 \x01(\x0E2+.google.apps.card.v1.BorderStyle.BorderType\x12(\x0A\x0Cstroke_color\x18\x02 \x01(\x0B2\x12.google.type.Color\x12\x15\x0A\x0Dcorner_radius\x18\x03 \x01(\x05\"D\x0A\x0ABorderType\x12\x1B\x0A\x17BORDER_TYPE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NO_BORDER\x10\x01\x12\x0A\x0A\x06STROKE\x10\x02\"\xA6\x01\x0A\x0EImageComponent\x12\x11\x0A\x09image_uri\x18\x01 \x01(\x09\x12\x10\x0A\x08alt_text\x18\x02 \x01(\x09\x127\x0A\x0Acrop_style\x18\x03 \x01(\x0B2#.google.apps.card.v1.ImageCropStyle\x126\x0A\x0Cborder_style\x18\x04 \x01(\x0B2 .google.apps.card.v1.BorderStyle\"\xCB\x03\x0A\x04Grid\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x121\x0A\x05items\x18\x02 \x03(\x0B2\".google.apps.card.v1.Grid.GridItem\x126\x0A\x0Cborder_style\x18\x03 \x01(\x0B2 .google.apps.card.v1.BorderStyle\x12\x14\x0A\x0Ccolumn_count\x18\x04 \x01(\x05\x12.\x0A\x08on_click\x18\x05 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x1A\x82\x02\x0A\x08GridItem\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x122\x0A\x05image\x18\x02 \x01(\x0B2#.google.apps.card.v1.ImageComponent\x12\x0D\x0A\x05title\x18\x03 \x01(\x09\x12\x10\x0A\x08subtitle\x18\x04 \x01(\x09\x12A\x0A\x06layout\x18\x09 \x01(\x0E21.google.apps.card.v1.Grid.GridItem.GridItemLayout\"R\x0A\x0EGridItemLayout\x12 \x0A\x1CGRID_ITEM_LAYOUT_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ATEXT_BELOW\x10\x01\x12\x0E\x0A\x0ATEXT_ABOVE\x10\x02\"\xB1\x08\x0A\x07Columns\x129\x0A\x0Ccolumn_items\x18\x02 \x03(\x0B2#.google.apps.card.v1.Columns.Column\x1A\xEA\x07\x0A\x06Column\x12V\x0A\x15horizontal_size_style\x18\x01 \x01(\x0E27.google.apps.card.v1.Columns.Column.HorizontalSizeStyle\x12M\x0A\x14horizontal_alignment\x18\x02 \x01(\x0E2/.google.apps.card.v1.Widget.HorizontalAlignment\x12Q\x0A\x12vertical_alignment\x18\x03 \x01(\x0E25.google.apps.card.v1.Columns.Column.VerticalAlignment\x12<\x0A\x07widgets\x18\x04 \x03(\x0B2+.google.apps.card.v1.Columns.Column.Widgets\x1A\xDD\x03\x0A\x07Widgets\x12<\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2\".google.apps.card.v1.TextParagraphH\x00\x12+\x0A\x05image\x18\x02 \x01(\x0B2\x1A.google.apps.card.v1.ImageH\x00\x12<\x0A\x0Edecorated_text\x18\x03 \x01(\x0B2\".google.apps.card.v1.DecoratedTextH\x00\x126\x0A\x0Bbutton_list\x18\x04 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00\x124\x0A\x0Atext_input\x18\x05 \x01(\x0B2\x1E.google.apps.card.v1.TextInputH\x00\x12>\x0A\x0Fselection_input\x18\x06 \x01(\x0B2#.google.apps.card.v1.SelectionInputH\x00\x12?\x0A\x10date_time_picker\x18\x07 \x01(\x0B2#.google.apps.card.v1.DateTimePickerH\x00\x122\x0A\x09chip_list\x18\x08 \x01(\x0B2\x1D.google.apps.card.v1.ChipListH\x00B\x06\x0A\x04data\"n\x0A\x13HorizontalSizeStyle\x12%\x0A!HORIZONTAL_SIZE_STYLE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14FILL_AVAILABLE_SPACE\x10\x01\x12\x16\x0A\x12FILL_MINIMUM_SPACE\x10\x02\"X\x0A\x11VerticalAlignment\x12\"\x0A\x1EVERTICAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CENTER\x10\x01\x12\x07\x0A\x03TOP\x10\x02\x12\x0A\x0A\x06BOTTOM\x10\x03\"\xD8\x01\x0A\x08Carousel\x12B\x0A\x0Ecarousel_cards\x18\x04 \x03(\x0B2*.google.apps.card.v1.Carousel.CarouselCard\x1A\x87\x01\x0A\x0CCarouselCard\x127\x0A\x07widgets\x18\x01 \x03(\x0B2&.google.apps.card.v1.Card.NestedWidget\x12>\x0A\x0Efooter_widgets\x18\x02 \x03(\x0B2&.google.apps.card.v1.Card.NestedWidget\"\xCA\x01\x0A\x0FCollapseControl\x12M\x0A\x14horizontal_alignment\x18\x01 \x01(\x0E2/.google.apps.card.v1.Widget.HorizontalAlignment\x122\x0A\x0Dexpand_button\x18\x02 \x01(\x0B2\x1B.google.apps.card.v1.Button\x124\x0A\x0Fcollapse_button\x18\x03 \x01(\x0B2\x1B.google.apps.card.v1.Button\"\x9C\x02\x0A\x07OnClick\x12-\x0A\x06action\x18\x01 \x01(\x0B2\x1B.google.apps.card.v1.ActionH\x00\x122\x0A\x09open_link\x18\x02 \x01(\x0B2\x1D.google.apps.card.v1.OpenLinkH\x00\x12?\x0A\x18open_dynamic_link_action\x18\x03 \x01(\x0B2\x1B.google.apps.card.v1.ActionH\x00\x12)\x0A\x04card\x18\x04 \x01(\x0B2\x19.google.apps.card.v1.CardH\x00\x12:\x0A\x0Doverflow_menu\x18\x08 \x01(\x0B2!.google.apps.card.v1.OverflowMenuH\x00B\x06\x0A\x04data\"\xD1\x01\x0A\x08OpenLink\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x125\x0A\x07open_as\x18\x02 \x01(\x0E2\$.google.apps.card.v1.OpenLink.OpenAs\x127\x0A\x08on_close\x18\x03 \x01(\x0E2%.google.apps.card.v1.OpenLink.OnClose\"\$\x0A\x06OpenAs\x12\x0D\x0A\x09FULL_SIZE\x10\x00\x12\x0B\x0A\x07OVERLAY\x10\x01\"\"\x0A\x07OnClose\x12\x0B\x0A\x07NOTHING\x10\x00\x12\x0A\x0A\x06RELOAD\x10\x01\"\xC4\x03\x0A\x06Action\x12\x10\x0A\x08function\x18\x01 \x01(\x09\x12?\x0A\x0Aparameters\x18\x02 \x03(\x0B2+.google.apps.card.v1.Action.ActionParameter\x12A\x0A\x0Eload_indicator\x18\x03 \x01(\x0E2).google.apps.card.v1.Action.LoadIndicator\x12\x16\x0A\x0Epersist_values\x18\x04 \x01(\x08\x12<\x0A\x0Binteraction\x18\x05 \x01(\x0E2'.google.apps.card.v1.Action.Interaction\x12\x18\x0A\x10required_widgets\x18\x06 \x03(\x09\x12 \x0A\x18all_widgets_are_required\x18\x07 \x01(\x08\x1A-\x0A\x0FActionParameter\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"&\x0A\x0DLoadIndicator\x12\x0B\x0A\x07SPINNER\x10\x00\x12\x08\x0A\x04NONE\x10\x01\";\x0A\x0BInteraction\x12\x1B\x0A\x17INTERACTION_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BOPEN_DIALOG\x10\x01\"\xCC\x01\x0A\x0AValidation\x12\x17\x0A\x0Fcharacter_limit\x18\x01 \x01(\x05\x12=\x0A\x0Ainput_type\x18\x02 \x01(\x0E2).google.apps.card.v1.Validation.InputType\"f\x0A\x09InputType\x12\x1A\x0A\x16INPUT_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04TEXT\x10\x01\x12\x0B\x0A\x07INTEGER\x10\x02\x12\x09\x0A\x05FLOAT\x10\x03\x12\x09\x0A\x05EMAIL\x10\x04\x12\x10\x0A\x0CEMOJI_PICKER\x10\x05\"\xB4\x01\x0A\x08ChipList\x124\x0A\x06layout\x18\x01 \x01(\x0E2\$.google.apps.card.v1.ChipList.Layout\x12(\x0A\x05chips\x18\x02 \x03(\x0B2\x19.google.apps.card.v1.Chip\"H\x0A\x06Layout\x12\x16\x0A\x12LAYOUT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WRAPPED\x10\x01\x12\x19\x0A\x15HORIZONTAL_SCROLLABLE\x10\x02\"\xA7\x01\x0A\x04Chip\x12'\x0A\x04icon\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.Icon\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12.\x0A\x08on_click\x18\x03 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x13\x0A\x07enabled\x18\x04 \x01(\x08B\x02\x18\x01\x12\x10\x0A\x08disabled\x18\x06 \x01(\x08\x12\x10\x0A\x08alt_text\x18\x05 \x01(\x09B\xA4\x01\x0A\x17com.google.apps.card.v1B\x09CardProtoP\x01Z7google.golang.org/genproto/googleapis/apps/card/v1;card\xAA\x02\x13Google.Apps.Card.V1\xCA\x02\x13Google\\Apps\\Card\\V1\xEA\x02\x16Google::Apps::Card::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php new file mode 100644 index 000000000000..971fee1c72f6 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php @@ -0,0 +1,431 @@ +google.apps.card.v1.Action + */ +class Action extends \Google\Protobuf\Internal\Message +{ + /** + * A custom function to invoke when the containing element is + * clicked or otherwise activated. + * For example usage, see [Read form + * data](https://developers.google.com/workspace/chat/read-form-data). + * + * Generated from protobuf field string function = 1; + */ + protected $function = ''; + /** + * List of action parameters. + * + * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; + */ + private $parameters; + /** + * Specifies the loading indicator that the action displays while + * making the call to the action. + * + * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; + */ + protected $load_indicator = 0; + /** + * Indicates whether form values persist after the action. The default value + * is `false`. + * If `true`, form values remain after the action is triggered. To let the + * user make changes while the action is being processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `NONE`. For [card + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) + * in Chat apps, you must also set the action's + * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) + * to `UPDATE_MESSAGE` and use the same + * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) + * from the card that contained the action. + * If `false`, the form values are cleared when the action is triggered. + * To prevent the user from making changes while the action is being + * processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `SPINNER`. + * + * Generated from protobuf field bool persist_values = 4; + */ + protected $persist_values = false; + /** + * Optional. Required when opening a + * [dialog](https://developers.google.com/workspace/chat/dialogs). + * What to do in response to an interaction with a user, such as a user + * clicking a button in a card message. + * If unspecified, the app responds by executing an `action`—like opening a + * link or running a function—as normal. + * By specifying an `interaction`, the app can respond in special interactive + * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can + * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When + * specified, a loading indicator isn't shown. If specified for + * an add-on, the entire card is stripped and nothing is shown in the client. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; + */ + protected $interaction = 0; + /** + * Optional. Fill this list with the names of widgets that this Action + * needs for a valid submission. + * If the widgets listed here don't have a value when this Action is invoked, + * the form submission is aborted. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field repeated string required_widgets = 6; + */ + private $required_widgets; + /** + * Optional. If this is true, then all widgets are considered required by + * this action. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field bool all_widgets_are_required = 7; + */ + protected $all_widgets_are_required = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $function + * A custom function to invoke when the containing element is + * clicked or otherwise activated. + * For example usage, see [Read form + * data](https://developers.google.com/workspace/chat/read-form-data). + * @type \Google\Apps\Card\V1\Action\ActionParameter[] $parameters + * List of action parameters. + * @type int $load_indicator + * Specifies the loading indicator that the action displays while + * making the call to the action. + * @type bool $persist_values + * Indicates whether form values persist after the action. The default value + * is `false`. + * If `true`, form values remain after the action is triggered. To let the + * user make changes while the action is being processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `NONE`. For [card + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) + * in Chat apps, you must also set the action's + * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) + * to `UPDATE_MESSAGE` and use the same + * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) + * from the card that contained the action. + * If `false`, the form values are cleared when the action is triggered. + * To prevent the user from making changes while the action is being + * processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `SPINNER`. + * @type int $interaction + * Optional. Required when opening a + * [dialog](https://developers.google.com/workspace/chat/dialogs). + * What to do in response to an interaction with a user, such as a user + * clicking a button in a card message. + * If unspecified, the app responds by executing an `action`—like opening a + * link or running a function—as normal. + * By specifying an `interaction`, the app can respond in special interactive + * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can + * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When + * specified, a loading indicator isn't shown. If specified for + * an add-on, the entire card is stripped and nothing is shown in the client. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * @type string[] $required_widgets + * Optional. Fill this list with the names of widgets that this Action + * needs for a valid submission. + * If the widgets listed here don't have a value when this Action is invoked, + * the form submission is aborted. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * @type bool $all_widgets_are_required + * Optional. If this is true, then all widgets are considered required by + * this action. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * A custom function to invoke when the containing element is + * clicked or otherwise activated. + * For example usage, see [Read form + * data](https://developers.google.com/workspace/chat/read-form-data). + * + * Generated from protobuf field string function = 1; + * @return string + */ + public function getFunction() + { + return $this->function; + } + + /** + * A custom function to invoke when the containing element is + * clicked or otherwise activated. + * For example usage, see [Read form + * data](https://developers.google.com/workspace/chat/read-form-data). + * + * Generated from protobuf field string function = 1; + * @param string $var + * @return $this + */ + public function setFunction($var) + { + GPBUtil::checkString($var, True); + $this->function = $var; + + return $this; + } + + /** + * List of action parameters. + * + * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; + * @return RepeatedField<\Google\Apps\Card\V1\Action\ActionParameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * List of action parameters. + * + * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; + * @param \Google\Apps\Card\V1\Action\ActionParameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Action\ActionParameter::class); + $this->parameters = $arr; + + return $this; + } + + /** + * Specifies the loading indicator that the action displays while + * making the call to the action. + * + * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; + * @return int + */ + public function getLoadIndicator() + { + return $this->load_indicator; + } + + /** + * Specifies the loading indicator that the action displays while + * making the call to the action. + * + * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; + * @param int $var + * @return $this + */ + public function setLoadIndicator($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Action\LoadIndicator::class); + $this->load_indicator = $var; + + return $this; + } + + /** + * Indicates whether form values persist after the action. The default value + * is `false`. + * If `true`, form values remain after the action is triggered. To let the + * user make changes while the action is being processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `NONE`. For [card + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) + * in Chat apps, you must also set the action's + * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) + * to `UPDATE_MESSAGE` and use the same + * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) + * from the card that contained the action. + * If `false`, the form values are cleared when the action is triggered. + * To prevent the user from making changes while the action is being + * processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `SPINNER`. + * + * Generated from protobuf field bool persist_values = 4; + * @return bool + */ + public function getPersistValues() + { + return $this->persist_values; + } + + /** + * Indicates whether form values persist after the action. The default value + * is `false`. + * If `true`, form values remain after the action is triggered. To let the + * user make changes while the action is being processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `NONE`. For [card + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) + * in Chat apps, you must also set the action's + * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) + * to `UPDATE_MESSAGE` and use the same + * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) + * from the card that contained the action. + * If `false`, the form values are cleared when the action is triggered. + * To prevent the user from making changes while the action is being + * processed, set + * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) + * to `SPINNER`. + * + * Generated from protobuf field bool persist_values = 4; + * @param bool $var + * @return $this + */ + public function setPersistValues($var) + { + GPBUtil::checkBool($var); + $this->persist_values = $var; + + return $this; + } + + /** + * Optional. Required when opening a + * [dialog](https://developers.google.com/workspace/chat/dialogs). + * What to do in response to an interaction with a user, such as a user + * clicking a button in a card message. + * If unspecified, the app responds by executing an `action`—like opening a + * link or running a function—as normal. + * By specifying an `interaction`, the app can respond in special interactive + * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can + * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When + * specified, a loading indicator isn't shown. If specified for + * an add-on, the entire card is stripped and nothing is shown in the client. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; + * @return int + */ + public function getInteraction() + { + return $this->interaction; + } + + /** + * Optional. Required when opening a + * [dialog](https://developers.google.com/workspace/chat/dialogs). + * What to do in response to an interaction with a user, such as a user + * clicking a button in a card message. + * If unspecified, the app responds by executing an `action`—like opening a + * link or running a function—as normal. + * By specifying an `interaction`, the app can respond in special interactive + * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can + * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When + * specified, a loading indicator isn't shown. If specified for + * an add-on, the entire card is stripped and nothing is shown in the client. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; + * @param int $var + * @return $this + */ + public function setInteraction($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Action\Interaction::class); + $this->interaction = $var; + + return $this; + } + + /** + * Optional. Fill this list with the names of widgets that this Action + * needs for a valid submission. + * If the widgets listed here don't have a value when this Action is invoked, + * the form submission is aborted. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field repeated string required_widgets = 6; + * @return RepeatedField + */ + public function getRequiredWidgets() + { + return $this->required_widgets; + } + + /** + * Optional. Fill this list with the names of widgets that this Action + * needs for a valid submission. + * If the widgets listed here don't have a value when this Action is invoked, + * the form submission is aborted. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field repeated string required_widgets = 6; + * @param string[] $var + * @return $this + */ + public function setRequiredWidgets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_widgets = $arr; + + return $this; + } + + /** + * Optional. If this is true, then all widgets are considered required by + * this action. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field bool all_widgets_are_required = 7; + * @return bool + */ + public function getAllWidgetsAreRequired() + { + return $this->all_widgets_are_required; + } + + /** + * Optional. If this is true, then all widgets are considered required by + * this action. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field bool all_widgets_are_required = 7; + * @param bool $var + * @return $this + */ + public function setAllWidgetsAreRequired($var) + { + GPBUtil::checkBool($var); + $this->all_widgets_are_required = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php new file mode 100644 index 000000000000..c0b2110fe223 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php @@ -0,0 +1,108 @@ +google.apps.card.v1.Action.ActionParameter + */ +class ActionParameter extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the parameter for the action script. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The value of the parameter. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The name of the parameter for the action script. + * @type string $value + * The value of the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The name of the parameter for the action script. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The name of the parameter for the action script. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The value of the parameter. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value of the parameter. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php new file mode 100644 index 000000000000..80add2d0e65c --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php @@ -0,0 +1,71 @@ +google.apps.card.v1.Action.Interaction + */ +class Interaction +{ + /** + * Default value. The `action` executes as normal. + * + * Generated from protobuf enum INTERACTION_UNSPECIFIED = 0; + */ + const INTERACTION_UNSPECIFIED = 0; + /** + * Opens a [dialog](https://developers.google.com/workspace/chat/dialogs), a + * windowed, card-based interface that Chat apps use to interact with users. + * Only supported by Chat apps in response to button-clicks on card + * messages. If specified for + * an add-on, the entire card is stripped and nothing is shown in the + * client. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf enum OPEN_DIALOG = 1; + */ + const OPEN_DIALOG = 1; + + private static $valueToName = [ + self::INTERACTION_UNSPECIFIED => 'INTERACTION_UNSPECIFIED', + self::OPEN_DIALOG => 'OPEN_DIALOG', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php new file mode 100644 index 000000000000..1af72ac535a9 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php @@ -0,0 +1,57 @@ +google.apps.card.v1.Action.LoadIndicator + */ +class LoadIndicator +{ + /** + * Displays a spinner to indicate that content is loading. + * + * Generated from protobuf enum SPINNER = 0; + */ + const SPINNER = 0; + /** + * Nothing is displayed. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + + private static $valueToName = [ + self::SPINNER => 'SPINNER', + self::NONE => 'NONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php new file mode 100644 index 000000000000..f07482954e84 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php @@ -0,0 +1,208 @@ +google.apps.card.v1.BorderStyle + */ +class BorderStyle extends \Google\Protobuf\Internal\Message +{ + /** + * The border type. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; + */ + protected $type = 0; + /** + * The colors to use when the type is `BORDER_TYPE_STROKE`. + * To set the stroke color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for stroke color. If specified, this field + * is ignored. + * + * Generated from protobuf field .google.type.Color stroke_color = 2; + */ + protected $stroke_color = null; + /** + * The corner radius for the border. + * + * Generated from protobuf field int32 corner_radius = 3; + */ + protected $corner_radius = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The border type. + * @type \Google\Type\Color $stroke_color + * The colors to use when the type is `BORDER_TYPE_STROKE`. + * To set the stroke color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for stroke color. If specified, this field + * is ignored. + * @type int $corner_radius + * The corner radius for the border. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The border type. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The border type. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\BorderStyle\BorderType::class); + $this->type = $var; + + return $this; + } + + /** + * The colors to use when the type is `BORDER_TYPE_STROKE`. + * To set the stroke color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for stroke color. If specified, this field + * is ignored. + * + * Generated from protobuf field .google.type.Color stroke_color = 2; + * @return \Google\Type\Color|null + */ + public function getStrokeColor() + { + return $this->stroke_color; + } + + public function hasStrokeColor() + { + return isset($this->stroke_color); + } + + public function clearStrokeColor() + { + unset($this->stroke_color); + } + + /** + * The colors to use when the type is `BORDER_TYPE_STROKE`. + * To set the stroke color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for stroke color. If specified, this field + * is ignored. + * + * Generated from protobuf field .google.type.Color stroke_color = 2; + * @param \Google\Type\Color $var + * @return $this + */ + public function setStrokeColor($var) + { + GPBUtil::checkMessage($var, \Google\Type\Color::class); + $this->stroke_color = $var; + + return $this; + } + + /** + * The corner radius for the border. + * + * Generated from protobuf field int32 corner_radius = 3; + * @return int + */ + public function getCornerRadius() + { + return $this->corner_radius; + } + + /** + * The corner radius for the border. + * + * Generated from protobuf field int32 corner_radius = 3; + * @param int $var + * @return $this + */ + public function setCornerRadius($var) + { + GPBUtil::checkInt32($var); + $this->corner_radius = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php new file mode 100644 index 000000000000..cb89ca1ab6ad --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php @@ -0,0 +1,63 @@ +google.apps.card.v1.BorderStyle.BorderType + */ +class BorderType +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum BORDER_TYPE_UNSPECIFIED = 0; + */ + const BORDER_TYPE_UNSPECIFIED = 0; + /** + * No border. + * + * Generated from protobuf enum NO_BORDER = 1; + */ + const NO_BORDER = 1; + /** + * Default value. Outline. + * + * Generated from protobuf enum STROKE = 2; + */ + const STROKE = 2; + + private static $valueToName = [ + self::BORDER_TYPE_UNSPECIFIED => 'BORDER_TYPE_UNSPECIFIED', + self::NO_BORDER => 'NO_BORDER', + self::STROKE => 'STROKE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php new file mode 100644 index 000000000000..a50d057c3b9a --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php @@ -0,0 +1,418 @@ +google.apps.card.v1.Button + */ +class Button extends \Google\Protobuf\Internal\Message +{ + /** + * The text displayed inside the button. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * An icon displayed inside the button. If both `icon` and `text` are set, + * then the icon appears before the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; + */ + protected $icon = null; + /** + * Optional. The color of the button. If set, the button `type` is set to + * `FILLED` and the color of `text` and `icon` fields are set to a + * contrasting color for readability. For example, if the button color is + * set to blue, any text or icons in the button are set to white. + * To set the button color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for button color. If specified, this field + * is ignored. + * + * Generated from protobuf field .google.type.Color color = 3; + */ + protected $color = null; + /** + * Required. The action to perform when a user clicks the button, such as + * opening a hyperlink or running a custom function. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; + */ + protected $on_click = null; + /** + * If `true`, the button is displayed in an inactive state and doesn't respond + * to user actions. + * + * Generated from protobuf field bool disabled = 5; + */ + protected $disabled = false; + /** + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the button does. For + * example, if a button opens a hyperlink, you might write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * + * Generated from protobuf field string alt_text = 6; + */ + protected $alt_text = ''; + /** + * Optional. The type of a button. If unset, button type defaults to + * `OUTLINED`. If the `color` field is set, the button type is forced to + * `FILLED` and any value set for this field is ignored. + * + * Generated from protobuf field .google.apps.card.v1.Button.Type type = 7; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * The text displayed inside the button. + * @type \Google\Apps\Card\V1\Icon $icon + * An icon displayed inside the button. If both `icon` and `text` are set, + * then the icon appears before the text. + * @type \Google\Type\Color $color + * Optional. The color of the button. If set, the button `type` is set to + * `FILLED` and the color of `text` and `icon` fields are set to a + * contrasting color for readability. For example, if the button color is + * set to blue, any text or icons in the button are set to white. + * To set the button color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for button color. If specified, this field + * is ignored. + * @type \Google\Apps\Card\V1\OnClick $on_click + * Required. The action to perform when a user clicks the button, such as + * opening a hyperlink or running a custom function. + * @type bool $disabled + * If `true`, the button is displayed in an inactive state and doesn't respond + * to user actions. + * @type string $alt_text + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the button does. For + * example, if a button opens a hyperlink, you might write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * @type int $type + * Optional. The type of a button. If unset, button type defaults to + * `OUTLINED`. If the `color` field is set, the button type is forced to + * `FILLED` and any value set for this field is ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The text displayed inside the button. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The text displayed inside the button. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * An icon displayed inside the button. If both `icon` and `text` are set, + * then the icon appears before the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; + * @return \Google\Apps\Card\V1\Icon|null + */ + public function getIcon() + { + return $this->icon; + } + + public function hasIcon() + { + return isset($this->icon); + } + + public function clearIcon() + { + unset($this->icon); + } + + /** + * An icon displayed inside the button. If both `icon` and `text` are set, + * then the icon appears before the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; + * @param \Google\Apps\Card\V1\Icon $var + * @return $this + */ + public function setIcon($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); + $this->icon = $var; + + return $this; + } + + /** + * Optional. The color of the button. If set, the button `type` is set to + * `FILLED` and the color of `text` and `icon` fields are set to a + * contrasting color for readability. For example, if the button color is + * set to blue, any text or icons in the button are set to white. + * To set the button color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for button color. If specified, this field + * is ignored. + * + * Generated from protobuf field .google.type.Color color = 3; + * @return \Google\Type\Color|null + */ + public function getColor() + { + return $this->color; + } + + public function hasColor() + { + return isset($this->color); + } + + public function clearColor() + { + unset($this->color); + } + + /** + * Optional. The color of the button. If set, the button `type` is set to + * `FILLED` and the color of `text` and `icon` fields are set to a + * contrasting color for readability. For example, if the button color is + * set to blue, any text or icons in the button are set to white. + * To set the button color, specify a value for the `red`, `green`, and `blue` + * fields. + * The value must be a float number between 0 and 1 based on the RGB color + * value, where `0` (0/255) represents the absence of color and `1` (255/255) + * represents the maximum intensity of the color. + * For example, the following sets the color to red at its maximum intensity: + * ``` + * "color": { + * "red": 1, + * "green": 0, + * "blue": 0, + * } + * ``` + * The `alpha` field is unavailable for button color. If specified, this field + * is ignored. + * + * Generated from protobuf field .google.type.Color color = 3; + * @param \Google\Type\Color $var + * @return $this + */ + public function setColor($var) + { + GPBUtil::checkMessage($var, \Google\Type\Color::class); + $this->color = $var; + + return $this; + } + + /** + * Required. The action to perform when a user clicks the button, such as + * opening a hyperlink or running a custom function. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; + * @return \Google\Apps\Card\V1\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * Required. The action to perform when a user clicks the button, such as + * opening a hyperlink or running a custom function. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; + * @param \Google\Apps\Card\V1\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * If `true`, the button is displayed in an inactive state and doesn't respond + * to user actions. + * + * Generated from protobuf field bool disabled = 5; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * If `true`, the button is displayed in an inactive state and doesn't respond + * to user actions. + * + * Generated from protobuf field bool disabled = 5; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the button does. For + * example, if a button opens a hyperlink, you might write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * + * Generated from protobuf field string alt_text = 6; + * @return string + */ + public function getAltText() + { + return $this->alt_text; + } + + /** + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the button does. For + * example, if a button opens a hyperlink, you might write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * + * Generated from protobuf field string alt_text = 6; + * @param string $var + * @return $this + */ + public function setAltText($var) + { + GPBUtil::checkString($var, True); + $this->alt_text = $var; + + return $this; + } + + /** + * Optional. The type of a button. If unset, button type defaults to + * `OUTLINED`. If the `color` field is set, the button type is forced to + * `FILLED` and any value set for this field is ignored. + * + * Generated from protobuf field .google.apps.card.v1.Button.Type type = 7; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. The type of a button. If unset, button type defaults to + * `OUTLINED`. If the `color` field is set, the button type is forced to + * `FILLED` and any value set for this field is ignored. + * + * Generated from protobuf field .google.apps.card.v1.Button.Type type = 7; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Button\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php new file mode 100644 index 000000000000..aabd8e013396 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php @@ -0,0 +1,86 @@ +google.apps.card.v1.Button.Type + */ +class Type +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Outlined buttons are medium-emphasis buttons. They usually contain + * actions that are important, but aren’t the primary action in a Chat app + * or an add-on. + * + * Generated from protobuf enum OUTLINED = 1; + */ + const OUTLINED = 1; + /** + * A filled button has a container with a solid color. It has the most + * visual impact and is recommended for the important and primary action in + * a Chat app or an add-on. + * + * Generated from protobuf enum FILLED = 2; + */ + const FILLED = 2; + /** + * A filled tonal button is an alternative middle ground between filled and + * outlined buttons. They’re useful in contexts where a lower-priority + * button requires slightly more emphasis than an outline button would give. + * + * Generated from protobuf enum FILLED_TONAL = 3; + */ + const FILLED_TONAL = 3; + /** + * A button does not have an invisible container in its default state. It is + * often used for the lowest priority actions, especially when presenting + * multiple options. + * + * Generated from protobuf enum BORDERLESS = 4; + */ + const BORDERLESS = 4; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::OUTLINED => 'OUTLINED', + self::FILLED => 'FILLED', + self::FILLED_TONAL => 'FILLED_TONAL', + self::BORDERLESS => 'BORDERLESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php new file mode 100644 index 000000000000..52389c27c5a3 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php @@ -0,0 +1,72 @@ +google.apps.card.v1.ButtonList + */ +class ButtonList extends \Google\Protobuf\Internal\Message +{ + /** + * An array of buttons. + * + * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; + */ + private $buttons; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Button[] $buttons + * An array of buttons. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * An array of buttons. + * + * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; + * @return RepeatedField<\Google\Apps\Card\V1\Button> + */ + public function getButtons() + { + return $this->buttons; + } + + /** + * An array of buttons. + * + * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; + * @param \Google\Apps\Card\V1\Button[] $var + * @return $this + */ + public function setButtons($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Button::class); + $this->buttons = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php new file mode 100644 index 000000000000..3404b4457fad --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php @@ -0,0 +1,641 @@ +Online" + * } + * }, + * { + * "decoratedText": { + * "startIcon": { + * "knownIcon": "PHONE" + * }, + * "text": "+1 (555) 555-1234" + * } + * }, + * { + * "buttonList": { + * "buttons": [ + * { + * "text": "Share", + * "onClick": { + * "openLink": { + * "url": "https://example.com/share" + * } + * } + * }, + * { + * "text": "Edit", + * "onClick": { + * "action": { + * "function": "goToView", + * "parameters": [ + * { + * "key": "viewType", + * "value": "EDIT" + * } + * ] + * } + * } + * } + * ] + * } + * } + * ] + * } + * ] + * } + * } + * ] + * } + * ``` + * + * Generated from protobuf message google.apps.card.v1.Card + */ +class Card extends \Google\Protobuf\Internal\Message +{ + /** + * The header of the card. A header usually contains a leading image and a + * title. Headers always appear at the top of a card. + * + * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; + */ + protected $header = null; + /** + * Contains a collection of widgets. Each section has its own, optional + * header. Sections are visually separated by a line divider. For an example + * in Google Chat apps, see [Define a section of a + * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; + */ + private $sections; + /** + * The divider style between the header, sections and footer. + * + * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; + */ + protected $section_divider_style = 0; + /** + * 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" + * } + * } + * } + * ] + * ``` + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; + */ + private $card_actions; + /** + * Name of the card. Used as a card identifier in card navigation. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + /** + * The fixed footer shown at the bottom of this card. + * Setting `fixedFooter` without specifying a `primaryButton` or a + * `secondaryButton` causes an error. For Chat apps, you can use fixed footers + * in + * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not + * [card + * messages](https://developers.google.com/workspace/chat/create-messages#create). + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; + */ + protected $fixed_footer = null; + /** + * In Google Workspace add-ons, sets the display properties of the + * `peekCardHeader`. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; + */ + protected $display_style = 0; + /** + * When displaying contextual content, the peek card header acts as a + * placeholder so that the user can navigate forward between the homepage + * cards and the contextual cards. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; + */ + protected $peek_card_header = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Card\CardHeader $header + * The header of the card. A header usually contains a leading image and a + * title. Headers always appear at the top of a card. + * @type \Google\Apps\Card\V1\Card\Section[] $sections + * Contains a collection of widgets. Each section has its own, optional + * header. Sections are visually separated by a line divider. For an example + * in Google Chat apps, see [Define a section of a + * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). + * @type int $section_divider_style + * The divider style between the header, sections and footer. + * @type \Google\Apps\Card\V1\Card\CardAction[] $card_actions + * 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" + * } + * } + * } + * ] + * ``` + * @type string $name + * Name of the card. Used as a card identifier in card navigation. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * @type \Google\Apps\Card\V1\Card\CardFixedFooter $fixed_footer + * The fixed footer shown at the bottom of this card. + * Setting `fixedFooter` without specifying a `primaryButton` or a + * `secondaryButton` causes an error. For Chat apps, you can use fixed footers + * in + * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not + * [card + * messages](https://developers.google.com/workspace/chat/create-messages#create). + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * @type int $display_style + * In Google Workspace add-ons, sets the display properties of the + * `peekCardHeader`. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * @type \Google\Apps\Card\V1\Card\CardHeader $peek_card_header + * When displaying contextual content, the peek card header acts as a + * placeholder so that the user can navigate forward between the homepage + * cards and the contextual cards. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The header of the card. A header usually contains a leading image and a + * title. Headers always appear at the top of a card. + * + * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; + * @return \Google\Apps\Card\V1\Card\CardHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The header of the card. A header usually contains a leading image and a + * title. Headers always appear at the top of a card. + * + * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; + * @param \Google\Apps\Card\V1\Card\CardHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Contains a collection of widgets. Each section has its own, optional + * header. Sections are visually separated by a line divider. For an example + * in Google Chat apps, see [Define a section of a + * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; + * @return RepeatedField<\Google\Apps\Card\V1\Card\Section> + */ + public function getSections() + { + return $this->sections; + } + + /** + * Contains a collection of widgets. Each section has its own, optional + * header. Sections are visually separated by a line divider. For an example + * in Google Chat apps, see [Define a section of a + * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; + * @param \Google\Apps\Card\V1\Card\Section[] $var + * @return $this + */ + public function setSections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\Section::class); + $this->sections = $arr; + + return $this; + } + + /** + * The divider style between the header, sections and footer. + * + * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; + * @return int + */ + public function getSectionDividerStyle() + { + return $this->section_divider_style; + } + + /** + * The divider style between the header, sections and footer. + * + * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; + * @param int $var + * @return $this + */ + public function setSectionDividerStyle($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Card\DividerStyle::class); + $this->section_divider_style = $var; + + return $this; + } + + /** + * 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" + * } + * } + * } + * ] + * ``` + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; + * @return RepeatedField<\Google\Apps\Card\V1\Card\CardAction> + */ + public function getCardActions() + { + return $this->card_actions; + } + + /** + * 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" + * } + * } + * } + * ] + * ``` + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; + * @param \Google\Apps\Card\V1\Card\CardAction[] $var + * @return $this + */ + public function setCardActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\CardAction::class); + $this->card_actions = $arr; + + return $this; + } + + /** + * Name of the card. Used as a card identifier in card navigation. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the card. Used as a card identifier in card navigation. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The fixed footer shown at the bottom of this card. + * Setting `fixedFooter` without specifying a `primaryButton` or a + * `secondaryButton` causes an error. For Chat apps, you can use fixed footers + * in + * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not + * [card + * messages](https://developers.google.com/workspace/chat/create-messages#create). + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; + * @return \Google\Apps\Card\V1\Card\CardFixedFooter|null + */ + public function getFixedFooter() + { + return $this->fixed_footer; + } + + public function hasFixedFooter() + { + return isset($this->fixed_footer); + } + + public function clearFixedFooter() + { + unset($this->fixed_footer); + } + + /** + * The fixed footer shown at the bottom of this card. + * Setting `fixedFooter` without specifying a `primaryButton` or a + * `secondaryButton` causes an error. For Chat apps, you can use fixed footers + * in + * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not + * [card + * messages](https://developers.google.com/workspace/chat/create-messages#create). + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; + * @param \Google\Apps\Card\V1\Card\CardFixedFooter $var + * @return $this + */ + public function setFixedFooter($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardFixedFooter::class); + $this->fixed_footer = $var; + + return $this; + } + + /** + * In Google Workspace add-ons, sets the display properties of the + * `peekCardHeader`. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; + * @return int + */ + public function getDisplayStyle() + { + return $this->display_style; + } + + /** + * In Google Workspace add-ons, sets the display properties of the + * `peekCardHeader`. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; + * @param int $var + * @return $this + */ + public function setDisplayStyle($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Card\DisplayStyle::class); + $this->display_style = $var; + + return $this; + } + + /** + * When displaying contextual content, the peek card header acts as a + * placeholder so that the user can navigate forward between the homepage + * cards and the contextual cards. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; + * @return \Google\Apps\Card\V1\Card\CardHeader|null + */ + public function getPeekCardHeader() + { + return $this->peek_card_header; + } + + public function hasPeekCardHeader() + { + return isset($this->peek_card_header); + } + + public function clearPeekCardHeader() + { + unset($this->peek_card_header); + } + + /** + * When displaying contextual content, the peek card header acts as a + * placeholder so that the user can navigate forward between the homepage + * cards and the contextual cards. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; + * @param \Google\Apps\Card\V1\Card\CardHeader $var + * @return $this + */ + public function setPeekCardHeader($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardHeader::class); + $this->peek_card_header = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php new file mode 100644 index 000000000000..d60710da9cd4 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php @@ -0,0 +1,115 @@ +google.apps.card.v1.Card.CardAction + */ +class CardAction extends \Google\Protobuf\Internal\Message +{ + /** + * The label that displays as the action menu item. + * + * Generated from protobuf field string action_label = 1; + */ + protected $action_label = ''; + /** + * The `onClick` action for this action item. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; + */ + protected $on_click = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $action_label + * The label that displays as the action menu item. + * @type \Google\Apps\Card\V1\OnClick $on_click + * The `onClick` action for this action item. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The label that displays as the action menu item. + * + * Generated from protobuf field string action_label = 1; + * @return string + */ + public function getActionLabel() + { + return $this->action_label; + } + + /** + * The label that displays as the action menu item. + * + * Generated from protobuf field string action_label = 1; + * @param string $var + * @return $this + */ + public function setActionLabel($var) + { + GPBUtil::checkString($var, True); + $this->action_label = $var; + + return $this; + } + + /** + * The `onClick` action for this action item. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; + * @return \Google\Apps\Card\V1\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * The `onClick` action for this action item. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; + * @param \Google\Apps\Card\V1\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); + $this->on_click = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php new file mode 100644 index 000000000000..5b63b6b844fb --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php @@ -0,0 +1,143 @@ +google.apps.card.v1.Card.CardFixedFooter + */ +class CardFixedFooter extends \Google\Protobuf\Internal\Message +{ + /** + * The primary button of the fixed footer. The button must be a text button + * with text and color set. + * + * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; + */ + protected $primary_button = null; + /** + * The secondary button of the fixed footer. The button must be a text + * button with text and color set. + * If `secondaryButton` is set, you must also set `primaryButton`. + * + * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; + */ + protected $secondary_button = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Button $primary_button + * The primary button of the fixed footer. The button must be a text button + * with text and color set. + * @type \Google\Apps\Card\V1\Button $secondary_button + * The secondary button of the fixed footer. The button must be a text + * button with text and color set. + * If `secondaryButton` is set, you must also set `primaryButton`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The primary button of the fixed footer. The button must be a text button + * with text and color set. + * + * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; + * @return \Google\Apps\Card\V1\Button|null + */ + public function getPrimaryButton() + { + return $this->primary_button; + } + + public function hasPrimaryButton() + { + return isset($this->primary_button); + } + + public function clearPrimaryButton() + { + unset($this->primary_button); + } + + /** + * The primary button of the fixed footer. The button must be a text button + * with text and color set. + * + * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; + * @param \Google\Apps\Card\V1\Button $var + * @return $this + */ + public function setPrimaryButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); + $this->primary_button = $var; + + return $this; + } + + /** + * The secondary button of the fixed footer. The button must be a text + * button with text and color set. + * If `secondaryButton` is set, you must also set `primaryButton`. + * + * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; + * @return \Google\Apps\Card\V1\Button|null + */ + public function getSecondaryButton() + { + return $this->secondary_button; + } + + public function hasSecondaryButton() + { + return isset($this->secondary_button); + } + + public function clearSecondaryButton() + { + unset($this->secondary_button); + } + + /** + * The secondary button of the fixed footer. The button must be a text + * button with text and color set. + * If `secondaryButton` is set, you must also set `primaryButton`. + * + * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; + * @param \Google\Apps\Card\V1\Button $var + * @return $this + */ + public function setSecondaryButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); + $this->secondary_button = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php new file mode 100644 index 000000000000..f27bfc04ad05 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php @@ -0,0 +1,230 @@ +google.apps.card.v1.Card.CardHeader + */ +class CardHeader extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The title of the card header. + * The header has a fixed height: if both a + * title and subtitle are specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * + * Generated from protobuf field string title = 1; + */ + protected $title = ''; + /** + * The subtitle of the card header. If specified, appears on its own line + * below the `title`. + * + * Generated from protobuf field string subtitle = 2; + */ + protected $subtitle = ''; + /** + * The shape used to crop the image. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; + */ + protected $image_type = 0; + /** + * The HTTPS URL of the image in the card header. + * + * Generated from protobuf field string image_url = 4; + */ + protected $image_url = ''; + /** + * The alternative text of this image that's used for accessibility. + * + * Generated from protobuf field string image_alt_text = 5; + */ + protected $image_alt_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * Required. The title of the card header. + * The header has a fixed height: if both a + * title and subtitle are specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * @type string $subtitle + * The subtitle of the card header. If specified, appears on its own line + * below the `title`. + * @type int $image_type + * The shape used to crop the image. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * @type string $image_url + * The HTTPS URL of the image in the card header. + * @type string $image_alt_text + * The alternative text of this image that's used for accessibility. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Required. The title of the card header. + * The header has a fixed height: if both a + * title and subtitle are specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Required. The title of the card header. + * The header has a fixed height: if both a + * title and subtitle are specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * + * Generated from protobuf field string title = 1; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * The subtitle of the card header. If specified, appears on its own line + * below the `title`. + * + * Generated from protobuf field string subtitle = 2; + * @return string + */ + public function getSubtitle() + { + return $this->subtitle; + } + + /** + * The subtitle of the card header. If specified, appears on its own line + * below the `title`. + * + * Generated from protobuf field string subtitle = 2; + * @param string $var + * @return $this + */ + public function setSubtitle($var) + { + GPBUtil::checkString($var, True); + $this->subtitle = $var; + + return $this; + } + + /** + * The shape used to crop the image. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; + * @return int + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * The shape used to crop the image. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; + * @param int $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\ImageType::class); + $this->image_type = $var; + + return $this; + } + + /** + * The HTTPS URL of the image in the card header. + * + * Generated from protobuf field string image_url = 4; + * @return string + */ + public function getImageUrl() + { + return $this->image_url; + } + + /** + * The HTTPS URL of the image in the card header. + * + * Generated from protobuf field string image_url = 4; + * @param string $var + * @return $this + */ + public function setImageUrl($var) + { + GPBUtil::checkString($var, True); + $this->image_url = $var; + + return $this; + } + + /** + * The alternative text of this image that's used for accessibility. + * + * Generated from protobuf field string image_alt_text = 5; + * @return string + */ + public function getImageAltText() + { + return $this->image_alt_text; + } + + /** + * The alternative text of this image that's used for accessibility. + * + * Generated from protobuf field string image_alt_text = 5; + * @param string $var + * @return $this + */ + public function setImageAltText($var) + { + GPBUtil::checkString($var, True); + $this->image_alt_text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php new file mode 100644 index 000000000000..f925d12ddd5c --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php @@ -0,0 +1,68 @@ +google.apps.card.v1.Card.DisplayStyle + */ +class DisplayStyle +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum DISPLAY_STYLE_UNSPECIFIED = 0; + */ + const DISPLAY_STYLE_UNSPECIFIED = 0; + /** + * The header of the card appears at the bottom of the + * sidebar, partially covering the current top card of the stack. Clicking + * the header pops the card into the card stack. If the card has no header, + * a generated header is used instead. + * + * Generated from protobuf enum PEEK = 1; + */ + const PEEK = 1; + /** + * Default value. The card is shown by replacing the view of the top card in + * the card stack. + * + * Generated from protobuf enum REPLACE = 2; + */ + const REPLACE = 2; + + private static $valueToName = [ + self::DISPLAY_STYLE_UNSPECIFIED => 'DISPLAY_STYLE_UNSPECIFIED', + self::PEEK => 'PEEK', + self::REPLACE => 'REPLACE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php new file mode 100644 index 000000000000..5406eadfb194 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php @@ -0,0 +1,65 @@ +google.apps.card.v1.Card.DividerStyle + */ +class DividerStyle +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum DIVIDER_STYLE_UNSPECIFIED = 0; + */ + const DIVIDER_STYLE_UNSPECIFIED = 0; + /** + * Default option. Render a solid divider. + * + * Generated from protobuf enum SOLID_DIVIDER = 1; + */ + const SOLID_DIVIDER = 1; + /** + * If set, no divider is rendered. This style completely removes the divider + * from the layout. The result is equivalent to not adding a divider at all. + * + * Generated from protobuf enum NO_DIVIDER = 2; + */ + const NO_DIVIDER = 2; + + private static $valueToName = [ + self::DIVIDER_STYLE_UNSPECIFIED => 'DIVIDER_STYLE_UNSPECIFIED', + self::SOLID_DIVIDER => 'SOLID_DIVIDER', + self::NO_DIVIDER => 'NO_DIVIDER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php new file mode 100644 index 000000000000..bd90bcb35eda --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php @@ -0,0 +1,143 @@ +google.apps.card.v1.Card.NestedWidget + */ +class NestedWidget extends \Google\Protobuf\Internal\Message +{ + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph + * A text paragraph widget. + * @type \Google\Apps\Card\V1\ButtonList $button_list + * A button list widget. + * @type \Google\Apps\Card\V1\Image $image + * An image widget. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * A text paragraph widget. + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; + * @return \Google\Apps\Card\V1\TextParagraph|null + */ + public function getTextParagraph() + { + return $this->readOneof(1); + } + + public function hasTextParagraph() + { + return $this->hasOneof(1); + } + + /** + * A text paragraph widget. + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; + * @param \Google\Apps\Card\V1\TextParagraph $var + * @return $this + */ + public function setTextParagraph($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A button list widget. + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 3; + * @return \Google\Apps\Card\V1\ButtonList|null + */ + public function getButtonList() + { + return $this->readOneof(3); + } + + public function hasButtonList() + { + return $this->hasOneof(3); + } + + /** + * A button list widget. + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 3; + * @param \Google\Apps\Card\V1\ButtonList $var + * @return $this + */ + public function setButtonList($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * An image widget. + * + * Generated from protobuf field .google.apps.card.v1.Image image = 10; + * @return \Google\Apps\Card\V1\Image|null + */ + public function getImage() + { + return $this->readOneof(10); + } + + public function hasImage() + { + return $this->hasOneof(10); + } + + /** + * An image widget. + * + * Generated from protobuf field .google.apps.card.v1.Image image = 10; + * @param \Google\Apps\Card\V1\Image $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php new file mode 100644 index 000000000000..6da3959b363b --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php @@ -0,0 +1,304 @@ +google.apps.card.v1.Card.Section + */ +class Section extends \Google\Protobuf\Internal\Message +{ + /** + * Text that appears at the top of a section. + * Supports simple HTML formatted text. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string header = 1; + */ + protected $header = ''; + /** + * All the widgets in the section. + * Must contain at least one widget. + * + * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; + */ + private $widgets; + /** + * Indicates whether this section is collapsible. + * Collapsible sections hide some or all widgets, but users can expand the + * section to reveal the hidden widgets by clicking **Show more**. Users + * can hide the widgets again by clicking **Show less**. + * To determine which widgets are hidden, specify + * `uncollapsibleWidgetsCount`. + * + * Generated from protobuf field bool collapsible = 5; + */ + protected $collapsible = false; + /** + * The number of uncollapsible widgets which remain visible even when a + * section is collapsed. + * For example, when a section + * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, + * the first two widgets are always shown and the last three are collapsed + * by default. The `uncollapsibleWidgetsCount` is taken into account only + * when `collapsible` is `true`. + * + * Generated from protobuf field int32 uncollapsible_widgets_count = 6; + */ + protected $uncollapsible_widgets_count = 0; + /** + * Optional. Define the expand and collapse button of the section. + * This button will be shown only if the section is collapsible. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.CollapseControl collapse_control = 8; + */ + protected $collapse_control = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $header + * Text that appears at the top of a section. + * Supports simple HTML formatted text. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * @type \Google\Apps\Card\V1\Widget[] $widgets + * All the widgets in the section. + * Must contain at least one widget. + * @type bool $collapsible + * Indicates whether this section is collapsible. + * Collapsible sections hide some or all widgets, but users can expand the + * section to reveal the hidden widgets by clicking **Show more**. Users + * can hide the widgets again by clicking **Show less**. + * To determine which widgets are hidden, specify + * `uncollapsibleWidgetsCount`. + * @type int $uncollapsible_widgets_count + * The number of uncollapsible widgets which remain visible even when a + * section is collapsed. + * For example, when a section + * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, + * the first two widgets are always shown and the last three are collapsed + * by default. The `uncollapsibleWidgetsCount` is taken into account only + * when `collapsible` is `true`. + * @type \Google\Apps\Card\V1\CollapseControl $collapse_control + * Optional. Define the expand and collapse button of the section. + * This button will be shown only if the section is collapsible. + * If this field isn't set, the default button is used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Text that appears at the top of a section. + * Supports simple HTML formatted text. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string header = 1; + * @return string + */ + public function getHeader() + { + return $this->header; + } + + /** + * Text that appears at the top of a section. + * Supports simple HTML formatted text. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string header = 1; + * @param string $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkString($var, True); + $this->header = $var; + + return $this; + } + + /** + * All the widgets in the section. + * Must contain at least one widget. + * + * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; + * @return RepeatedField<\Google\Apps\Card\V1\Widget> + */ + public function getWidgets() + { + return $this->widgets; + } + + /** + * All the widgets in the section. + * Must contain at least one widget. + * + * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; + * @param \Google\Apps\Card\V1\Widget[] $var + * @return $this + */ + public function setWidgets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Widget::class); + $this->widgets = $arr; + + return $this; + } + + /** + * Indicates whether this section is collapsible. + * Collapsible sections hide some or all widgets, but users can expand the + * section to reveal the hidden widgets by clicking **Show more**. Users + * can hide the widgets again by clicking **Show less**. + * To determine which widgets are hidden, specify + * `uncollapsibleWidgetsCount`. + * + * Generated from protobuf field bool collapsible = 5; + * @return bool + */ + public function getCollapsible() + { + return $this->collapsible; + } + + /** + * Indicates whether this section is collapsible. + * Collapsible sections hide some or all widgets, but users can expand the + * section to reveal the hidden widgets by clicking **Show more**. Users + * can hide the widgets again by clicking **Show less**. + * To determine which widgets are hidden, specify + * `uncollapsibleWidgetsCount`. + * + * Generated from protobuf field bool collapsible = 5; + * @param bool $var + * @return $this + */ + public function setCollapsible($var) + { + GPBUtil::checkBool($var); + $this->collapsible = $var; + + return $this; + } + + /** + * The number of uncollapsible widgets which remain visible even when a + * section is collapsed. + * For example, when a section + * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, + * the first two widgets are always shown and the last three are collapsed + * by default. The `uncollapsibleWidgetsCount` is taken into account only + * when `collapsible` is `true`. + * + * Generated from protobuf field int32 uncollapsible_widgets_count = 6; + * @return int + */ + public function getUncollapsibleWidgetsCount() + { + return $this->uncollapsible_widgets_count; + } + + /** + * The number of uncollapsible widgets which remain visible even when a + * section is collapsed. + * For example, when a section + * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, + * the first two widgets are always shown and the last three are collapsed + * by default. The `uncollapsibleWidgetsCount` is taken into account only + * when `collapsible` is `true`. + * + * Generated from protobuf field int32 uncollapsible_widgets_count = 6; + * @param int $var + * @return $this + */ + public function setUncollapsibleWidgetsCount($var) + { + GPBUtil::checkInt32($var); + $this->uncollapsible_widgets_count = $var; + + return $this; + } + + /** + * Optional. Define the expand and collapse button of the section. + * This button will be shown only if the section is collapsible. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.CollapseControl collapse_control = 8; + * @return \Google\Apps\Card\V1\CollapseControl|null + */ + public function getCollapseControl() + { + return $this->collapse_control; + } + + public function hasCollapseControl() + { + return isset($this->collapse_control); + } + + public function clearCollapseControl() + { + unset($this->collapse_control); + } + + /** + * Optional. Define the expand and collapse button of the section. + * This button will be shown only if the section is collapsible. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.CollapseControl collapse_control = 8; + * @param \Google\Apps\Card\V1\CollapseControl $var + * @return $this + */ + public function setCollapseControl($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\CollapseControl::class); + $this->collapse_control = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php new file mode 100644 index 000000000000..370429291404 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php @@ -0,0 +1,104 @@ +google.apps.card.v1.Carousel + */ +class Carousel extends \Google\Protobuf\Internal\Message +{ + /** + * A list of cards included in the carousel. + * + * Generated from protobuf field repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4; + */ + private $carousel_cards; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Carousel\CarouselCard[] $carousel_cards + * A list of cards included in the carousel. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * A list of cards included in the carousel. + * + * Generated from protobuf field repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4; + * @return RepeatedField<\Google\Apps\Card\V1\Carousel\CarouselCard> + */ + public function getCarouselCards() + { + return $this->carousel_cards; + } + + /** + * A list of cards included in the carousel. + * + * Generated from protobuf field repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4; + * @param \Google\Apps\Card\V1\Carousel\CarouselCard[] $var + * @return $this + */ + public function setCarouselCards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Carousel\CarouselCard::class); + $this->carousel_cards = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php new file mode 100644 index 000000000000..f7807ea8291d --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php @@ -0,0 +1,110 @@ +google.apps.card.v1.Carousel.CarouselCard + */ +class CarouselCard extends \Google\Protobuf\Internal\Message +{ + /** + * A list of widgets displayed in the carousel card. The widgets are + * displayed in the order that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget widgets = 1; + */ + private $widgets; + /** + * A list of widgets displayed at the bottom of the carousel card. The + * widgets are displayed in the order that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2; + */ + private $footer_widgets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Card\NestedWidget[] $widgets + * A list of widgets displayed in the carousel card. The widgets are + * displayed in the order that they are specified. + * @type \Google\Apps\Card\V1\Card\NestedWidget[] $footer_widgets + * A list of widgets displayed at the bottom of the carousel card. The + * widgets are displayed in the order that they are specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * A list of widgets displayed in the carousel card. The widgets are + * displayed in the order that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget widgets = 1; + * @return RepeatedField<\Google\Apps\Card\V1\Card\NestedWidget> + */ + public function getWidgets() + { + return $this->widgets; + } + + /** + * A list of widgets displayed in the carousel card. The widgets are + * displayed in the order that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget widgets = 1; + * @param \Google\Apps\Card\V1\Card\NestedWidget[] $var + * @return $this + */ + public function setWidgets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\NestedWidget::class); + $this->widgets = $arr; + + return $this; + } + + /** + * A list of widgets displayed at the bottom of the carousel card. The + * widgets are displayed in the order that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2; + * @return RepeatedField<\Google\Apps\Card\V1\Card\NestedWidget> + */ + public function getFooterWidgets() + { + return $this->footer_widgets; + } + + /** + * A list of widgets displayed at the bottom of the carousel card. The + * widgets are displayed in the order that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2; + * @param \Google\Apps\Card\V1\Card\NestedWidget[] $var + * @return $this + */ + public function setFooterWidgets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\NestedWidget::class); + $this->footer_widgets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php new file mode 100644 index 000000000000..9a79307e8b5b --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php @@ -0,0 +1,302 @@ +google.apps.card.v1.Chip + */ +class Chip extends \Google\Protobuf\Internal\Message +{ + /** + * The icon image. If both `icon` and `text` are set, then the icon appears + * before the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 1; + */ + protected $icon = null; + /** + * The text displayed inside the chip. + * + * Generated from protobuf field string label = 2; + */ + protected $label = ''; + /** + * Optional. The action to perform when a user clicks the chip, such as + * opening a hyperlink or running a custom function. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; + */ + protected $on_click = null; + /** + * Whether the chip is in an active state and responds to user actions. + * Defaults to `true`. + * Deprecated. Use `disabled` instead. + * + * Generated from protobuf field bool enabled = 4 [deprecated = true]; + * @deprecated + */ + protected $enabled = false; + /** + * Whether the chip is in an inactive state and ignores user actions. + * Defaults to `false`. + * + * Generated from protobuf field bool disabled = 6; + */ + protected $disabled = false; + /** + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the chip does. For + * example, if a chip opens a hyperlink, write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * + * Generated from protobuf field string alt_text = 5; + */ + protected $alt_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Icon $icon + * The icon image. If both `icon` and `text` are set, then the icon appears + * before the text. + * @type string $label + * The text displayed inside the chip. + * @type \Google\Apps\Card\V1\OnClick $on_click + * Optional. The action to perform when a user clicks the chip, such as + * opening a hyperlink or running a custom function. + * @type bool $enabled + * Whether the chip is in an active state and responds to user actions. + * Defaults to `true`. + * Deprecated. Use `disabled` instead. + * @type bool $disabled + * Whether the chip is in an inactive state and ignores user actions. + * Defaults to `false`. + * @type string $alt_text + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the chip does. For + * example, if a chip opens a hyperlink, write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The icon image. If both `icon` and `text` are set, then the icon appears + * before the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 1; + * @return \Google\Apps\Card\V1\Icon|null + */ + public function getIcon() + { + return $this->icon; + } + + public function hasIcon() + { + return isset($this->icon); + } + + public function clearIcon() + { + unset($this->icon); + } + + /** + * The icon image. If both `icon` and `text` are set, then the icon appears + * before the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 1; + * @param \Google\Apps\Card\V1\Icon $var + * @return $this + */ + public function setIcon($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); + $this->icon = $var; + + return $this; + } + + /** + * The text displayed inside the chip. + * + * Generated from protobuf field string label = 2; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * The text displayed inside the chip. + * + * Generated from protobuf field string label = 2; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Optional. The action to perform when a user clicks the chip, such as + * opening a hyperlink or running a custom function. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; + * @return \Google\Apps\Card\V1\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * Optional. The action to perform when a user clicks the chip, such as + * opening a hyperlink or running a custom function. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; + * @param \Google\Apps\Card\V1\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * Whether the chip is in an active state and responds to user actions. + * Defaults to `true`. + * Deprecated. Use `disabled` instead. + * + * Generated from protobuf field bool enabled = 4 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getEnabled() + { + if ($this->enabled !== false) { + @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); + } + return $this->enabled; + } + + /** + * Whether the chip is in an active state and responds to user actions. + * Defaults to `true`. + * Deprecated. Use `disabled` instead. + * + * Generated from protobuf field bool enabled = 4 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setEnabled($var) + { + @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Whether the chip is in an inactive state and ignores user actions. + * Defaults to `false`. + * + * Generated from protobuf field bool disabled = 6; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether the chip is in an inactive state and ignores user actions. + * Defaults to `false`. + * + * Generated from protobuf field bool disabled = 6; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the chip does. For + * example, if a chip opens a hyperlink, write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * + * Generated from protobuf field string alt_text = 5; + * @return string + */ + public function getAltText() + { + return $this->alt_text; + } + + /** + * The alternative text that's used for accessibility. + * Set descriptive text that lets users know what the chip does. For + * example, if a chip opens a hyperlink, write: "Opens a new + * browser tab and navigates to the Google Chat developer documentation at + * https://developers.google.com/workspace/chat". + * + * Generated from protobuf field string alt_text = 5; + * @param string $var + * @return $this + */ + public function setAltText($var) + { + GPBUtil::checkString($var, True); + $this->alt_text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php new file mode 100644 index 000000000000..776b2a1678e0 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php @@ -0,0 +1,104 @@ +google.apps.card.v1.ChipList + */ +class ChipList extends \Google\Protobuf\Internal\Message +{ + /** + * Specified chip list layout. + * + * Generated from protobuf field .google.apps.card.v1.ChipList.Layout layout = 1; + */ + protected $layout = 0; + /** + * An array of chips. + * + * Generated from protobuf field repeated .google.apps.card.v1.Chip chips = 2; + */ + private $chips; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $layout + * Specified chip list layout. + * @type \Google\Apps\Card\V1\Chip[] $chips + * An array of chips. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Specified chip list layout. + * + * Generated from protobuf field .google.apps.card.v1.ChipList.Layout layout = 1; + * @return int + */ + public function getLayout() + { + return $this->layout; + } + + /** + * Specified chip list layout. + * + * Generated from protobuf field .google.apps.card.v1.ChipList.Layout layout = 1; + * @param int $var + * @return $this + */ + public function setLayout($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\ChipList\Layout::class); + $this->layout = $var; + + return $this; + } + + /** + * An array of chips. + * + * Generated from protobuf field repeated .google.apps.card.v1.Chip chips = 2; + * @return RepeatedField<\Google\Apps\Card\V1\Chip> + */ + public function getChips() + { + return $this->chips; + } + + /** + * An array of chips. + * + * Generated from protobuf field repeated .google.apps.card.v1.Chip chips = 2; + * @param \Google\Apps\Card\V1\Chip[] $var + * @return $this + */ + public function setChips($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Chip::class); + $this->chips = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php new file mode 100644 index 000000000000..a00bb29a8eeb --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php @@ -0,0 +1,62 @@ +google.apps.card.v1.ChipList.Layout + */ +class Layout +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum LAYOUT_UNSPECIFIED = 0; + */ + const LAYOUT_UNSPECIFIED = 0; + /** + * Default value. The chip list wraps to the next line if there isn't enough + * horizontal space. + * + * Generated from protobuf enum WRAPPED = 1; + */ + const WRAPPED = 1; + /** + * The chips scroll horizontally if they don't fit in the available space. + * + * Generated from protobuf enum HORIZONTAL_SCROLLABLE = 2; + */ + const HORIZONTAL_SCROLLABLE = 2; + + private static $valueToName = [ + self::LAYOUT_UNSPECIFIED => 'LAYOUT_UNSPECIFIED', + self::WRAPPED => 'WRAPPED', + self::HORIZONTAL_SCROLLABLE => 'HORIZONTAL_SCROLLABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php new file mode 100644 index 000000000000..6ba9a42cd1b7 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php @@ -0,0 +1,181 @@ +google.apps.card.v1.CollapseControl + */ +class CollapseControl extends \Google\Protobuf\Internal\Message +{ + /** + * The horizontal alignment of the expand and collapse button. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1; + */ + protected $horizontal_alignment = 0; + /** + * Optional. Define a customizable button to expand the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.Button expand_button = 2; + */ + protected $expand_button = null; + /** + * Optional. Define a customizable button to collapse the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.Button collapse_button = 3; + */ + protected $collapse_button = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $horizontal_alignment + * The horizontal alignment of the expand and collapse button. + * @type \Google\Apps\Card\V1\Button $expand_button + * Optional. Define a customizable button to expand the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * @type \Google\Apps\Card\V1\Button $collapse_button + * Optional. Define a customizable button to collapse the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The horizontal alignment of the expand and collapse button. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1; + * @return int + */ + public function getHorizontalAlignment() + { + return $this->horizontal_alignment; + } + + /** + * The horizontal alignment of the expand and collapse button. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1; + * @param int $var + * @return $this + */ + public function setHorizontalAlignment($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); + $this->horizontal_alignment = $var; + + return $this; + } + + /** + * Optional. Define a customizable button to expand the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.Button expand_button = 2; + * @return \Google\Apps\Card\V1\Button|null + */ + public function getExpandButton() + { + return $this->expand_button; + } + + public function hasExpandButton() + { + return isset($this->expand_button); + } + + public function clearExpandButton() + { + unset($this->expand_button); + } + + /** + * Optional. Define a customizable button to expand the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.Button expand_button = 2; + * @param \Google\Apps\Card\V1\Button $var + * @return $this + */ + public function setExpandButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); + $this->expand_button = $var; + + return $this; + } + + /** + * Optional. Define a customizable button to collapse the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.Button collapse_button = 3; + * @return \Google\Apps\Card\V1\Button|null + */ + public function getCollapseButton() + { + return $this->collapse_button; + } + + public function hasCollapseButton() + { + return isset($this->collapse_button); + } + + public function clearCollapseButton() + { + unset($this->collapse_button); + } + + /** + * Optional. Define a customizable button to collapse the section. + * Both expand_button and collapse_button field must be set. Only one + * field set will not take into effect. + * If this field isn't set, the default button is used. + * + * Generated from protobuf field .google.apps.card.v1.Button collapse_button = 3; + * @param \Google\Apps\Card\V1\Button $var + * @return $this + */ + public function setCollapseButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); + $this->collapse_button = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php new file mode 100644 index 000000000000..3f51a47ab0fe --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php @@ -0,0 +1,93 @@ +google.apps.card.v1.Columns + */ +class Columns extends \Google\Protobuf\Internal\Message +{ + /** + * An array of columns. You can include up to 2 columns in a card or dialog. + * + * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; + */ + private $column_items; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Columns\Column[] $column_items + * An array of columns. You can include up to 2 columns in a card or dialog. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * An array of columns. You can include up to 2 columns in a card or dialog. + * + * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; + * @return RepeatedField<\Google\Apps\Card\V1\Columns\Column> + */ + public function getColumnItems() + { + return $this->column_items; + } + + /** + * An array of columns. You can include up to 2 columns in a card or dialog. + * + * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; + * @param \Google\Apps\Card\V1\Columns\Column[] $var + * @return $this + */ + public function setColumnItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Columns\Column::class); + $this->column_items = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php new file mode 100644 index 000000000000..857e18876161 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php @@ -0,0 +1,183 @@ +google.apps.card.v1.Columns.Column + */ +class Column extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies how a column fills the width of the card. + * + * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; + */ + protected $horizontal_size_style = 0; + /** + * Specifies whether widgets align to the left, right, or center of a + * column. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; + */ + protected $horizontal_alignment = 0; + /** + * Specifies whether widgets align to the top, bottom, or center of a + * column. + * + * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; + */ + protected $vertical_alignment = 0; + /** + * An array of widgets included in a column. Widgets appear in the order + * that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; + */ + private $widgets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $horizontal_size_style + * Specifies how a column fills the width of the card. + * @type int $horizontal_alignment + * Specifies whether widgets align to the left, right, or center of a + * column. + * @type int $vertical_alignment + * Specifies whether widgets align to the top, bottom, or center of a + * column. + * @type \Google\Apps\Card\V1\Columns\Column\Widgets[] $widgets + * An array of widgets included in a column. Widgets appear in the order + * that they are specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Specifies how a column fills the width of the card. + * + * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; + * @return int + */ + public function getHorizontalSizeStyle() + { + return $this->horizontal_size_style; + } + + /** + * Specifies how a column fills the width of the card. + * + * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; + * @param int $var + * @return $this + */ + public function setHorizontalSizeStyle($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Columns\Column\HorizontalSizeStyle::class); + $this->horizontal_size_style = $var; + + return $this; + } + + /** + * Specifies whether widgets align to the left, right, or center of a + * column. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; + * @return int + */ + public function getHorizontalAlignment() + { + return $this->horizontal_alignment; + } + + /** + * Specifies whether widgets align to the left, right, or center of a + * column. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; + * @param int $var + * @return $this + */ + public function setHorizontalAlignment($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); + $this->horizontal_alignment = $var; + + return $this; + } + + /** + * Specifies whether widgets align to the top, bottom, or center of a + * column. + * + * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; + * @return int + */ + public function getVerticalAlignment() + { + return $this->vertical_alignment; + } + + /** + * Specifies whether widgets align to the top, bottom, or center of a + * column. + * + * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; + * @param int $var + * @return $this + */ + public function setVerticalAlignment($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Columns\Column\VerticalAlignment::class); + $this->vertical_alignment = $var; + + return $this; + } + + /** + * An array of widgets included in a column. Widgets appear in the order + * that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; + * @return RepeatedField<\Google\Apps\Card\V1\Columns\Column\Widgets> + */ + public function getWidgets() + { + return $this->widgets; + } + + /** + * An array of widgets included in a column. Widgets appear in the order + * that they are specified. + * + * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; + * @param \Google\Apps\Card\V1\Columns\Column\Widgets[] $var + * @return $this + */ + public function setWidgets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Columns\Column\Widgets::class); + $this->widgets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php new file mode 100644 index 000000000000..13134df4d8cc --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php @@ -0,0 +1,68 @@ +google.apps.card.v1.Columns.Column.HorizontalSizeStyle + */ +class HorizontalSizeStyle +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0; + */ + const HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0; + /** + * Default value. Column fills the available space, up to 70% of the + * card's width. If both columns are set to `FILL_AVAILABLE_SPACE`, each + * column fills 50% of the space. + * + * Generated from protobuf enum FILL_AVAILABLE_SPACE = 1; + */ + const FILL_AVAILABLE_SPACE = 1; + /** + * Column fills the least amount of space possible and no more than 30% of + * the card's width. + * + * Generated from protobuf enum FILL_MINIMUM_SPACE = 2; + */ + const FILL_MINIMUM_SPACE = 2; + + private static $valueToName = [ + self::HORIZONTAL_SIZE_STYLE_UNSPECIFIED => 'HORIZONTAL_SIZE_STYLE_UNSPECIFIED', + self::FILL_AVAILABLE_SPACE => 'FILL_AVAILABLE_SPACE', + self::FILL_MINIMUM_SPACE => 'FILL_MINIMUM_SPACE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php new file mode 100644 index 000000000000..622609759b52 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php @@ -0,0 +1,71 @@ +google.apps.card.v1.Columns.Column.VerticalAlignment + */ +class VerticalAlignment +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum VERTICAL_ALIGNMENT_UNSPECIFIED = 0; + */ + const VERTICAL_ALIGNMENT_UNSPECIFIED = 0; + /** + * Default value. Aligns widgets to the center of a column. + * + * Generated from protobuf enum CENTER = 1; + */ + const CENTER = 1; + /** + * Aligns widgets to the top of a column. + * + * Generated from protobuf enum TOP = 2; + */ + const TOP = 2; + /** + * Aligns widgets to the bottom of a column. + * + * Generated from protobuf enum BOTTOM = 3; + */ + const BOTTOM = 3; + + private static $valueToName = [ + self::VERTICAL_ALIGNMENT_UNSPECIFIED => 'VERTICAL_ALIGNMENT_UNSPECIFIED', + self::CENTER => 'CENTER', + self::TOP => 'TOP', + self::BOTTOM => 'BOTTOM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php new file mode 100644 index 000000000000..9b4c6f312538 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php @@ -0,0 +1,308 @@ +google.apps.card.v1.Columns.Column.Widgets + */ +class Widgets extends \Google\Protobuf\Internal\Message +{ + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph + * [TextParagraph][google.apps.card.v1.TextParagraph] widget. + * @type \Google\Apps\Card\V1\Image $image + * [Image][google.apps.card.v1.Image] widget. + * @type \Google\Apps\Card\V1\DecoratedText $decorated_text + * [DecoratedText][google.apps.card.v1.DecoratedText] widget. + * @type \Google\Apps\Card\V1\ButtonList $button_list + * [ButtonList][google.apps.card.v1.ButtonList] widget. + * @type \Google\Apps\Card\V1\TextInput $text_input + * [TextInput][google.apps.card.v1.TextInput] widget. + * @type \Google\Apps\Card\V1\SelectionInput $selection_input + * [SelectionInput][google.apps.card.v1.SelectionInput] widget. + * @type \Google\Apps\Card\V1\DateTimePicker $date_time_picker + * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. + * @type \Google\Apps\Card\V1\ChipList $chip_list + * [ChipList][google.apps.card.v1.ChipList] widget. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * [TextParagraph][google.apps.card.v1.TextParagraph] widget. + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; + * @return \Google\Apps\Card\V1\TextParagraph|null + */ + public function getTextParagraph() + { + return $this->readOneof(1); + } + + public function hasTextParagraph() + { + return $this->hasOneof(1); + } + + /** + * [TextParagraph][google.apps.card.v1.TextParagraph] widget. + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; + * @param \Google\Apps\Card\V1\TextParagraph $var + * @return $this + */ + public function setTextParagraph($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * [Image][google.apps.card.v1.Image] widget. + * + * Generated from protobuf field .google.apps.card.v1.Image image = 2; + * @return \Google\Apps\Card\V1\Image|null + */ + public function getImage() + { + return $this->readOneof(2); + } + + public function hasImage() + { + return $this->hasOneof(2); + } + + /** + * [Image][google.apps.card.v1.Image] widget. + * + * Generated from protobuf field .google.apps.card.v1.Image image = 2; + * @param \Google\Apps\Card\V1\Image $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * [DecoratedText][google.apps.card.v1.DecoratedText] widget. + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; + * @return \Google\Apps\Card\V1\DecoratedText|null + */ + public function getDecoratedText() + { + return $this->readOneof(3); + } + + public function hasDecoratedText() + { + return $this->hasOneof(3); + } + + /** + * [DecoratedText][google.apps.card.v1.DecoratedText] widget. + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; + * @param \Google\Apps\Card\V1\DecoratedText $var + * @return $this + */ + public function setDecoratedText($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * [ButtonList][google.apps.card.v1.ButtonList] widget. + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; + * @return \Google\Apps\Card\V1\ButtonList|null + */ + public function getButtonList() + { + return $this->readOneof(4); + } + + public function hasButtonList() + { + return $this->hasOneof(4); + } + + /** + * [ButtonList][google.apps.card.v1.ButtonList] widget. + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; + * @param \Google\Apps\Card\V1\ButtonList $var + * @return $this + */ + public function setButtonList($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * [TextInput][google.apps.card.v1.TextInput] widget. + * + * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; + * @return \Google\Apps\Card\V1\TextInput|null + */ + public function getTextInput() + { + return $this->readOneof(5); + } + + public function hasTextInput() + { + return $this->hasOneof(5); + } + + /** + * [TextInput][google.apps.card.v1.TextInput] widget. + * + * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; + * @param \Google\Apps\Card\V1\TextInput $var + * @return $this + */ + public function setTextInput($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextInput::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * [SelectionInput][google.apps.card.v1.SelectionInput] widget. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; + * @return \Google\Apps\Card\V1\SelectionInput|null + */ + public function getSelectionInput() + { + return $this->readOneof(6); + } + + public function hasSelectionInput() + { + return $this->hasOneof(6); + } + + /** + * [SelectionInput][google.apps.card.v1.SelectionInput] widget. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; + * @param \Google\Apps\Card\V1\SelectionInput $var + * @return $this + */ + public function setSelectionInput($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. + * + * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; + * @return \Google\Apps\Card\V1\DateTimePicker|null + */ + public function getDateTimePicker() + { + return $this->readOneof(7); + } + + public function hasDateTimePicker() + { + return $this->hasOneof(7); + } + + /** + * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. + * + * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; + * @param \Google\Apps\Card\V1\DateTimePicker $var + * @return $this + */ + public function setDateTimePicker($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DateTimePicker::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * [ChipList][google.apps.card.v1.ChipList] widget. + * + * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 8; + * @return \Google\Apps\Card\V1\ChipList|null + */ + public function getChipList() + { + return $this->readOneof(8); + } + + public function hasChipList() + { + return $this->hasOneof(8); + } + + /** + * [ChipList][google.apps.card.v1.ChipList] widget. + * + * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 8; + * @param \Google\Apps\Card\V1\ChipList $var + * @return $this + */ + public function setChipList($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ChipList::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php new file mode 100644 index 000000000000..d435c5d2f694 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php @@ -0,0 +1,327 @@ +google.apps.card.v1.DateTimePicker + */ +class DateTimePicker extends \Google\Protobuf\Internal\Message +{ + /** + * The name by which the `DateTimePicker` is identified 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). + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The text that prompts users to input a date, a time, or a date and time. + * For example, if users are scheduling an appointment, use a label such as + * `Appointment date` or `Appointment date and time`. + * + * Generated from protobuf field string label = 2; + */ + protected $label = ''; + /** + * Whether the widget supports inputting a date, a time, or the date and time. + * + * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; + */ + protected $type = 0; + /** + * Optional. The default value displayed in the widget, in milliseconds since + * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). + * Specify the value based on the type of picker (`DateTimePickerType`): + * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to + * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. + * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent + * January 1, 2023, use `1672531200000`. + * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use + * `43200000` (or `12 * 60 * 60 * 1000`). + * + * Generated from protobuf field optional int64 value_ms_epoch = 4; + */ + protected $value_ms_epoch = null; + /** + * The number representing the time zone offset from UTC, in minutes. + * If set, the `value_ms_epoch` is displayed in the specified time zone. + * If unset, the value defaults to the user's time zone setting. + * + * Generated from protobuf field int32 timezone_offset_date = 5; + */ + protected $timezone_offset_date = 0; + /** + * Triggered when the user clicks **Save** or **Clear** from the + * `DateTimePicker` interface. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; + */ + protected $on_change_action = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name by which the `DateTimePicker` is identified 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). + * @type string $label + * The text that prompts users to input a date, a time, or a date and time. + * For example, if users are scheduling an appointment, use a label such as + * `Appointment date` or `Appointment date and time`. + * @type int $type + * Whether the widget supports inputting a date, a time, or the date and time. + * @type int|string $value_ms_epoch + * Optional. The default value displayed in the widget, in milliseconds since + * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). + * Specify the value based on the type of picker (`DateTimePickerType`): + * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to + * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. + * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent + * January 1, 2023, use `1672531200000`. + * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use + * `43200000` (or `12 * 60 * 60 * 1000`). + * @type int $timezone_offset_date + * The number representing the time zone offset from UTC, in minutes. + * If set, the `value_ms_epoch` is displayed in the specified time zone. + * If unset, the value defaults to the user's time zone setting. + * @type \Google\Apps\Card\V1\Action $on_change_action + * Triggered when the user clicks **Save** or **Clear** from the + * `DateTimePicker` interface. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The name by which the `DateTimePicker` is identified 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). + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name by which the `DateTimePicker` is identified 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). + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The text that prompts users to input a date, a time, or a date and time. + * For example, if users are scheduling an appointment, use a label such as + * `Appointment date` or `Appointment date and time`. + * + * Generated from protobuf field string label = 2; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * The text that prompts users to input a date, a time, or a date and time. + * For example, if users are scheduling an appointment, use a label such as + * `Appointment date` or `Appointment date and time`. + * + * Generated from protobuf field string label = 2; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Whether the widget supports inputting a date, a time, or the date and time. + * + * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Whether the widget supports inputting a date, a time, or the date and time. + * + * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\DateTimePicker\DateTimePickerType::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. The default value displayed in the widget, in milliseconds since + * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). + * Specify the value based on the type of picker (`DateTimePickerType`): + * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to + * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. + * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent + * January 1, 2023, use `1672531200000`. + * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use + * `43200000` (or `12 * 60 * 60 * 1000`). + * + * Generated from protobuf field optional int64 value_ms_epoch = 4; + * @return int|string + */ + public function getValueMsEpoch() + { + return isset($this->value_ms_epoch) ? $this->value_ms_epoch : 0; + } + + public function hasValueMsEpoch() + { + return isset($this->value_ms_epoch); + } + + public function clearValueMsEpoch() + { + unset($this->value_ms_epoch); + } + + /** + * Optional. The default value displayed in the widget, in milliseconds since + * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). + * Specify the value based on the type of picker (`DateTimePickerType`): + * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to + * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. + * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent + * January 1, 2023, use `1672531200000`. + * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use + * `43200000` (or `12 * 60 * 60 * 1000`). + * + * Generated from protobuf field optional int64 value_ms_epoch = 4; + * @param int|string $var + * @return $this + */ + public function setValueMsEpoch($var) + { + GPBUtil::checkInt64($var); + $this->value_ms_epoch = $var; + + return $this; + } + + /** + * The number representing the time zone offset from UTC, in minutes. + * If set, the `value_ms_epoch` is displayed in the specified time zone. + * If unset, the value defaults to the user's time zone setting. + * + * Generated from protobuf field int32 timezone_offset_date = 5; + * @return int + */ + public function getTimezoneOffsetDate() + { + return $this->timezone_offset_date; + } + + /** + * The number representing the time zone offset from UTC, in minutes. + * If set, the `value_ms_epoch` is displayed in the specified time zone. + * If unset, the value defaults to the user's time zone setting. + * + * Generated from protobuf field int32 timezone_offset_date = 5; + * @param int $var + * @return $this + */ + public function setTimezoneOffsetDate($var) + { + GPBUtil::checkInt32($var); + $this->timezone_offset_date = $var; + + return $this; + } + + /** + * Triggered when the user clicks **Save** or **Clear** from the + * `DateTimePicker` interface. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getOnChangeAction() + { + return $this->on_change_action; + } + + public function hasOnChangeAction() + { + return isset($this->on_change_action); + } + + public function clearOnChangeAction() + { + unset($this->on_change_action); + } + + /** + * Triggered when the user clicks **Save** or **Clear** from the + * `DateTimePicker` interface. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setOnChangeAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->on_change_action = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php new file mode 100644 index 000000000000..94453212d2d6 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php @@ -0,0 +1,64 @@ +google.apps.card.v1.DateTimePicker.DateTimePickerType + */ +class DateTimePickerType +{ + /** + * Users input a date and time. + * + * Generated from protobuf enum DATE_AND_TIME = 0; + */ + const DATE_AND_TIME = 0; + /** + * Users input a date. + * + * Generated from protobuf enum DATE_ONLY = 1; + */ + const DATE_ONLY = 1; + /** + * Users input a time. + * + * Generated from protobuf enum TIME_ONLY = 2; + */ + const TIME_ONLY = 2; + + private static $valueToName = [ + self::DATE_AND_TIME => 'DATE_AND_TIME', + self::DATE_ONLY => 'DATE_ONLY', + self::TIME_ONLY => 'TIME_ONLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php new file mode 100644 index 000000000000..a34cad35b875 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php @@ -0,0 +1,682 @@ +google.apps.card.v1.DecoratedText + */ +class DecoratedText extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated in favor of `startIcon`. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; + * @deprecated + */ + protected $icon = null; + /** + * The icon displayed in front of the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; + */ + protected $start_icon = null; + /** + * Optional. Vertical alignment of the start icon. If not set, the icon + * will be vertically centered. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13; + */ + protected $start_icon_vertical_alignment = 0; + /** + * The text that appears above `text`. Always truncates. + * + * Generated from protobuf field string top_label = 3; + */ + protected $top_label = ''; + /** + * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for + * more complex formatting than `top_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph top_label_text = 17; + */ + protected $top_label_text = null; + /** + * Required. The primary text. + * Supports simple formatting. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string text = 4; + */ + protected $text = ''; + /** + * `TextParagraph` equivalent of `text`. Allows for more complex formatting + * than `text`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph content_text = 18; + */ + protected $content_text = null; + /** + * The wrap text setting. If `true`, the text wraps and displays on + * multiple lines. Otherwise, the text is truncated. + * Only applies to `text`, not `topLabel` and `bottomLabel`. + * + * Generated from protobuf field bool wrap_text = 5; + */ + protected $wrap_text = false; + /** + * The text that appears below `text`. Always wraps. + * + * Generated from protobuf field string bottom_label = 6; + */ + protected $bottom_label = ''; + /** + * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for + * more complex formatting than `bottom_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph bottom_label_text = 19; + */ + protected $bottom_label_text = null; + /** + * This action is triggered when users click `topLabel` or `bottomLabel`. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; + */ + protected $on_click = null; + protected $control; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Icon $icon + * Deprecated in favor of `startIcon`. + * @type \Google\Apps\Card\V1\Icon $start_icon + * The icon displayed in front of the text. + * @type int $start_icon_vertical_alignment + * Optional. Vertical alignment of the start icon. If not set, the icon + * will be vertically centered. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * @type string $top_label + * The text that appears above `text`. Always truncates. + * @type \Google\Apps\Card\V1\TextParagraph $top_label_text + * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for + * more complex formatting than `top_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * @type string $text + * Required. The primary text. + * Supports simple formatting. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * @type \Google\Apps\Card\V1\TextParagraph $content_text + * `TextParagraph` equivalent of `text`. Allows for more complex formatting + * than `text`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * @type bool $wrap_text + * The wrap text setting. If `true`, the text wraps and displays on + * multiple lines. Otherwise, the text is truncated. + * Only applies to `text`, not `topLabel` and `bottomLabel`. + * @type string $bottom_label + * The text that appears below `text`. Always wraps. + * @type \Google\Apps\Card\V1\TextParagraph $bottom_label_text + * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for + * more complex formatting than `bottom_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * @type \Google\Apps\Card\V1\OnClick $on_click + * This action is triggered when users click `topLabel` or `bottomLabel`. + * @type \Google\Apps\Card\V1\Button $button + * A button that a user can click to trigger an action. + * @type \Google\Apps\Card\V1\DecoratedText\SwitchControl $switch_control + * A switch widget that a user can click to change its state and trigger an + * action. + * @type \Google\Apps\Card\V1\Icon $end_icon + * An icon displayed after the text. + * Supports + * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) + * and + * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) + * icons. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated in favor of `startIcon`. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; + * @return \Google\Apps\Card\V1\Icon|null + * @deprecated + */ + public function getIcon() + { + if (isset($this->icon)) { + @trigger_error('icon is deprecated.', E_USER_DEPRECATED); + } + return $this->icon; + } + + public function hasIcon() + { + if (isset($this->icon)) { + @trigger_error('icon is deprecated.', E_USER_DEPRECATED); + } + return isset($this->icon); + } + + public function clearIcon() + { + @trigger_error('icon is deprecated.', E_USER_DEPRECATED); + unset($this->icon); + } + + /** + * Deprecated in favor of `startIcon`. + * + * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; + * @param \Google\Apps\Card\V1\Icon $var + * @return $this + * @deprecated + */ + public function setIcon($var) + { + @trigger_error('icon is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); + $this->icon = $var; + + return $this; + } + + /** + * The icon displayed in front of the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; + * @return \Google\Apps\Card\V1\Icon|null + */ + public function getStartIcon() + { + return $this->start_icon; + } + + public function hasStartIcon() + { + return isset($this->start_icon); + } + + public function clearStartIcon() + { + unset($this->start_icon); + } + + /** + * The icon displayed in front of the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; + * @param \Google\Apps\Card\V1\Icon $var + * @return $this + */ + public function setStartIcon($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); + $this->start_icon = $var; + + return $this; + } + + /** + * Optional. Vertical alignment of the start icon. If not set, the icon + * will be vertically centered. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13; + * @return int + */ + public function getStartIconVerticalAlignment() + { + return $this->start_icon_vertical_alignment; + } + + /** + * Optional. Vertical alignment of the start icon. If not set, the icon + * will be vertically centered. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13; + * @param int $var + * @return $this + */ + public function setStartIconVerticalAlignment($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\VerticalAlignment::class); + $this->start_icon_vertical_alignment = $var; + + return $this; + } + + /** + * The text that appears above `text`. Always truncates. + * + * Generated from protobuf field string top_label = 3; + * @return string + */ + public function getTopLabel() + { + return $this->top_label; + } + + /** + * The text that appears above `text`. Always truncates. + * + * Generated from protobuf field string top_label = 3; + * @param string $var + * @return $this + */ + public function setTopLabel($var) + { + GPBUtil::checkString($var, True); + $this->top_label = $var; + + return $this; + } + + /** + * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for + * more complex formatting than `top_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph top_label_text = 17; + * @return \Google\Apps\Card\V1\TextParagraph|null + */ + public function getTopLabelText() + { + return $this->top_label_text; + } + + public function hasTopLabelText() + { + return isset($this->top_label_text); + } + + public function clearTopLabelText() + { + unset($this->top_label_text); + } + + /** + * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for + * more complex formatting than `top_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph top_label_text = 17; + * @param \Google\Apps\Card\V1\TextParagraph $var + * @return $this + */ + public function setTopLabelText($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); + $this->top_label_text = $var; + + return $this; + } + + /** + * Required. The primary text. + * Supports simple formatting. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string text = 4; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Required. The primary text. + * Supports simple formatting. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string text = 4; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * `TextParagraph` equivalent of `text`. Allows for more complex formatting + * than `text`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph content_text = 18; + * @return \Google\Apps\Card\V1\TextParagraph|null + */ + public function getContentText() + { + return $this->content_text; + } + + public function hasContentText() + { + return isset($this->content_text); + } + + public function clearContentText() + { + unset($this->content_text); + } + + /** + * `TextParagraph` equivalent of `text`. Allows for more complex formatting + * than `text`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph content_text = 18; + * @param \Google\Apps\Card\V1\TextParagraph $var + * @return $this + */ + public function setContentText($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); + $this->content_text = $var; + + return $this; + } + + /** + * The wrap text setting. If `true`, the text wraps and displays on + * multiple lines. Otherwise, the text is truncated. + * Only applies to `text`, not `topLabel` and `bottomLabel`. + * + * Generated from protobuf field bool wrap_text = 5; + * @return bool + */ + public function getWrapText() + { + return $this->wrap_text; + } + + /** + * The wrap text setting. If `true`, the text wraps and displays on + * multiple lines. Otherwise, the text is truncated. + * Only applies to `text`, not `topLabel` and `bottomLabel`. + * + * Generated from protobuf field bool wrap_text = 5; + * @param bool $var + * @return $this + */ + public function setWrapText($var) + { + GPBUtil::checkBool($var); + $this->wrap_text = $var; + + return $this; + } + + /** + * The text that appears below `text`. Always wraps. + * + * Generated from protobuf field string bottom_label = 6; + * @return string + */ + public function getBottomLabel() + { + return $this->bottom_label; + } + + /** + * The text that appears below `text`. Always wraps. + * + * Generated from protobuf field string bottom_label = 6; + * @param string $var + * @return $this + */ + public function setBottomLabel($var) + { + GPBUtil::checkString($var, True); + $this->bottom_label = $var; + + return $this; + } + + /** + * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for + * more complex formatting than `bottom_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph bottom_label_text = 19; + * @return \Google\Apps\Card\V1\TextParagraph|null + */ + public function getBottomLabelText() + { + return $this->bottom_label_text; + } + + public function hasBottomLabelText() + { + return isset($this->bottom_label_text); + } + + public function clearBottomLabelText() + { + unset($this->bottom_label_text); + } + + /** + * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for + * more complex formatting than `bottom_label`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph bottom_label_text = 19; + * @param \Google\Apps\Card\V1\TextParagraph $var + * @return $this + */ + public function setBottomLabelText($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); + $this->bottom_label_text = $var; + + return $this; + } + + /** + * This action is triggered when users click `topLabel` or `bottomLabel`. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; + * @return \Google\Apps\Card\V1\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * This action is triggered when users click `topLabel` or `bottomLabel`. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; + * @param \Google\Apps\Card\V1\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * A button that a user can click to trigger an action. + * + * Generated from protobuf field .google.apps.card.v1.Button button = 8; + * @return \Google\Apps\Card\V1\Button|null + */ + public function getButton() + { + return $this->readOneof(8); + } + + public function hasButton() + { + return $this->hasOneof(8); + } + + /** + * A button that a user can click to trigger an action. + * + * Generated from protobuf field .google.apps.card.v1.Button button = 8; + * @param \Google\Apps\Card\V1\Button $var + * @return $this + */ + public function setButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * A switch widget that a user can click to change its state and trigger an + * action. + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; + * @return \Google\Apps\Card\V1\DecoratedText\SwitchControl|null + */ + public function getSwitchControl() + { + return $this->readOneof(9); + } + + public function hasSwitchControl() + { + return $this->hasOneof(9); + } + + /** + * A switch widget that a user can click to change its state and trigger an + * action. + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; + * @param \Google\Apps\Card\V1\DecoratedText\SwitchControl $var + * @return $this + */ + public function setSwitchControl($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText\SwitchControl::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * An icon displayed after the text. + * Supports + * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) + * and + * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) + * icons. + * + * Generated from protobuf field .google.apps.card.v1.Icon end_icon = 11; + * @return \Google\Apps\Card\V1\Icon|null + */ + public function getEndIcon() + { + return $this->readOneof(11); + } + + public function hasEndIcon() + { + return $this->hasOneof(11); + } + + /** + * An icon displayed after the text. + * Supports + * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) + * and + * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) + * icons. + * + * Generated from protobuf field .google.apps.card.v1.Icon end_icon = 11; + * @param \Google\Apps\Card\V1\Icon $var + * @return $this + */ + public function setEndIcon($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * @return string + */ + public function getControl() + { + return $this->whichOneof("control"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php new file mode 100644 index 000000000000..76aa52b4de14 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php @@ -0,0 +1,244 @@ +google.apps.card.v1.DecoratedText.SwitchControl + */ +class SwitchControl extends \Google\Protobuf\Internal\Message +{ + /** + * The name by which the switch widget is identified 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). + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * 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). + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * When `true`, the switch is selected. + * + * Generated from protobuf field bool selected = 3; + */ + protected $selected = false; + /** + * The action to perform when the switch state is changed, such as what + * function to run. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; + */ + protected $on_change_action = null; + /** + * How the switch appears in the user interface. + * [Google Workspace add-ons + * and Chat apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; + */ + protected $control_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name by which the switch widget is identified 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). + * @type string $value + * 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). + * @type bool $selected + * When `true`, the switch is selected. + * @type \Google\Apps\Card\V1\Action $on_change_action + * The action to perform when the switch state is changed, such as what + * function to run. + * @type int $control_type + * How the switch appears in the user interface. + * [Google Workspace add-ons + * and Chat apps](https://developers.google.com/workspace/extend): + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The name by which the switch widget is identified 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). + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name by which the switch widget is identified 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). + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * 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). + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * When `true`, the switch is selected. + * + * Generated from protobuf field bool selected = 3; + * @return bool + */ + public function getSelected() + { + return $this->selected; + } + + /** + * When `true`, the switch is selected. + * + * Generated from protobuf field bool selected = 3; + * @param bool $var + * @return $this + */ + public function setSelected($var) + { + GPBUtil::checkBool($var); + $this->selected = $var; + + return $this; + } + + /** + * The action to perform when the switch state is changed, such as what + * function to run. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getOnChangeAction() + { + return $this->on_change_action; + } + + public function hasOnChangeAction() + { + return isset($this->on_change_action); + } + + public function clearOnChangeAction() + { + unset($this->on_change_action); + } + + /** + * The action to perform when the switch state is changed, such as what + * function to run. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setOnChangeAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->on_change_action = $var; + + return $this; + } + + /** + * How the switch appears in the user interface. + * [Google Workspace add-ons + * and Chat apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; + * @return int + */ + public function getControlType() + { + return $this->control_type; + } + + /** + * How the switch appears in the user interface. + * [Google Workspace add-ons + * and Chat apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; + * @param int $var + * @return $this + */ + public function setControlType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\DecoratedText\SwitchControl\ControlType::class); + $this->control_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php new file mode 100644 index 000000000000..bfcdb4eaa1b3 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php @@ -0,0 +1,67 @@ +google.apps.card.v1.DecoratedText.SwitchControl.ControlType + */ +class ControlType +{ + /** + * A toggle-style switch. + * + * Generated from protobuf enum SWITCH = 0; + */ + const PBSWITCH = 0; + /** + * Deprecated in favor of `CHECK_BOX`. + * + * Generated from protobuf enum CHECKBOX = 1; + */ + const CHECKBOX = 1; + /** + * A checkbox. + * + * Generated from protobuf enum CHECK_BOX = 2; + */ + const CHECK_BOX = 2; + + private static $valueToName = [ + self::PBSWITCH => 'SWITCH', + self::CHECKBOX => 'CHECKBOX', + self::CHECK_BOX => 'CHECK_BOX', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php new file mode 100644 index 000000000000..86678be6a504 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php @@ -0,0 +1,42 @@ +google.apps.card.v1.Divider + */ +class Divider extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php new file mode 100644 index 000000000000..28894502253f --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php @@ -0,0 +1,281 @@ +google.apps.card.v1.Grid + */ +class Grid extends \Google\Protobuf\Internal\Message +{ + /** + * The text that displays in the grid header. + * + * Generated from protobuf field string title = 1; + */ + protected $title = ''; + /** + * The items to display in the grid. + * + * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; + */ + private $items; + /** + * The border style to apply to each grid item. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; + */ + protected $border_style = null; + /** + * The number of columns to display in the grid. A default value + * is used if this field isn't specified, and that default value is + * different depending on where the grid is shown (dialog versus companion). + * + * Generated from protobuf field int32 column_count = 4; + */ + protected $column_count = 0; + /** + * This callback is reused by each individual grid item, but with the + * item's identifier and index in the items list added to the callback's + * parameters. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; + */ + protected $on_click = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * The text that displays in the grid header. + * @type \Google\Apps\Card\V1\Grid\GridItem[] $items + * The items to display in the grid. + * @type \Google\Apps\Card\V1\BorderStyle $border_style + * The border style to apply to each grid item. + * @type int $column_count + * The number of columns to display in the grid. A default value + * is used if this field isn't specified, and that default value is + * different depending on where the grid is shown (dialog versus companion). + * @type \Google\Apps\Card\V1\OnClick $on_click + * This callback is reused by each individual grid item, but with the + * item's identifier and index in the items list added to the callback's + * parameters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The text that displays in the grid header. + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * The text that displays in the grid header. + * + * Generated from protobuf field string title = 1; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * The items to display in the grid. + * + * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; + * @return RepeatedField<\Google\Apps\Card\V1\Grid\GridItem> + */ + public function getItems() + { + return $this->items; + } + + /** + * The items to display in the grid. + * + * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; + * @param \Google\Apps\Card\V1\Grid\GridItem[] $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Grid\GridItem::class); + $this->items = $arr; + + return $this; + } + + /** + * The border style to apply to each grid item. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; + * @return \Google\Apps\Card\V1\BorderStyle|null + */ + public function getBorderStyle() + { + return $this->border_style; + } + + public function hasBorderStyle() + { + return isset($this->border_style); + } + + public function clearBorderStyle() + { + unset($this->border_style); + } + + /** + * The border style to apply to each grid item. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; + * @param \Google\Apps\Card\V1\BorderStyle $var + * @return $this + */ + public function setBorderStyle($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\BorderStyle::class); + $this->border_style = $var; + + return $this; + } + + /** + * The number of columns to display in the grid. A default value + * is used if this field isn't specified, and that default value is + * different depending on where the grid is shown (dialog versus companion). + * + * Generated from protobuf field int32 column_count = 4; + * @return int + */ + public function getColumnCount() + { + return $this->column_count; + } + + /** + * The number of columns to display in the grid. A default value + * is used if this field isn't specified, and that default value is + * different depending on where the grid is shown (dialog versus companion). + * + * Generated from protobuf field int32 column_count = 4; + * @param int $var + * @return $this + */ + public function setColumnCount($var) + { + GPBUtil::checkInt32($var); + $this->column_count = $var; + + return $this; + } + + /** + * This callback is reused by each individual grid item, but with the + * item's identifier and index in the items list added to the callback's + * parameters. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; + * @return \Google\Apps\Card\V1\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * This callback is reused by each individual grid item, but with the + * item's identifier and index in the items list added to the callback's + * parameters. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; + * @param \Google\Apps\Card\V1\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); + $this->on_click = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php new file mode 100644 index 000000000000..d0e29ce4119c --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php @@ -0,0 +1,220 @@ +google.apps.card.v1.Grid.GridItem + */ +class GridItem extends \Google\Protobuf\Internal\Message +{ + /** + * A user-specified identifier for this grid item. This identifier is + * returned in the parent grid's `onClick` callback parameters. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * The image that displays in the grid item. + * + * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; + */ + protected $image = null; + /** + * The grid item's title. + * + * Generated from protobuf field string title = 3; + */ + protected $title = ''; + /** + * The grid item's subtitle. + * + * Generated from protobuf field string subtitle = 4; + */ + protected $subtitle = ''; + /** + * The layout to use for the grid item. + * + * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; + */ + protected $layout = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * A user-specified identifier for this grid item. This identifier is + * returned in the parent grid's `onClick` callback parameters. + * @type \Google\Apps\Card\V1\ImageComponent $image + * The image that displays in the grid item. + * @type string $title + * The grid item's title. + * @type string $subtitle + * The grid item's subtitle. + * @type int $layout + * The layout to use for the grid item. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * A user-specified identifier for this grid item. This identifier is + * returned in the parent grid's `onClick` callback parameters. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * A user-specified identifier for this grid item. This identifier is + * returned in the parent grid's `onClick` callback parameters. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * The image that displays in the grid item. + * + * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; + * @return \Google\Apps\Card\V1\ImageComponent|null + */ + public function getImage() + { + return $this->image; + } + + public function hasImage() + { + return isset($this->image); + } + + public function clearImage() + { + unset($this->image); + } + + /** + * The image that displays in the grid item. + * + * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; + * @param \Google\Apps\Card\V1\ImageComponent $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ImageComponent::class); + $this->image = $var; + + return $this; + } + + /** + * The grid item's title. + * + * Generated from protobuf field string title = 3; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * The grid item's title. + * + * Generated from protobuf field string title = 3; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * The grid item's subtitle. + * + * Generated from protobuf field string subtitle = 4; + * @return string + */ + public function getSubtitle() + { + return $this->subtitle; + } + + /** + * The grid item's subtitle. + * + * Generated from protobuf field string subtitle = 4; + * @param string $var + * @return $this + */ + public function setSubtitle($var) + { + GPBUtil::checkString($var, True); + $this->subtitle = $var; + + return $this; + } + + /** + * The layout to use for the grid item. + * + * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; + * @return int + */ + public function getLayout() + { + return $this->layout; + } + + /** + * The layout to use for the grid item. + * + * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; + * @param int $var + * @return $this + */ + public function setLayout($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Grid\GridItem\GridItemLayout::class); + $this->layout = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php new file mode 100644 index 000000000000..93efcec6c329 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php @@ -0,0 +1,63 @@ +google.apps.card.v1.Grid.GridItem.GridItemLayout + */ +class GridItemLayout +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum GRID_ITEM_LAYOUT_UNSPECIFIED = 0; + */ + const GRID_ITEM_LAYOUT_UNSPECIFIED = 0; + /** + * The title and subtitle are shown below the grid item's image. + * + * Generated from protobuf enum TEXT_BELOW = 1; + */ + const TEXT_BELOW = 1; + /** + * The title and subtitle are shown above the grid item's image. + * + * Generated from protobuf enum TEXT_ABOVE = 2; + */ + const TEXT_ABOVE = 2; + + private static $valueToName = [ + self::GRID_ITEM_LAYOUT_UNSPECIFIED => 'GRID_ITEM_LAYOUT_UNSPECIFIED', + self::TEXT_BELOW => 'TEXT_BELOW', + self::TEXT_ABOVE => 'TEXT_ABOVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php new file mode 100644 index 000000000000..79a44f28e80b --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php @@ -0,0 +1,318 @@ +google.apps.card.v1.Icon + */ +class Icon extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A description of the icon used for accessibility. + * If unspecified, the default value `Button` is provided. As a best practice, + * you should set a helpful description for what the icon displays, and if + * applicable, what it does. For example, `A user's account portrait`, or + * `Opens a new browser tab and navigates to the Google Chat developer + * documentation at https://developers.google.com/workspace/chat`. + * If the icon is set in a [`Button`][google.apps.card.v1.Button], the + * `altText` appears as helper text when the user hovers over the button. + * However, if the button also sets `text`, the icon's `altText` is ignored. + * + * Generated from protobuf field string alt_text = 3; + */ + protected $alt_text = ''; + /** + * The crop style applied to the image. In some cases, applying a + * `CIRCLE` crop causes the image to be drawn larger than a built-in + * icon. + * + * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; + */ + protected $image_type = 0; + protected $icons; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $known_icon + * Display one of the built-in icons provided by Google Workspace. + * For example, to display an airplane icon, specify `AIRPLANE`. + * For a bus, specify `BUS`. + * For a full list of supported icons, see [built-in + * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). + * @type string $icon_url + * Display a custom icon hosted at an HTTPS URL. + * For example: + * ``` + * "iconUrl": + * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" + * ``` + * Supported file types include `.png` and `.jpg`. + * @type \Google\Apps\Card\V1\MaterialIcon $material_icon + * Display one of the [Google Material + * Icons](https://fonts.google.com/icons). + * For example, to display a [checkbox + * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), + * use + * ``` + * "material_icon": { + * "name": "check_box" + * } + * ``` + * [Google Chat apps](https://developers.google.com/workspace/chat): + * @type string $alt_text + * Optional. A description of the icon used for accessibility. + * If unspecified, the default value `Button` is provided. As a best practice, + * you should set a helpful description for what the icon displays, and if + * applicable, what it does. For example, `A user's account portrait`, or + * `Opens a new browser tab and navigates to the Google Chat developer + * documentation at https://developers.google.com/workspace/chat`. + * If the icon is set in a [`Button`][google.apps.card.v1.Button], the + * `altText` appears as helper text when the user hovers over the button. + * However, if the button also sets `text`, the icon's `altText` is ignored. + * @type int $image_type + * The crop style applied to the image. In some cases, applying a + * `CIRCLE` crop causes the image to be drawn larger than a built-in + * icon. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Display one of the built-in icons provided by Google Workspace. + * For example, to display an airplane icon, specify `AIRPLANE`. + * For a bus, specify `BUS`. + * For a full list of supported icons, see [built-in + * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). + * + * Generated from protobuf field string known_icon = 1; + * @return string + */ + public function getKnownIcon() + { + return $this->readOneof(1); + } + + public function hasKnownIcon() + { + return $this->hasOneof(1); + } + + /** + * Display one of the built-in icons provided by Google Workspace. + * For example, to display an airplane icon, specify `AIRPLANE`. + * For a bus, specify `BUS`. + * For a full list of supported icons, see [built-in + * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). + * + * Generated from protobuf field string known_icon = 1; + * @param string $var + * @return $this + */ + public function setKnownIcon($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Display a custom icon hosted at an HTTPS URL. + * For example: + * ``` + * "iconUrl": + * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" + * ``` + * Supported file types include `.png` and `.jpg`. + * + * Generated from protobuf field string icon_url = 2; + * @return string + */ + public function getIconUrl() + { + return $this->readOneof(2); + } + + public function hasIconUrl() + { + return $this->hasOneof(2); + } + + /** + * Display a custom icon hosted at an HTTPS URL. + * For example: + * ``` + * "iconUrl": + * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" + * ``` + * Supported file types include `.png` and `.jpg`. + * + * Generated from protobuf field string icon_url = 2; + * @param string $var + * @return $this + */ + public function setIconUrl($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Display one of the [Google Material + * Icons](https://fonts.google.com/icons). + * For example, to display a [checkbox + * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), + * use + * ``` + * "material_icon": { + * "name": "check_box" + * } + * ``` + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.MaterialIcon material_icon = 5; + * @return \Google\Apps\Card\V1\MaterialIcon|null + */ + public function getMaterialIcon() + { + return $this->readOneof(5); + } + + public function hasMaterialIcon() + { + return $this->hasOneof(5); + } + + /** + * Display one of the [Google Material + * Icons](https://fonts.google.com/icons). + * For example, to display a [checkbox + * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), + * use + * ``` + * "material_icon": { + * "name": "check_box" + * } + * ``` + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.MaterialIcon material_icon = 5; + * @param \Google\Apps\Card\V1\MaterialIcon $var + * @return $this + */ + public function setMaterialIcon($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\MaterialIcon::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Optional. A description of the icon used for accessibility. + * If unspecified, the default value `Button` is provided. As a best practice, + * you should set a helpful description for what the icon displays, and if + * applicable, what it does. For example, `A user's account portrait`, or + * `Opens a new browser tab and navigates to the Google Chat developer + * documentation at https://developers.google.com/workspace/chat`. + * If the icon is set in a [`Button`][google.apps.card.v1.Button], the + * `altText` appears as helper text when the user hovers over the button. + * However, if the button also sets `text`, the icon's `altText` is ignored. + * + * Generated from protobuf field string alt_text = 3; + * @return string + */ + public function getAltText() + { + return $this->alt_text; + } + + /** + * Optional. A description of the icon used for accessibility. + * If unspecified, the default value `Button` is provided. As a best practice, + * you should set a helpful description for what the icon displays, and if + * applicable, what it does. For example, `A user's account portrait`, or + * `Opens a new browser tab and navigates to the Google Chat developer + * documentation at https://developers.google.com/workspace/chat`. + * If the icon is set in a [`Button`][google.apps.card.v1.Button], the + * `altText` appears as helper text when the user hovers over the button. + * However, if the button also sets `text`, the icon's `altText` is ignored. + * + * Generated from protobuf field string alt_text = 3; + * @param string $var + * @return $this + */ + public function setAltText($var) + { + GPBUtil::checkString($var, True); + $this->alt_text = $var; + + return $this; + } + + /** + * The crop style applied to the image. In some cases, applying a + * `CIRCLE` crop causes the image to be drawn larger than a built-in + * icon. + * + * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; + * @return int + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * The crop style applied to the image. In some cases, applying a + * `CIRCLE` crop causes the image to be drawn larger than a built-in + * icon. + * + * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; + * @param int $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\ImageType::class); + $this->image_type = $var; + + return $this; + } + + /** + * @return string + */ + public function getIcons() + { + return $this->whichOneof("icons"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php new file mode 100644 index 000000000000..9abce5ad4a4a --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php @@ -0,0 +1,165 @@ +google.apps.card.v1.Image + */ +class Image extends \Google\Protobuf\Internal\Message +{ + /** + * The HTTPS URL that hosts the image. + * For example: + * ``` + * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png + * ``` + * + * Generated from protobuf field string image_url = 1; + */ + protected $image_url = ''; + /** + * When a user clicks the image, the click triggers this action. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; + */ + protected $on_click = null; + /** + * The alternative text of this image that's used for accessibility. + * + * Generated from protobuf field string alt_text = 3; + */ + protected $alt_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $image_url + * The HTTPS URL that hosts the image. + * For example: + * ``` + * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png + * ``` + * @type \Google\Apps\Card\V1\OnClick $on_click + * When a user clicks the image, the click triggers this action. + * @type string $alt_text + * The alternative text of this image that's used for accessibility. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The HTTPS URL that hosts the image. + * For example: + * ``` + * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png + * ``` + * + * Generated from protobuf field string image_url = 1; + * @return string + */ + public function getImageUrl() + { + return $this->image_url; + } + + /** + * The HTTPS URL that hosts the image. + * For example: + * ``` + * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png + * ``` + * + * Generated from protobuf field string image_url = 1; + * @param string $var + * @return $this + */ + public function setImageUrl($var) + { + GPBUtil::checkString($var, True); + $this->image_url = $var; + + return $this; + } + + /** + * When a user clicks the image, the click triggers this action. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; + * @return \Google\Apps\Card\V1\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * When a user clicks the image, the click triggers this action. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; + * @param \Google\Apps\Card\V1\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * The alternative text of this image that's used for accessibility. + * + * Generated from protobuf field string alt_text = 3; + * @return string + */ + public function getAltText() + { + return $this->alt_text; + } + + /** + * The alternative text of this image that's used for accessibility. + * + * Generated from protobuf field string alt_text = 3; + * @param string $var + * @return $this + */ + public function setAltText($var) + { + GPBUtil::checkString($var, True); + $this->alt_text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php new file mode 100644 index 000000000000..cce24d68a94c --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php @@ -0,0 +1,191 @@ +google.apps.card.v1.ImageComponent + */ +class ImageComponent extends \Google\Protobuf\Internal\Message +{ + /** + * The image URL. + * + * Generated from protobuf field string image_uri = 1; + */ + protected $image_uri = ''; + /** + * The accessibility label for the image. + * + * Generated from protobuf field string alt_text = 2; + */ + protected $alt_text = ''; + /** + * The crop style to apply to the image. + * + * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; + */ + protected $crop_style = null; + /** + * The border style to apply to the image. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; + */ + protected $border_style = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $image_uri + * The image URL. + * @type string $alt_text + * The accessibility label for the image. + * @type \Google\Apps\Card\V1\ImageCropStyle $crop_style + * The crop style to apply to the image. + * @type \Google\Apps\Card\V1\BorderStyle $border_style + * The border style to apply to the image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The image URL. + * + * Generated from protobuf field string image_uri = 1; + * @return string + */ + public function getImageUri() + { + return $this->image_uri; + } + + /** + * The image URL. + * + * Generated from protobuf field string image_uri = 1; + * @param string $var + * @return $this + */ + public function setImageUri($var) + { + GPBUtil::checkString($var, True); + $this->image_uri = $var; + + return $this; + } + + /** + * The accessibility label for the image. + * + * Generated from protobuf field string alt_text = 2; + * @return string + */ + public function getAltText() + { + return $this->alt_text; + } + + /** + * The accessibility label for the image. + * + * Generated from protobuf field string alt_text = 2; + * @param string $var + * @return $this + */ + public function setAltText($var) + { + GPBUtil::checkString($var, True); + $this->alt_text = $var; + + return $this; + } + + /** + * The crop style to apply to the image. + * + * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; + * @return \Google\Apps\Card\V1\ImageCropStyle|null + */ + public function getCropStyle() + { + return $this->crop_style; + } + + public function hasCropStyle() + { + return isset($this->crop_style); + } + + public function clearCropStyle() + { + unset($this->crop_style); + } + + /** + * The crop style to apply to the image. + * + * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; + * @param \Google\Apps\Card\V1\ImageCropStyle $var + * @return $this + */ + public function setCropStyle($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ImageCropStyle::class); + $this->crop_style = $var; + + return $this; + } + + /** + * The border style to apply to the image. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; + * @return \Google\Apps\Card\V1\BorderStyle|null + */ + public function getBorderStyle() + { + return $this->border_style; + } + + public function hasBorderStyle() + { + return isset($this->border_style); + } + + public function clearBorderStyle() + { + unset($this->border_style); + } + + /** + * The border style to apply to the image. + * + * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; + * @param \Google\Apps\Card\V1\BorderStyle $var + * @return $this + */ + public function setBorderStyle($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\BorderStyle::class); + $this->border_style = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php new file mode 100644 index 000000000000..29db41e9f7e7 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php @@ -0,0 +1,138 @@ +google.apps.card.v1.ImageCropStyle + */ +class ImageCropStyle extends \Google\Protobuf\Internal\Message +{ + /** + * The crop type. + * + * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; + */ + protected $type = 0; + /** + * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. + * For example, here's how to apply a 16:9 aspect ratio: + * ``` + * cropStyle { + * "type": "RECTANGLE_CUSTOM", + * "aspectRatio": 16/9 + * } + * ``` + * + * Generated from protobuf field double aspect_ratio = 2; + */ + protected $aspect_ratio = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The crop type. + * @type float $aspect_ratio + * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. + * For example, here's how to apply a 16:9 aspect ratio: + * ``` + * cropStyle { + * "type": "RECTANGLE_CUSTOM", + * "aspectRatio": 16/9 + * } + * ``` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The crop type. + * + * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The crop type. + * + * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\ImageCropStyle\ImageCropType::class); + $this->type = $var; + + return $this; + } + + /** + * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. + * For example, here's how to apply a 16:9 aspect ratio: + * ``` + * cropStyle { + * "type": "RECTANGLE_CUSTOM", + * "aspectRatio": 16/9 + * } + * ``` + * + * Generated from protobuf field double aspect_ratio = 2; + * @return float + */ + public function getAspectRatio() + { + return $this->aspect_ratio; + } + + /** + * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. + * For example, here's how to apply a 16:9 aspect ratio: + * ``` + * cropStyle { + * "type": "RECTANGLE_CUSTOM", + * "aspectRatio": 16/9 + * } + * ``` + * + * Generated from protobuf field double aspect_ratio = 2; + * @param float $var + * @return $this + */ + public function setAspectRatio($var) + { + GPBUtil::checkDouble($var); + $this->aspect_ratio = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php new file mode 100644 index 000000000000..fbb2623a6ee0 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php @@ -0,0 +1,78 @@ +google.apps.card.v1.ImageCropStyle.ImageCropType + */ +class ImageCropType +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum IMAGE_CROP_TYPE_UNSPECIFIED = 0; + */ + const IMAGE_CROP_TYPE_UNSPECIFIED = 0; + /** + * Default value. Applies a square crop. + * + * Generated from protobuf enum SQUARE = 1; + */ + const SQUARE = 1; + /** + * Applies a circular crop. + * + * Generated from protobuf enum CIRCLE = 2; + */ + const CIRCLE = 2; + /** + * Applies a rectangular crop with a custom aspect ratio. Set the custom + * aspect ratio with `aspectRatio`. + * + * Generated from protobuf enum RECTANGLE_CUSTOM = 3; + */ + const RECTANGLE_CUSTOM = 3; + /** + * Applies a rectangular crop with a 4:3 aspect ratio. + * + * Generated from protobuf enum RECTANGLE_4_3 = 4; + */ + const RECTANGLE_4_3 = 4; + + private static $valueToName = [ + self::IMAGE_CROP_TYPE_UNSPECIFIED => 'IMAGE_CROP_TYPE_UNSPECIFIED', + self::SQUARE => 'SQUARE', + self::CIRCLE => 'CIRCLE', + self::RECTANGLE_CUSTOM => 'RECTANGLE_CUSTOM', + self::RECTANGLE_4_3 => 'RECTANGLE_4_3', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php new file mode 100644 index 000000000000..697974cc1dfe --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php @@ -0,0 +1,250 @@ +google.apps.card.v1.MaterialIcon + */ +class MaterialIcon extends \Google\Protobuf\Internal\Message +{ + /** + * The icon name defined in the [Google Material + * Icon](https://fonts.google.com/icons), for example, `check_box`. Any + * invalid names are abandoned and replaced with empty string and + * results in the icon failing to render. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Whether the icon renders as filled. Default value is false. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field bool fill = 2; + */ + protected $fill = false; + /** + * The stroke weight of the icon. Choose from {100, 200, 300, 400, + * 500, 600, 700}. If absent, default value is 400. If any other value is + * specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field int32 weight = 3; + */ + protected $weight = 0; + /** + * Weight and grade affect a symbol’s thickness. Adjustments to grade are more + * granular than adjustments to weight and have a small impact on the size of + * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If + * any other value is specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field int32 grade = 4; + */ + protected $grade = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The icon name defined in the [Google Material + * Icon](https://fonts.google.com/icons), for example, `check_box`. Any + * invalid names are abandoned and replaced with empty string and + * results in the icon failing to render. + * @type bool $fill + * Whether the icon renders as filled. Default value is false. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * @type int $weight + * The stroke weight of the icon. Choose from {100, 200, 300, 400, + * 500, 600, 700}. If absent, default value is 400. If any other value is + * specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * @type int $grade + * Weight and grade affect a symbol’s thickness. Adjustments to grade are more + * granular than adjustments to weight and have a small impact on the size of + * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If + * any other value is specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The icon name defined in the [Google Material + * Icon](https://fonts.google.com/icons), for example, `check_box`. Any + * invalid names are abandoned and replaced with empty string and + * results in the icon failing to render. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The icon name defined in the [Google Material + * Icon](https://fonts.google.com/icons), for example, `check_box`. Any + * invalid names are abandoned and replaced with empty string and + * results in the icon failing to render. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Whether the icon renders as filled. Default value is false. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field bool fill = 2; + * @return bool + */ + public function getFill() + { + return $this->fill; + } + + /** + * Whether the icon renders as filled. Default value is false. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field bool fill = 2; + * @param bool $var + * @return $this + */ + public function setFill($var) + { + GPBUtil::checkBool($var); + $this->fill = $var; + + return $this; + } + + /** + * The stroke weight of the icon. Choose from {100, 200, 300, 400, + * 500, 600, 700}. If absent, default value is 400. If any other value is + * specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field int32 weight = 3; + * @return int + */ + public function getWeight() + { + return $this->weight; + } + + /** + * The stroke weight of the icon. Choose from {100, 200, 300, 400, + * 500, 600, 700}. If absent, default value is 400. If any other value is + * specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field int32 weight = 3; + * @param int $var + * @return $this + */ + public function setWeight($var) + { + GPBUtil::checkInt32($var); + $this->weight = $var; + + return $this; + } + + /** + * Weight and grade affect a symbol’s thickness. Adjustments to grade are more + * granular than adjustments to weight and have a small impact on the size of + * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If + * any other value is specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field int32 grade = 4; + * @return int + */ + public function getGrade() + { + return $this->grade; + } + + /** + * Weight and grade affect a symbol’s thickness. Adjustments to grade are more + * granular than adjustments to weight and have a small impact on the size of + * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If + * any other value is specified, the default value is used. + * To preview different icon settings, go to + * [Google Font Icons](https://fonts.google.com/icons) and adjust the + * settings under **Customize**. + * + * Generated from protobuf field int32 grade = 4; + * @param int $var + * @return $this + */ + public function setGrade($var) + { + GPBUtil::checkInt32($var); + $this->grade = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php new file mode 100644 index 000000000000..ba0ec7fabadd --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php @@ -0,0 +1,231 @@ +google.apps.card.v1.OnClick + */ +class OnClick extends \Google\Protobuf\Internal\Message +{ + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Action $action + * If specified, an action is triggered by this `onClick`. + * @type \Google\Apps\Card\V1\OpenLink $open_link + * If specified, this `onClick` triggers an open link action. + * @type \Google\Apps\Card\V1\Action $open_dynamic_link_action + * An add-on triggers this action when the action needs to open a + * link. This differs from the `open_link` above in that this needs to talk + * to server to get the link. Thus some preparation work is required for + * web client to do before the open link action response comes back. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * @type \Google\Apps\Card\V1\Card $card + * A new card is pushed to the card stack after clicking if specified. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * @type \Google\Apps\Card\V1\OverflowMenu $overflow_menu + * If specified, this `onClick` opens an overflow menu. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * If specified, an action is triggered by this `onClick`. + * + * Generated from protobuf field .google.apps.card.v1.Action action = 1; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getAction() + { + return $this->readOneof(1); + } + + public function hasAction() + { + return $this->hasOneof(1); + } + + /** + * If specified, an action is triggered by this `onClick`. + * + * Generated from protobuf field .google.apps.card.v1.Action action = 1; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * If specified, this `onClick` triggers an open link action. + * + * Generated from protobuf field .google.apps.card.v1.OpenLink open_link = 2; + * @return \Google\Apps\Card\V1\OpenLink|null + */ + public function getOpenLink() + { + return $this->readOneof(2); + } + + public function hasOpenLink() + { + return $this->hasOneof(2); + } + + /** + * If specified, this `onClick` triggers an open link action. + * + * Generated from protobuf field .google.apps.card.v1.OpenLink open_link = 2; + * @param \Google\Apps\Card\V1\OpenLink $var + * @return $this + */ + public function setOpenLink($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OpenLink::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * An add-on triggers this action when the action needs to open a + * link. This differs from the `open_link` above in that this needs to talk + * to server to get the link. Thus some preparation work is required for + * web client to do before the open link action response comes back. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Action open_dynamic_link_action = 3; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getOpenDynamicLinkAction() + { + return $this->readOneof(3); + } + + public function hasOpenDynamicLinkAction() + { + return $this->hasOneof(3); + } + + /** + * An add-on triggers this action when the action needs to open a + * link. This differs from the `open_link` above in that this needs to talk + * to server to get the link. Thus some preparation work is required for + * web client to do before the open link action response comes back. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Action open_dynamic_link_action = 3; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setOpenDynamicLinkAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A new card is pushed to the card stack after clicking if specified. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card card = 4; + * @return \Google\Apps\Card\V1\Card|null + */ + public function getCard() + { + return $this->readOneof(4); + } + + public function hasCard() + { + return $this->hasOneof(4); + } + + /** + * A new card is pushed to the card stack after clicking if specified. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Card card = 4; + * @param \Google\Apps\Card\V1\Card $var + * @return $this + */ + public function setCard($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * If specified, this `onClick` opens an overflow menu. + * + * Generated from protobuf field .google.apps.card.v1.OverflowMenu overflow_menu = 8; + * @return \Google\Apps\Card\V1\OverflowMenu|null + */ + public function getOverflowMenu() + { + return $this->readOneof(8); + } + + public function hasOverflowMenu() + { + return $this->hasOneof(8); + } + + /** + * If specified, this `onClick` opens an overflow menu. + * + * Generated from protobuf field .google.apps.card.v1.OverflowMenu overflow_menu = 8; + * @param \Google\Apps\Card\V1\OverflowMenu $var + * @return $this + */ + public function setOverflowMenu($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OverflowMenu::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php new file mode 100644 index 000000000000..df7e655bd1c3 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php @@ -0,0 +1,157 @@ +google.apps.card.v1.OpenLink + */ +class OpenLink extends \Google\Protobuf\Internal\Message +{ + /** + * The URL to open. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + /** + * How to open a link. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; + */ + protected $open_as = 0; + /** + * Whether the client forgets about a link after opening it, or observes it + * until the window closes. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; + */ + protected $on_close = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * The URL to open. + * @type int $open_as + * How to open a link. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * @type int $on_close + * Whether the client forgets about a link after opening it, or observes it + * until the window closes. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The URL to open. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The URL to open. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * How to open a link. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; + * @return int + */ + public function getOpenAs() + { + return $this->open_as; + } + + /** + * How to open a link. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; + * @param int $var + * @return $this + */ + public function setOpenAs($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\OpenLink\OpenAs::class); + $this->open_as = $var; + + return $this; + } + + /** + * Whether the client forgets about a link after opening it, or observes it + * until the window closes. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; + * @return int + */ + public function getOnClose() + { + return $this->on_close; + } + + /** + * Whether the client forgets about a link after opening it, or observes it + * until the window closes. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; + * @param int $var + * @return $this + */ + public function setOnClose($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\OpenLink\OnClose::class); + $this->on_close = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php new file mode 100644 index 000000000000..a60827fdb08a --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php @@ -0,0 +1,64 @@ +google.apps.card.v1.OpenLink.OnClose + */ +class OnClose +{ + /** + * Default value. The card doesn't reload; nothing happens. + * + * Generated from protobuf enum NOTHING = 0; + */ + const NOTHING = 0; + /** + * Reloads the card after the child window closes. + * If used in conjunction with + * [`OpenAs.OVERLAY`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#openas), + * the child window acts as a modal dialog and the parent card is blocked + * until the child window closes. + * + * Generated from protobuf enum RELOAD = 1; + */ + const RELOAD = 1; + + private static $valueToName = [ + self::NOTHING => 'NOTHING', + self::RELOAD => 'RELOAD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php new file mode 100644 index 000000000000..c14f12237c6e --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php @@ -0,0 +1,61 @@ +google.apps.card.v1.OpenLink.OpenAs + */ +class OpenAs +{ + /** + * The link opens as a full-size window (if that's the frame used by the + * client). + * + * Generated from protobuf enum FULL_SIZE = 0; + */ + const FULL_SIZE = 0; + /** + * The link opens as an overlay, such as a pop-up. + * + * Generated from protobuf enum OVERLAY = 1; + */ + const OVERLAY = 1; + + private static $valueToName = [ + self::FULL_SIZE => 'FULL_SIZE', + self::OVERLAY => 'OVERLAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php new file mode 100644 index 000000000000..df4de7c968fc --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php @@ -0,0 +1,73 @@ +google.apps.card.v1.OverflowMenu + */ +class OverflowMenu extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of menu options. + * + * Generated from protobuf field repeated .google.apps.card.v1.OverflowMenu.OverflowMenuItem items = 1; + */ + private $items; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem[] $items + * Required. The list of menu options. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of menu options. + * + * Generated from protobuf field repeated .google.apps.card.v1.OverflowMenu.OverflowMenuItem items = 1; + * @return RepeatedField<\Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem> + */ + public function getItems() + { + return $this->items; + } + + /** + * Required. The list of menu options. + * + * Generated from protobuf field repeated .google.apps.card.v1.OverflowMenu.OverflowMenuItem items = 1; + * @param \Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem[] $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem::class); + $this->items = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php new file mode 100644 index 000000000000..935c13ea3789 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php @@ -0,0 +1,203 @@ +google.apps.card.v1.OverflowMenu.OverflowMenuItem + */ +class OverflowMenuItem extends \Google\Protobuf\Internal\Message +{ + /** + * The icon displayed in front of the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 1; + */ + protected $start_icon = null; + /** + * Required. The text that identifies or describes the item to users. + * + * Generated from protobuf field string text = 2; + */ + protected $text = ''; + /** + * Required. The action invoked when a menu option is selected. + * This `OnClick` cannot contain an `OverflowMenu`, any specified + * `OverflowMenu` is dropped and the menu item disabled. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; + */ + protected $on_click = null; + /** + * Whether the menu option is disabled. + * Defaults to false. + * + * Generated from protobuf field bool disabled = 4; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Icon $start_icon + * The icon displayed in front of the text. + * @type string $text + * Required. The text that identifies or describes the item to users. + * @type \Google\Apps\Card\V1\OnClick $on_click + * Required. The action invoked when a menu option is selected. + * This `OnClick` cannot contain an `OverflowMenu`, any specified + * `OverflowMenu` is dropped and the menu item disabled. + * @type bool $disabled + * Whether the menu option is disabled. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The icon displayed in front of the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 1; + * @return \Google\Apps\Card\V1\Icon|null + */ + public function getStartIcon() + { + return $this->start_icon; + } + + public function hasStartIcon() + { + return isset($this->start_icon); + } + + public function clearStartIcon() + { + unset($this->start_icon); + } + + /** + * The icon displayed in front of the text. + * + * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 1; + * @param \Google\Apps\Card\V1\Icon $var + * @return $this + */ + public function setStartIcon($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); + $this->start_icon = $var; + + return $this; + } + + /** + * Required. The text that identifies or describes the item to users. + * + * Generated from protobuf field string text = 2; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Required. The text that identifies or describes the item to users. + * + * Generated from protobuf field string text = 2; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * Required. The action invoked when a menu option is selected. + * This `OnClick` cannot contain an `OverflowMenu`, any specified + * `OverflowMenu` is dropped and the menu item disabled. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; + * @return \Google\Apps\Card\V1\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * Required. The action invoked when a menu option is selected. + * This `OnClick` cannot contain an `OverflowMenu`, any specified + * `OverflowMenu` is dropped and the menu item disabled. + * + * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; + * @param \Google\Apps\Card\V1\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * Whether the menu option is disabled. + * Defaults to false. + * + * Generated from protobuf field bool disabled = 4; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether the menu option is disabled. + * Defaults to false. + * + * Generated from protobuf field bool disabled = 4; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php new file mode 100644 index 000000000000..c22edf659561 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php @@ -0,0 +1,468 @@ +google.apps.card.v1.SelectionInput + */ +class SelectionInput extends \Google\Protobuf\Internal\Message +{ + /** + * 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). + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * 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". + * + * Generated from protobuf field string label = 2; + */ + protected $label = ''; + /** + * 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. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; + */ + protected $type = 0; + /** + * An array of selectable items. For example, an array of radio buttons or + * checkboxes. Supports up to 100 items. + * + * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; + */ + private $items; + /** + * 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). + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; + */ + protected $on_change_action = null; + /** + * For multiselect menus, the maximum number of items that a user can select. + * Minimum value is 1 item. If unspecified, defaults to 3 items. + * + * Generated from protobuf field optional int32 multi_select_max_selected_items = 6; + */ + protected $multi_select_max_selected_items = null; + /** + * 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. + * + * Generated from protobuf field int32 multi_select_min_query_length = 7; + */ + protected $multi_select_min_query_length = 0; + protected $multi_select_data_source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * 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). + * @type string $label + * 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". + * @type int $type + * 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. + * @type \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $items + * An array of selectable items. For example, an array of radio buttons or + * checkboxes. Supports up to 100 items. + * @type \Google\Apps\Card\V1\Action $on_change_action + * 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). + * @type int $multi_select_max_selected_items + * For multiselect menus, the maximum number of items that a user can select. + * Minimum value is 1 item. If unspecified, defaults to 3 items. + * @type int $multi_select_min_query_length + * 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. + * @type \Google\Apps\Card\V1\Action $external_data_source + * An external data source, such as a relational database. + * @type \Google\Apps\Card\V1\SelectionInput\PlatformDataSource $platform_data_source + * A data source from Google Workspace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * 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). + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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). + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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". + * + * Generated from protobuf field string label = 2; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * 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". + * + * Generated from protobuf field string label = 2; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * 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. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\SelectionInput\SelectionType::class); + $this->type = $var; + + return $this; + } + + /** + * An array of selectable items. For example, an array of radio buttons or + * checkboxes. Supports up to 100 items. + * + * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; + * @return RepeatedField<\Google\Apps\Card\V1\SelectionInput\SelectionItem> + */ + public function getItems() + { + return $this->items; + } + + /** + * An array of selectable items. For example, an array of radio buttons or + * checkboxes. Supports up to 100 items. + * + * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; + * @param \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\SelectionInput\SelectionItem::class); + $this->items = $arr; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getOnChangeAction() + { + return $this->on_change_action; + } + + public function hasOnChangeAction() + { + return isset($this->on_change_action); + } + + public function clearOnChangeAction() + { + unset($this->on_change_action); + } + + /** + * 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). + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setOnChangeAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->on_change_action = $var; + + return $this; + } + + /** + * For multiselect menus, the maximum number of items that a user can select. + * Minimum value is 1 item. If unspecified, defaults to 3 items. + * + * Generated from protobuf field optional int32 multi_select_max_selected_items = 6; + * @return int + */ + public function getMultiSelectMaxSelectedItems() + { + return isset($this->multi_select_max_selected_items) ? $this->multi_select_max_selected_items : 0; + } + + public function hasMultiSelectMaxSelectedItems() + { + return isset($this->multi_select_max_selected_items); + } + + public function clearMultiSelectMaxSelectedItems() + { + unset($this->multi_select_max_selected_items); + } + + /** + * For multiselect menus, the maximum number of items that a user can select. + * Minimum value is 1 item. If unspecified, defaults to 3 items. + * + * Generated from protobuf field optional int32 multi_select_max_selected_items = 6; + * @param int $var + * @return $this + */ + public function setMultiSelectMaxSelectedItems($var) + { + GPBUtil::checkInt32($var); + $this->multi_select_max_selected_items = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 multi_select_min_query_length = 7; + * @return int + */ + public function getMultiSelectMinQueryLength() + { + return $this->multi_select_min_query_length; + } + + /** + * 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. + * + * Generated from protobuf field int32 multi_select_min_query_length = 7; + * @param int $var + * @return $this + */ + public function setMultiSelectMinQueryLength($var) + { + GPBUtil::checkInt32($var); + $this->multi_select_min_query_length = $var; + + return $this; + } + + /** + * An external data source, such as a relational database. + * + * Generated from protobuf field .google.apps.card.v1.Action external_data_source = 8; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getExternalDataSource() + { + return $this->readOneof(8); + } + + public function hasExternalDataSource() + { + return $this->hasOneof(8); + } + + /** + * An external data source, such as a relational database. + * + * Generated from protobuf field .google.apps.card.v1.Action external_data_source = 8; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setExternalDataSource($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * A data source from Google Workspace. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9; + * @return \Google\Apps\Card\V1\SelectionInput\PlatformDataSource|null + */ + public function getPlatformDataSource() + { + return $this->readOneof(9); + } + + public function hasPlatformDataSource() + { + return $this->hasOneof(9); + } + + /** + * A data source from Google Workspace. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9; + * @param \Google\Apps\Card\V1\SelectionInput\PlatformDataSource $var + * @return $this + */ + public function setPlatformDataSource($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput\PlatformDataSource::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * @return string + */ + public function getMultiSelectDataSource() + { + return $this->whichOneof("multi_select_data_source"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php new file mode 100644 index 000000000000..68986591368d --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php @@ -0,0 +1,82 @@ +google.apps.card.v1.SelectionInput.PlatformDataSource + */ +class PlatformDataSource extends \Google\Protobuf\Internal\Message +{ + protected $data_source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $common_data_source + * A data source shared by all Google Workspace applications, such as + * users in a Google Workspace organization. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * A data source shared by all Google Workspace applications, such as + * users in a Google Workspace organization. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1; + * @return int + */ + public function getCommonDataSource() + { + return $this->readOneof(1); + } + + public function hasCommonDataSource() + { + return $this->hasOneof(1); + } + + /** + * A data source shared by all Google Workspace applications, such as + * users in a Google Workspace organization. + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1; + * @param int $var + * @return $this + */ + public function setCommonDataSource($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\SelectionInput\PlatformDataSource\CommonDataSource::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getDataSource() + { + return $this->whichOneof("data_source"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php new file mode 100644 index 000000000000..7db059a45f6c --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php @@ -0,0 +1,58 @@ +google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource + */ +class CommonDataSource +{ + /** + * Default value. Don't use. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * Google Workspace users. The user can only view and select users from + * their Google Workspace organization. + * + * Generated from protobuf enum USER = 1; + */ + const USER = 1; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::USER => 'USER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php new file mode 100644 index 000000000000..5c39b15f3995 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php @@ -0,0 +1,233 @@ +google.apps.card.v1.SelectionInput.SelectionItem + */ +class SelectionItem extends \Google\Protobuf\Internal\Message +{ + /** + * The text that identifies or describes the item to users. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * The value associated with this item. The client should use this as a form + * input value. + * For details about working with form inputs, see [Receive form + * data](https://developers.google.com/workspace/chat/read-form-data). + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * Whether the item is selected by default. If the selection input only + * accepts one value (such as for radio buttons or a dropdown menu), only + * set this field for one item. + * + * Generated from protobuf field bool selected = 3; + */ + protected $selected = false; + /** + * For multiselect menus, a text description or label that's + * displayed below the item's `text` field. + * + * Generated from protobuf field string bottom_text = 5; + */ + protected $bottom_text = ''; + protected $start_icon; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * The text that identifies or describes the item to users. + * @type string $value + * The value associated with this item. The client should use this as a form + * input value. + * For details about working with form inputs, see [Receive form + * data](https://developers.google.com/workspace/chat/read-form-data). + * @type bool $selected + * Whether the item is selected by default. If the selection input only + * accepts one value (such as for radio buttons or a dropdown menu), only + * set this field for one item. + * @type string $start_icon_uri + * @type string $bottom_text + * For multiselect menus, a text description or label that's + * displayed below the item's `text` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The text that identifies or describes the item to users. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The text that identifies or describes the item to users. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * The value associated with this item. The client should use this as a form + * input value. + * For details about working with form inputs, see [Receive form + * data](https://developers.google.com/workspace/chat/read-form-data). + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value associated with this item. The client should use this as a form + * input value. + * For details about working with form inputs, see [Receive form + * data](https://developers.google.com/workspace/chat/read-form-data). + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Whether the item is selected by default. If the selection input only + * accepts one value (such as for radio buttons or a dropdown menu), only + * set this field for one item. + * + * Generated from protobuf field bool selected = 3; + * @return bool + */ + public function getSelected() + { + return $this->selected; + } + + /** + * Whether the item is selected by default. If the selection input only + * accepts one value (such as for radio buttons or a dropdown menu), only + * set this field for one item. + * + * Generated from protobuf field bool selected = 3; + * @param bool $var + * @return $this + */ + public function setSelected($var) + { + GPBUtil::checkBool($var); + $this->selected = $var; + + return $this; + } + + /** + * Generated from protobuf field string start_icon_uri = 4; + * @return string + */ + public function getStartIconUri() + { + return $this->readOneof(4); + } + + public function hasStartIconUri() + { + return $this->hasOneof(4); + } + + /** + * Generated from protobuf field string start_icon_uri = 4; + * @param string $var + * @return $this + */ + public function setStartIconUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * For multiselect menus, a text description or label that's + * displayed below the item's `text` field. + * + * Generated from protobuf field string bottom_text = 5; + * @return string + */ + public function getBottomText() + { + return $this->bottom_text; + } + + /** + * For multiselect menus, a text description or label that's + * displayed below the item's `text` field. + * + * Generated from protobuf field string bottom_text = 5; + * @param string $var + * @return $this + */ + public function setBottomText($var) + { + GPBUtil::checkString($var, True); + $this->bottom_text = $var; + + return $this; + } + + /** + * @return string + */ + public function getStartIcon() + { + return $this->whichOneof("start_icon"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php new file mode 100644 index 000000000000..998da8bae7bf --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php @@ -0,0 +1,117 @@ +google.apps.card.v1.SelectionInput.SelectionType + */ +class SelectionType +{ + /** + * A set of checkboxes. Users can select one or more checkboxes. + * + * Generated from protobuf enum CHECK_BOX = 0; + */ + const CHECK_BOX = 0; + /** + * A set of radio buttons. Users can select one radio button. + * + * Generated from protobuf enum RADIO_BUTTON = 1; + */ + const RADIO_BUTTON = 1; + /** + * A set of switches. Users can turn on one or more switches. + * + * Generated from protobuf enum SWITCH = 2; + */ + const PBSWITCH = 2; + /** + * 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): + * + * Generated from protobuf enum DROPDOWN = 3; + */ + const DROPDOWN = 3; + /** + * 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): + * + * Generated from protobuf enum MULTI_SELECT = 4; + */ + const MULTI_SELECT = 4; + + private static $valueToName = [ + self::CHECK_BOX => 'CHECK_BOX', + self::RADIO_BUTTON => 'RADIO_BUTTON', + self::PBSWITCH => 'SWITCH', + self::DROPDOWN => 'DROPDOWN', + self::MULTI_SELECT => 'MULTI_SELECT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php new file mode 100644 index 000000000000..3f78c1d678d3 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php @@ -0,0 +1,84 @@ +google.apps.card.v1.Suggestions + */ +class Suggestions extends \Google\Protobuf\Internal\Message +{ + /** + * A list of suggestions used for autocomplete recommendations in text input + * fields. + * + * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; + */ + private $items; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Suggestions\SuggestionItem[] $items + * A list of suggestions used for autocomplete recommendations in text input + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * A list of suggestions used for autocomplete recommendations in text input + * fields. + * + * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; + * @return RepeatedField<\Google\Apps\Card\V1\Suggestions\SuggestionItem> + */ + public function getItems() + { + return $this->items; + } + + /** + * A list of suggestions used for autocomplete recommendations in text input + * fields. + * + * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; + * @param \Google\Apps\Card\V1\Suggestions\SuggestionItem[] $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Suggestions\SuggestionItem::class); + $this->items = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php new file mode 100644 index 000000000000..e38011334b04 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php @@ -0,0 +1,80 @@ +google.apps.card.v1.Suggestions.SuggestionItem + */ +class SuggestionItem extends \Google\Protobuf\Internal\Message +{ + protected $content; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * The value of a suggested input to a text input field. This is + * equivalent to what users enter themselves. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The value of a suggested input to a text input field. This is + * equivalent to what users enter themselves. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->readOneof(1); + } + + public function hasText() + { + return $this->hasOneof(1); + } + + /** + * The value of a suggested input to a text input field. This is + * equivalent to what users enter themselves. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getContent() + { + return $this->whichOneof("content"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php new file mode 100644 index 000000000000..1702c233aff6 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php @@ -0,0 +1,587 @@ +google.apps.card.v1.TextInput + */ +class TextInput extends \Google\Protobuf\Internal\Message +{ + /** + * The name by which the text input is identified 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). + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The text that appears above the text input field in the user interface. + * Specify text that helps the user enter the information your app needs. + * For example, if you are asking someone's name, but specifically need their + * surname, write `surname` instead of `name`. + * Required if `hintText` is unspecified. Otherwise, optional. + * + * Generated from protobuf field string label = 2; + */ + protected $label = ''; + /** + * Text that appears below the text input field meant to assist users by + * prompting them to enter a certain value. This text is always visible. + * Required if `label` is unspecified. Otherwise, optional. + * + * Generated from protobuf field string hint_text = 3; + */ + protected $hint_text = ''; + /** + * 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). + * + * Generated from protobuf field string value = 4; + */ + protected $value = ''; + /** + * How a text input field appears in the user interface. + * For example, whether the field is single or multi-line. + * + * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; + */ + protected $type = 0; + /** + * What to do when a change occurs in the text input field. For example, a + * user adding to the field or deleting text. + * Examples of actions to take include running a custom function or opening + * a [dialog](https://developers.google.com/workspace/chat/dialogs) + * in Google Chat. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; + */ + protected $on_change_action = null; + /** + * Suggested values that users can enter. These values appear when users click + * inside the text input field. As users type, the suggested values + * dynamically filter to match what the users have typed. + * For example, a text input field for programming language might suggest + * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list + * of suggestions filters to show just `Java` and `JavaScript`. + * Suggested values help guide users to enter values that your app can make + * sense of. When referring to JavaScript, some users might enter `javascript` + * and others `java script`. Suggesting `JavaScript` can standardize how users + * interact with your app. + * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set + * to `MULTIPLE_LINE`. + * [Google Workspace + * add-ons and Chat apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; + */ + protected $initial_suggestions = null; + /** + * Optional. Specify what action to take when the text input field provides + * suggestions to users who interact with it. + * If unspecified, the suggestions are set by `initialSuggestions` and + * are processed by the client. + * If specified, the app takes the action specified here, such as running + * a custom function. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; + */ + protected $auto_complete_action = null; + /** + * Specify the input format validation necessary for this text field. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Validation validation = 11; + */ + protected $validation = null; + /** + * Text that appears in the text input field when the field is empty. + * Use this text to prompt users to enter a value. For example, `Enter a + * number from 0 to 100`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field string placeholder_text = 12; + */ + protected $placeholder_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name by which the text input is identified 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). + * @type string $label + * The text that appears above the text input field in the user interface. + * Specify text that helps the user enter the information your app needs. + * For example, if you are asking someone's name, but specifically need their + * surname, write `surname` instead of `name`. + * Required if `hintText` is unspecified. Otherwise, optional. + * @type string $hint_text + * Text that appears below the text input field meant to assist users by + * prompting them to enter a certain value. This text is always visible. + * Required if `label` is unspecified. Otherwise, optional. + * @type string $value + * 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). + * @type int $type + * How a text input field appears in the user interface. + * For example, whether the field is single or multi-line. + * @type \Google\Apps\Card\V1\Action $on_change_action + * What to do when a change occurs in the text input field. For example, a + * user adding to the field or deleting text. + * Examples of actions to take include running a custom function or opening + * a [dialog](https://developers.google.com/workspace/chat/dialogs) + * in Google Chat. + * @type \Google\Apps\Card\V1\Suggestions $initial_suggestions + * Suggested values that users can enter. These values appear when users click + * inside the text input field. As users type, the suggested values + * dynamically filter to match what the users have typed. + * For example, a text input field for programming language might suggest + * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list + * of suggestions filters to show just `Java` and `JavaScript`. + * Suggested values help guide users to enter values that your app can make + * sense of. When referring to JavaScript, some users might enter `javascript` + * and others `java script`. Suggesting `JavaScript` can standardize how users + * interact with your app. + * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set + * to `MULTIPLE_LINE`. + * [Google Workspace + * add-ons and Chat apps](https://developers.google.com/workspace/extend): + * @type \Google\Apps\Card\V1\Action $auto_complete_action + * Optional. Specify what action to take when the text input field provides + * suggestions to users who interact with it. + * If unspecified, the suggestions are set by `initialSuggestions` and + * are processed by the client. + * If specified, the app takes the action specified here, such as running + * a custom function. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * @type \Google\Apps\Card\V1\Validation $validation + * Specify the input format validation necessary for this text field. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * @type string $placeholder_text + * Text that appears in the text input field when the field is empty. + * Use this text to prompt users to enter a value. For example, `Enter a + * number from 0 to 100`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The name by which the text input is identified 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). + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name by which the text input is identified 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). + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The text that appears above the text input field in the user interface. + * Specify text that helps the user enter the information your app needs. + * For example, if you are asking someone's name, but specifically need their + * surname, write `surname` instead of `name`. + * Required if `hintText` is unspecified. Otherwise, optional. + * + * Generated from protobuf field string label = 2; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * The text that appears above the text input field in the user interface. + * Specify text that helps the user enter the information your app needs. + * For example, if you are asking someone's name, but specifically need their + * surname, write `surname` instead of `name`. + * Required if `hintText` is unspecified. Otherwise, optional. + * + * Generated from protobuf field string label = 2; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Text that appears below the text input field meant to assist users by + * prompting them to enter a certain value. This text is always visible. + * Required if `label` is unspecified. Otherwise, optional. + * + * Generated from protobuf field string hint_text = 3; + * @return string + */ + public function getHintText() + { + return $this->hint_text; + } + + /** + * Text that appears below the text input field meant to assist users by + * prompting them to enter a certain value. This text is always visible. + * Required if `label` is unspecified. Otherwise, optional. + * + * Generated from protobuf field string hint_text = 3; + * @param string $var + * @return $this + */ + public function setHintText($var) + { + GPBUtil::checkString($var, True); + $this->hint_text = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string value = 4; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * 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). + * + * Generated from protobuf field string value = 4; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * How a text input field appears in the user interface. + * For example, whether the field is single or multi-line. + * + * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * How a text input field appears in the user interface. + * For example, whether the field is single or multi-line. + * + * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\TextInput\Type::class); + $this->type = $var; + + return $this; + } + + /** + * What to do when a change occurs in the text input field. For example, a + * user adding to the field or deleting text. + * Examples of actions to take include running a custom function or opening + * a [dialog](https://developers.google.com/workspace/chat/dialogs) + * in Google Chat. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getOnChangeAction() + { + return $this->on_change_action; + } + + public function hasOnChangeAction() + { + return isset($this->on_change_action); + } + + public function clearOnChangeAction() + { + unset($this->on_change_action); + } + + /** + * What to do when a change occurs in the text input field. For example, a + * user adding to the field or deleting text. + * Examples of actions to take include running a custom function or opening + * a [dialog](https://developers.google.com/workspace/chat/dialogs) + * in Google Chat. + * + * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setOnChangeAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->on_change_action = $var; + + return $this; + } + + /** + * Suggested values that users can enter. These values appear when users click + * inside the text input field. As users type, the suggested values + * dynamically filter to match what the users have typed. + * For example, a text input field for programming language might suggest + * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list + * of suggestions filters to show just `Java` and `JavaScript`. + * Suggested values help guide users to enter values that your app can make + * sense of. When referring to JavaScript, some users might enter `javascript` + * and others `java script`. Suggesting `JavaScript` can standardize how users + * interact with your app. + * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set + * to `MULTIPLE_LINE`. + * [Google Workspace + * add-ons and Chat apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; + * @return \Google\Apps\Card\V1\Suggestions|null + */ + public function getInitialSuggestions() + { + return $this->initial_suggestions; + } + + public function hasInitialSuggestions() + { + return isset($this->initial_suggestions); + } + + public function clearInitialSuggestions() + { + unset($this->initial_suggestions); + } + + /** + * Suggested values that users can enter. These values appear when users click + * inside the text input field. As users type, the suggested values + * dynamically filter to match what the users have typed. + * For example, a text input field for programming language might suggest + * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list + * of suggestions filters to show just `Java` and `JavaScript`. + * Suggested values help guide users to enter values that your app can make + * sense of. When referring to JavaScript, some users might enter `javascript` + * and others `java script`. Suggesting `JavaScript` can standardize how users + * interact with your app. + * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set + * to `MULTIPLE_LINE`. + * [Google Workspace + * add-ons and Chat apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; + * @param \Google\Apps\Card\V1\Suggestions $var + * @return $this + */ + public function setInitialSuggestions($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Suggestions::class); + $this->initial_suggestions = $var; + + return $this; + } + + /** + * Optional. Specify what action to take when the text input field provides + * suggestions to users who interact with it. + * If unspecified, the suggestions are set by `initialSuggestions` and + * are processed by the client. + * If specified, the app takes the action specified here, such as running + * a custom function. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; + * @return \Google\Apps\Card\V1\Action|null + */ + public function getAutoCompleteAction() + { + return $this->auto_complete_action; + } + + public function hasAutoCompleteAction() + { + return isset($this->auto_complete_action); + } + + public function clearAutoCompleteAction() + { + unset($this->auto_complete_action); + } + + /** + * Optional. Specify what action to take when the text input field provides + * suggestions to users who interact with it. + * If unspecified, the suggestions are set by `initialSuggestions` and + * are processed by the client. + * If specified, the app takes the action specified here, such as running + * a custom function. + * [Google Workspace + * add-ons](https://developers.google.com/workspace/add-ons): + * + * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; + * @param \Google\Apps\Card\V1\Action $var + * @return $this + */ + public function setAutoCompleteAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); + $this->auto_complete_action = $var; + + return $this; + } + + /** + * Specify the input format validation necessary for this text field. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Validation validation = 11; + * @return \Google\Apps\Card\V1\Validation|null + */ + public function getValidation() + { + return $this->validation; + } + + public function hasValidation() + { + return isset($this->validation); + } + + public function clearValidation() + { + unset($this->validation); + } + + /** + * Specify the input format validation necessary for this text field. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Validation validation = 11; + * @param \Google\Apps\Card\V1\Validation $var + * @return $this + */ + public function setValidation($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Validation::class); + $this->validation = $var; + + return $this; + } + + /** + * Text that appears in the text input field when the field is empty. + * Use this text to prompt users to enter a value. For example, `Enter a + * number from 0 to 100`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field string placeholder_text = 12; + * @return string + */ + public function getPlaceholderText() + { + return $this->placeholder_text; + } + + /** + * Text that appears in the text input field when the field is empty. + * Use this text to prompt users to enter a value. For example, `Enter a + * number from 0 to 100`. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field string placeholder_text = 12; + * @param string $var + * @return $this + */ + public function setPlaceholderText($var) + { + GPBUtil::checkString($var, True); + $this->placeholder_text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php new file mode 100644 index 000000000000..d2454fc63362 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php @@ -0,0 +1,59 @@ +google.apps.card.v1.TextInput.Type + */ +class Type +{ + /** + * The text input field has a fixed height of one line. + * + * Generated from protobuf enum SINGLE_LINE = 0; + */ + const SINGLE_LINE = 0; + /** + * The text input field has a fixed height of multiple lines. + * + * Generated from protobuf enum MULTIPLE_LINE = 1; + */ + const MULTIPLE_LINE = 1; + + private static $valueToName = [ + self::SINGLE_LINE => 'SINGLE_LINE', + self::MULTIPLE_LINE => 'MULTIPLE_LINE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php new file mode 100644 index 000000000000..480095adcdf9 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php @@ -0,0 +1,175 @@ +google.apps.card.v1.TextParagraph + */ +class TextParagraph extends \Google\Protobuf\Internal\Message +{ + /** + * The text that's shown in the widget. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * The maximum number of lines of text that are displayed in the widget. If + * the text exceeds the specified maximum number of lines, the excess + * content is concealed behind a **show more** button. If the text is equal or + * shorter than the specified maximum number of lines, a **show more** button + * isn't displayed. + * The default value is 0, in which case + * all context is displayed. Negative values are ignored. + * + * Generated from protobuf field int32 max_lines = 2; + */ + protected $max_lines = 0; + /** + * The syntax of the text. If not set, the text is rendered as HTML. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4; + */ + protected $text_syntax = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * The text that's shown in the widget. + * @type int $max_lines + * The maximum number of lines of text that are displayed in the widget. If + * the text exceeds the specified maximum number of lines, the excess + * content is concealed behind a **show more** button. If the text is equal or + * shorter than the specified maximum number of lines, a **show more** button + * isn't displayed. + * The default value is 0, in which case + * all context is displayed. Negative values are ignored. + * @type int $text_syntax + * The syntax of the text. If not set, the text is rendered as HTML. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * The text that's shown in the widget. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The text that's shown in the widget. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * The maximum number of lines of text that are displayed in the widget. If + * the text exceeds the specified maximum number of lines, the excess + * content is concealed behind a **show more** button. If the text is equal or + * shorter than the specified maximum number of lines, a **show more** button + * isn't displayed. + * The default value is 0, in which case + * all context is displayed. Negative values are ignored. + * + * Generated from protobuf field int32 max_lines = 2; + * @return int + */ + public function getMaxLines() + { + return $this->max_lines; + } + + /** + * The maximum number of lines of text that are displayed in the widget. If + * the text exceeds the specified maximum number of lines, the excess + * content is concealed behind a **show more** button. If the text is equal or + * shorter than the specified maximum number of lines, a **show more** button + * isn't displayed. + * The default value is 0, in which case + * all context is displayed. Negative values are ignored. + * + * Generated from protobuf field int32 max_lines = 2; + * @param int $var + * @return $this + */ + public function setMaxLines($var) + { + GPBUtil::checkInt32($var); + $this->max_lines = $var; + + return $this; + } + + /** + * The syntax of the text. If not set, the text is rendered as HTML. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4; + * @return int + */ + public function getTextSyntax() + { + return $this->text_syntax; + } + + /** + * The syntax of the text. If not set, the text is rendered as HTML. + * [Google Chat apps](https://developers.google.com/workspace/chat): + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4; + * @param int $var + * @return $this + */ + public function setTextSyntax($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\TextParagraph\TextSyntax::class); + $this->text_syntax = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php new file mode 100644 index 000000000000..4a65b6a4c330 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php @@ -0,0 +1,62 @@ +google.apps.card.v1.TextParagraph.TextSyntax + */ +class TextSyntax +{ + /** + * The text is rendered as HTML if unspecified. + * + * Generated from protobuf enum TEXT_SYNTAX_UNSPECIFIED = 0; + */ + const TEXT_SYNTAX_UNSPECIFIED = 0; + /** + * The text is rendered as HTML. This is the default value. + * + * Generated from protobuf enum HTML = 1; + */ + const HTML = 1; + /** + * The text is rendered as Markdown. + * + * Generated from protobuf enum MARKDOWN = 2; + */ + const MARKDOWN = 2; + + private static $valueToName = [ + self::TEXT_SYNTAX_UNSPECIFIED => 'TEXT_SYNTAX_UNSPECIFIED', + self::HTML => 'HTML', + self::MARKDOWN => 'MARKDOWN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php new file mode 100644 index 000000000000..9d3a22f0b807 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php @@ -0,0 +1,123 @@ +google.apps.card.v1.Validation + */ +class Validation extends \Google\Protobuf\Internal\Message +{ + /** + * Specify the character limit for text input widgets. Note that this is + * only used for text input and is ignored for other widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field int32 character_limit = 1; + */ + protected $character_limit = 0; + /** + * Specify the type of the input widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Validation.InputType input_type = 2; + */ + protected $input_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $character_limit + * Specify the character limit for text input widgets. Note that this is + * only used for text input and is ignored for other widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * @type int $input_type + * Specify the type of the input widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Specify the character limit for text input widgets. Note that this is + * only used for text input and is ignored for other widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field int32 character_limit = 1; + * @return int + */ + public function getCharacterLimit() + { + return $this->character_limit; + } + + /** + * Specify the character limit for text input widgets. Note that this is + * only used for text input and is ignored for other widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field int32 character_limit = 1; + * @param int $var + * @return $this + */ + public function setCharacterLimit($var) + { + GPBUtil::checkInt32($var); + $this->character_limit = $var; + + return $this; + } + + /** + * Specify the type of the input widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Validation.InputType input_type = 2; + * @return int + */ + public function getInputType() + { + return $this->input_type; + } + + /** + * Specify the type of the input widgets. + * [Google Workspace add-ons and Chat + * apps](https://developers.google.com/workspace/extend): + * + * Generated from protobuf field .google.apps.card.v1.Validation.InputType input_type = 2; + * @param int $var + * @return $this + */ + public function setInputType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Validation\InputType::class); + $this->input_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php new file mode 100644 index 000000000000..fe87f3e2d774 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php @@ -0,0 +1,82 @@ +google.apps.card.v1.Validation.InputType + */ +class InputType +{ + /** + * Unspecified type. Do not use. + * + * Generated from protobuf enum INPUT_TYPE_UNSPECIFIED = 0; + */ + const INPUT_TYPE_UNSPECIFIED = 0; + /** + * Regular text that accepts all characters. + * + * Generated from protobuf enum TEXT = 1; + */ + const TEXT = 1; + /** + * An integer value. + * + * Generated from protobuf enum INTEGER = 2; + */ + const INTEGER = 2; + /** + * A float value. + * + * Generated from protobuf enum FLOAT = 3; + */ + const FLOAT = 3; + /** + * An email address. + * + * Generated from protobuf enum EMAIL = 4; + */ + const EMAIL = 4; + /** + * A emoji selected from system-provided emoji picker. + * + * Generated from protobuf enum EMOJI_PICKER = 5; + */ + const EMOJI_PICKER = 5; + + private static $valueToName = [ + self::INPUT_TYPE_UNSPECIFIED => 'INPUT_TYPE_UNSPECIFIED', + self::TEXT => 'TEXT', + self::INTEGER => 'INTEGER', + self::FLOAT => 'FLOAT', + self::EMAIL => 'EMAIL', + self::EMOJI_PICKER => 'EMOJI_PICKER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php new file mode 100644 index 000000000000..eaafb7d411a0 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php @@ -0,0 +1,1251 @@ +google.apps.card.v1.Widget + */ +class Widget extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies whether widgets align to the left, right, or center of a column. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; + */ + protected $horizontal_alignment = 0; + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph + * Displays a text paragraph. Supports simple HTML formatted text. For more + * information about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * For example, the following JSON creates a bolded text: + * ``` + * "textParagraph": { + * "text": " bold text" + * } + * ``` + * @type \Google\Apps\Card\V1\Image $image + * Displays an image. + * For example, the following JSON creates an image with alternative text: + * ``` + * "image": { + * "imageUrl": + * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", + * "altText": "Chat app avatar" + * } + * ``` + * @type \Google\Apps\Card\V1\DecoratedText $decorated_text + * Displays a decorated text item. + * For example, the following JSON creates a decorated text widget showing + * email address: + * ``` + * "decoratedText": { + * "icon": { + * "knownIcon": "EMAIL" + * }, + * "topLabel": "Email Address", + * "text": "sasha\@example.com", + * "bottomLabel": "This is a new Email address!", + * "switchControl": { + * "name": "has_send_welcome_email_to_sasha", + * "selected": false, + * "controlType": "CHECKBOX" + * } + * } + * ``` + * @type \Google\Apps\Card\V1\ButtonList $button_list + * A list of buttons. + * For example, the following JSON creates two buttons. The first + * is a blue text button and the second is an image button that opens a + * link: + * ``` + * "buttonList": { + * "buttons": [ + * { + * "text": "Edit", + * "color": { + * "red": 0, + * "green": 0, + * "blue": 1, + * }, + * "disabled": true, + * }, + * { + * "icon": { + * "knownIcon": "INVITE", + * "altText": "check calendar" + * }, + * "onClick": { + * "openLink": { + * "url": "https://example.com/calendar" + * } + * } + * } + * ] + * } + * ``` + * @type \Google\Apps\Card\V1\TextInput $text_input + * Displays a text box that users can type into. + * For example, the following JSON creates a text input for an email + * address: + * ``` + * "textInput": { + * "name": "mailing_address", + * "label": "Mailing Address" + * } + * ``` + * As another example, the following JSON creates a text input for a + * programming language with static suggestions: + * ``` + * "textInput": { + * "name": "preferred_programing_language", + * "label": "Preferred Language", + * "initialSuggestions": { + * "items": [ + * { + * "text": "C++" + * }, + * { + * "text": "Java" + * }, + * { + * "text": "JavaScript" + * }, + * { + * "text": "Python" + * } + * ] + * } + * } + * ``` + * @type \Google\Apps\Card\V1\SelectionInput $selection_input + * Displays a selection control that lets users select items. Selection + * controls can be checkboxes, radio buttons, switches, or dropdown menus. + * For example, the following JSON creates a dropdown menu that lets users + * choose a size: + * ``` + * "selectionInput": { + * "name": "size", + * "label": "Size" + * "type": "DROPDOWN", + * "items": [ + * { + * "text": "S", + * "value": "small", + * "selected": false + * }, + * { + * "text": "M", + * "value": "medium", + * "selected": true + * }, + * { + * "text": "L", + * "value": "large", + * "selected": false + * }, + * { + * "text": "XL", + * "value": "extra_large", + * "selected": false + * } + * ] + * } + * ``` + * @type \Google\Apps\Card\V1\DateTimePicker $date_time_picker + * Displays a widget that lets users input a date, time, or date and time. + * For example, the following JSON creates a date time picker to schedule an + * appointment: + * ``` + * "dateTimePicker": { + * "name": "appointment_time", + * "label": "Book your appointment at:", + * "type": "DATE_AND_TIME", + * "valueMsEpoch": 796435200000 + * } + * ``` + * @type \Google\Apps\Card\V1\Divider $divider + * Displays a horizontal line divider between widgets. + * For example, the following JSON creates a divider: + * ``` + * "divider": { + * } + * ``` + * @type \Google\Apps\Card\V1\Grid $grid + * Displays a grid with a collection of items. + * A grid supports any number of columns and items. The number of rows is + * determined by the upper bounds of the number items divided by the number + * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 + * items and 2 columns has 6 rows. + * [Google Workspace add-ons and + * Chat apps](https://developers.google.com/workspace/extend): + * For example, the following JSON creates a 2 column grid with a single + * item: + * ``` + * "grid": { + * "title": "A fine collection of items", + * "columnCount": 2, + * "borderStyle": { + * "type": "STROKE", + * "cornerRadius": 4 + * }, + * "items": [ + * { + * "image": { + * "imageUri": "https://www.example.com/image.png", + * "cropStyle": { + * "type": "SQUARE" + * }, + * "borderStyle": { + * "type": "STROKE" + * } + * }, + * "title": "An item", + * "textAlignment": "CENTER" + * } + * ], + * "onClick": { + * "openLink": { + * "url": "https://www.example.com" + * } + * } + * } + * ``` + * @type \Google\Apps\Card\V1\Columns $columns + * Displays up to 2 columns. + * To include more than 2 columns, or to use rows, use the `Grid` widget. + * For example, the following JSON creates 2 columns that each contain + * text paragraphs: + * ``` + * "columns": { + * "columnItems": [ + * { + * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", + * "horizontalAlignment": "CENTER", + * "verticalAlignment": "CENTER", + * "widgets": [ + * { + * "textParagraph": { + * "text": "First column text paragraph" + * } + * } + * ] + * }, + * { + * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", + * "horizontalAlignment": "CENTER", + * "verticalAlignment": "CENTER", + * "widgets": [ + * { + * "textParagraph": { + * "text": "Second column text paragraph" + * } + * } + * ] + * } + * ] + * } + * ``` + * @type \Google\Apps\Card\V1\Carousel $carousel + * A carousel contains a collection of nested widgets. + * For example, this is a JSON representation of a carousel that contains + * two text paragraphs. + * ``` + * { + * "widgets": [ + * { + * "textParagraph": { + * "text": "First text paragraph in the carousel." + * } + * }, + * { + * "textParagraph": { + * "text": "Second text paragraph in the carousel." + * } + * } + * ] + * } + * ``` + * @type \Google\Apps\Card\V1\ChipList $chip_list + * A list of chips. + * For example, the following JSON creates two chips. The first + * is a text chip and the second is an icon chip that opens a + * link: + * ``` + * "chipList": { + * "chips": [ + * { + * "text": "Edit", + * "disabled": true, + * }, + * { + * "icon": { + * "knownIcon": "INVITE", + * "altText": "check calendar" + * }, + * "onClick": { + * "openLink": { + * "url": "https://example.com/calendar" + * } + * } + * } + * ] + * } + * ``` + * @type int $horizontal_alignment + * Specifies whether widgets align to the left, right, or center of a column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); + parent::__construct($data); + } + + /** + * Displays a text paragraph. Supports simple HTML formatted text. For more + * information about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * For example, the following JSON creates a bolded text: + * ``` + * "textParagraph": { + * "text": " bold text" + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; + * @return \Google\Apps\Card\V1\TextParagraph|null + */ + public function getTextParagraph() + { + return $this->readOneof(1); + } + + public function hasTextParagraph() + { + return $this->hasOneof(1); + } + + /** + * Displays a text paragraph. Supports simple HTML formatted text. For more + * information about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * For example, the following JSON creates a bolded text: + * ``` + * "textParagraph": { + * "text": " bold text" + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; + * @param \Google\Apps\Card\V1\TextParagraph $var + * @return $this + */ + public function setTextParagraph($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Displays an image. + * For example, the following JSON creates an image with alternative text: + * ``` + * "image": { + * "imageUrl": + * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", + * "altText": "Chat app avatar" + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Image image = 2; + * @return \Google\Apps\Card\V1\Image|null + */ + public function getImage() + { + return $this->readOneof(2); + } + + public function hasImage() + { + return $this->hasOneof(2); + } + + /** + * Displays an image. + * For example, the following JSON creates an image with alternative text: + * ``` + * "image": { + * "imageUrl": + * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", + * "altText": "Chat app avatar" + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Image image = 2; + * @param \Google\Apps\Card\V1\Image $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Displays a decorated text item. + * For example, the following JSON creates a decorated text widget showing + * email address: + * ``` + * "decoratedText": { + * "icon": { + * "knownIcon": "EMAIL" + * }, + * "topLabel": "Email Address", + * "text": "sasha\@example.com", + * "bottomLabel": "This is a new Email address!", + * "switchControl": { + * "name": "has_send_welcome_email_to_sasha", + * "selected": false, + * "controlType": "CHECKBOX" + * } + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; + * @return \Google\Apps\Card\V1\DecoratedText|null + */ + public function getDecoratedText() + { + return $this->readOneof(3); + } + + public function hasDecoratedText() + { + return $this->hasOneof(3); + } + + /** + * Displays a decorated text item. + * For example, the following JSON creates a decorated text widget showing + * email address: + * ``` + * "decoratedText": { + * "icon": { + * "knownIcon": "EMAIL" + * }, + * "topLabel": "Email Address", + * "text": "sasha\@example.com", + * "bottomLabel": "This is a new Email address!", + * "switchControl": { + * "name": "has_send_welcome_email_to_sasha", + * "selected": false, + * "controlType": "CHECKBOX" + * } + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; + * @param \Google\Apps\Card\V1\DecoratedText $var + * @return $this + */ + public function setDecoratedText($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A list of buttons. + * For example, the following JSON creates two buttons. The first + * is a blue text button and the second is an image button that opens a + * link: + * ``` + * "buttonList": { + * "buttons": [ + * { + * "text": "Edit", + * "color": { + * "red": 0, + * "green": 0, + * "blue": 1, + * }, + * "disabled": true, + * }, + * { + * "icon": { + * "knownIcon": "INVITE", + * "altText": "check calendar" + * }, + * "onClick": { + * "openLink": { + * "url": "https://example.com/calendar" + * } + * } + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; + * @return \Google\Apps\Card\V1\ButtonList|null + */ + public function getButtonList() + { + return $this->readOneof(4); + } + + public function hasButtonList() + { + return $this->hasOneof(4); + } + + /** + * A list of buttons. + * For example, the following JSON creates two buttons. The first + * is a blue text button and the second is an image button that opens a + * link: + * ``` + * "buttonList": { + * "buttons": [ + * { + * "text": "Edit", + * "color": { + * "red": 0, + * "green": 0, + * "blue": 1, + * }, + * "disabled": true, + * }, + * { + * "icon": { + * "knownIcon": "INVITE", + * "altText": "check calendar" + * }, + * "onClick": { + * "openLink": { + * "url": "https://example.com/calendar" + * } + * } + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; + * @param \Google\Apps\Card\V1\ButtonList $var + * @return $this + */ + public function setButtonList($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Displays a text box that users can type into. + * For example, the following JSON creates a text input for an email + * address: + * ``` + * "textInput": { + * "name": "mailing_address", + * "label": "Mailing Address" + * } + * ``` + * As another example, the following JSON creates a text input for a + * programming language with static suggestions: + * ``` + * "textInput": { + * "name": "preferred_programing_language", + * "label": "Preferred Language", + * "initialSuggestions": { + * "items": [ + * { + * "text": "C++" + * }, + * { + * "text": "Java" + * }, + * { + * "text": "JavaScript" + * }, + * { + * "text": "Python" + * } + * ] + * } + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; + * @return \Google\Apps\Card\V1\TextInput|null + */ + public function getTextInput() + { + return $this->readOneof(5); + } + + public function hasTextInput() + { + return $this->hasOneof(5); + } + + /** + * Displays a text box that users can type into. + * For example, the following JSON creates a text input for an email + * address: + * ``` + * "textInput": { + * "name": "mailing_address", + * "label": "Mailing Address" + * } + * ``` + * As another example, the following JSON creates a text input for a + * programming language with static suggestions: + * ``` + * "textInput": { + * "name": "preferred_programing_language", + * "label": "Preferred Language", + * "initialSuggestions": { + * "items": [ + * { + * "text": "C++" + * }, + * { + * "text": "Java" + * }, + * { + * "text": "JavaScript" + * }, + * { + * "text": "Python" + * } + * ] + * } + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; + * @param \Google\Apps\Card\V1\TextInput $var + * @return $this + */ + public function setTextInput($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextInput::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Displays a selection control that lets users select items. Selection + * controls can be checkboxes, radio buttons, switches, or dropdown menus. + * For example, the following JSON creates a dropdown menu that lets users + * choose a size: + * ``` + * "selectionInput": { + * "name": "size", + * "label": "Size" + * "type": "DROPDOWN", + * "items": [ + * { + * "text": "S", + * "value": "small", + * "selected": false + * }, + * { + * "text": "M", + * "value": "medium", + * "selected": true + * }, + * { + * "text": "L", + * "value": "large", + * "selected": false + * }, + * { + * "text": "XL", + * "value": "extra_large", + * "selected": false + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; + * @return \Google\Apps\Card\V1\SelectionInput|null + */ + public function getSelectionInput() + { + return $this->readOneof(6); + } + + public function hasSelectionInput() + { + return $this->hasOneof(6); + } + + /** + * Displays a selection control that lets users select items. Selection + * controls can be checkboxes, radio buttons, switches, or dropdown menus. + * For example, the following JSON creates a dropdown menu that lets users + * choose a size: + * ``` + * "selectionInput": { + * "name": "size", + * "label": "Size" + * "type": "DROPDOWN", + * "items": [ + * { + * "text": "S", + * "value": "small", + * "selected": false + * }, + * { + * "text": "M", + * "value": "medium", + * "selected": true + * }, + * { + * "text": "L", + * "value": "large", + * "selected": false + * }, + * { + * "text": "XL", + * "value": "extra_large", + * "selected": false + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; + * @param \Google\Apps\Card\V1\SelectionInput $var + * @return $this + */ + public function setSelectionInput($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Displays a widget that lets users input a date, time, or date and time. + * For example, the following JSON creates a date time picker to schedule an + * appointment: + * ``` + * "dateTimePicker": { + * "name": "appointment_time", + * "label": "Book your appointment at:", + * "type": "DATE_AND_TIME", + * "valueMsEpoch": 796435200000 + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; + * @return \Google\Apps\Card\V1\DateTimePicker|null + */ + public function getDateTimePicker() + { + return $this->readOneof(7); + } + + public function hasDateTimePicker() + { + return $this->hasOneof(7); + } + + /** + * Displays a widget that lets users input a date, time, or date and time. + * For example, the following JSON creates a date time picker to schedule an + * appointment: + * ``` + * "dateTimePicker": { + * "name": "appointment_time", + * "label": "Book your appointment at:", + * "type": "DATE_AND_TIME", + * "valueMsEpoch": 796435200000 + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; + * @param \Google\Apps\Card\V1\DateTimePicker $var + * @return $this + */ + public function setDateTimePicker($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DateTimePicker::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Displays a horizontal line divider between widgets. + * For example, the following JSON creates a divider: + * ``` + * "divider": { + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Divider divider = 9; + * @return \Google\Apps\Card\V1\Divider|null + */ + public function getDivider() + { + return $this->readOneof(9); + } + + public function hasDivider() + { + return $this->hasOneof(9); + } + + /** + * Displays a horizontal line divider between widgets. + * For example, the following JSON creates a divider: + * ``` + * "divider": { + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Divider divider = 9; + * @param \Google\Apps\Card\V1\Divider $var + * @return $this + */ + public function setDivider($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Divider::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Displays a grid with a collection of items. + * A grid supports any number of columns and items. The number of rows is + * determined by the upper bounds of the number items divided by the number + * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 + * items and 2 columns has 6 rows. + * [Google Workspace add-ons and + * Chat apps](https://developers.google.com/workspace/extend): + * For example, the following JSON creates a 2 column grid with a single + * item: + * ``` + * "grid": { + * "title": "A fine collection of items", + * "columnCount": 2, + * "borderStyle": { + * "type": "STROKE", + * "cornerRadius": 4 + * }, + * "items": [ + * { + * "image": { + * "imageUri": "https://www.example.com/image.png", + * "cropStyle": { + * "type": "SQUARE" + * }, + * "borderStyle": { + * "type": "STROKE" + * } + * }, + * "title": "An item", + * "textAlignment": "CENTER" + * } + * ], + * "onClick": { + * "openLink": { + * "url": "https://www.example.com" + * } + * } + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Grid grid = 10; + * @return \Google\Apps\Card\V1\Grid|null + */ + public function getGrid() + { + return $this->readOneof(10); + } + + public function hasGrid() + { + return $this->hasOneof(10); + } + + /** + * Displays a grid with a collection of items. + * A grid supports any number of columns and items. The number of rows is + * determined by the upper bounds of the number items divided by the number + * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 + * items and 2 columns has 6 rows. + * [Google Workspace add-ons and + * Chat apps](https://developers.google.com/workspace/extend): + * For example, the following JSON creates a 2 column grid with a single + * item: + * ``` + * "grid": { + * "title": "A fine collection of items", + * "columnCount": 2, + * "borderStyle": { + * "type": "STROKE", + * "cornerRadius": 4 + * }, + * "items": [ + * { + * "image": { + * "imageUri": "https://www.example.com/image.png", + * "cropStyle": { + * "type": "SQUARE" + * }, + * "borderStyle": { + * "type": "STROKE" + * } + * }, + * "title": "An item", + * "textAlignment": "CENTER" + * } + * ], + * "onClick": { + * "openLink": { + * "url": "https://www.example.com" + * } + * } + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Grid grid = 10; + * @param \Google\Apps\Card\V1\Grid $var + * @return $this + */ + public function setGrid($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Grid::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Displays up to 2 columns. + * To include more than 2 columns, or to use rows, use the `Grid` widget. + * For example, the following JSON creates 2 columns that each contain + * text paragraphs: + * ``` + * "columns": { + * "columnItems": [ + * { + * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", + * "horizontalAlignment": "CENTER", + * "verticalAlignment": "CENTER", + * "widgets": [ + * { + * "textParagraph": { + * "text": "First column text paragraph" + * } + * } + * ] + * }, + * { + * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", + * "horizontalAlignment": "CENTER", + * "verticalAlignment": "CENTER", + * "widgets": [ + * { + * "textParagraph": { + * "text": "Second column text paragraph" + * } + * } + * ] + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Columns columns = 11; + * @return \Google\Apps\Card\V1\Columns|null + */ + public function getColumns() + { + return $this->readOneof(11); + } + + public function hasColumns() + { + return $this->hasOneof(11); + } + + /** + * Displays up to 2 columns. + * To include more than 2 columns, or to use rows, use the `Grid` widget. + * For example, the following JSON creates 2 columns that each contain + * text paragraphs: + * ``` + * "columns": { + * "columnItems": [ + * { + * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", + * "horizontalAlignment": "CENTER", + * "verticalAlignment": "CENTER", + * "widgets": [ + * { + * "textParagraph": { + * "text": "First column text paragraph" + * } + * } + * ] + * }, + * { + * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", + * "horizontalAlignment": "CENTER", + * "verticalAlignment": "CENTER", + * "widgets": [ + * { + * "textParagraph": { + * "text": "Second column text paragraph" + * } + * } + * ] + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Columns columns = 11; + * @param \Google\Apps\Card\V1\Columns $var + * @return $this + */ + public function setColumns($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Columns::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * A carousel contains a collection of nested widgets. + * For example, this is a JSON representation of a carousel that contains + * two text paragraphs. + * ``` + * { + * "widgets": [ + * { + * "textParagraph": { + * "text": "First text paragraph in the carousel." + * } + * }, + * { + * "textParagraph": { + * "text": "Second text paragraph in the carousel." + * } + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Carousel carousel = 13; + * @return \Google\Apps\Card\V1\Carousel|null + */ + public function getCarousel() + { + return $this->readOneof(13); + } + + public function hasCarousel() + { + return $this->hasOneof(13); + } + + /** + * A carousel contains a collection of nested widgets. + * For example, this is a JSON representation of a carousel that contains + * two text paragraphs. + * ``` + * { + * "widgets": [ + * { + * "textParagraph": { + * "text": "First text paragraph in the carousel." + * } + * }, + * { + * "textParagraph": { + * "text": "Second text paragraph in the carousel." + * } + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.Carousel carousel = 13; + * @param \Google\Apps\Card\V1\Carousel $var + * @return $this + */ + public function setCarousel($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Carousel::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * A list of chips. + * For example, the following JSON creates two chips. The first + * is a text chip and the second is an icon chip that opens a + * link: + * ``` + * "chipList": { + * "chips": [ + * { + * "text": "Edit", + * "disabled": true, + * }, + * { + * "icon": { + * "knownIcon": "INVITE", + * "altText": "check calendar" + * }, + * "onClick": { + * "openLink": { + * "url": "https://example.com/calendar" + * } + * } + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 14; + * @return \Google\Apps\Card\V1\ChipList|null + */ + public function getChipList() + { + return $this->readOneof(14); + } + + public function hasChipList() + { + return $this->hasOneof(14); + } + + /** + * A list of chips. + * For example, the following JSON creates two chips. The first + * is a text chip and the second is an icon chip that opens a + * link: + * ``` + * "chipList": { + * "chips": [ + * { + * "text": "Edit", + * "disabled": true, + * }, + * { + * "icon": { + * "knownIcon": "INVITE", + * "altText": "check calendar" + * }, + * "onClick": { + * "openLink": { + * "url": "https://example.com/calendar" + * } + * } + * } + * ] + * } + * ``` + * + * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 14; + * @param \Google\Apps\Card\V1\ChipList $var + * @return $this + */ + public function setChipList($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ChipList::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Specifies whether widgets align to the left, right, or center of a column. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; + * @return int + */ + public function getHorizontalAlignment() + { + return $this->horizontal_alignment; + } + + /** + * Specifies whether widgets align to the left, right, or center of a column. + * + * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; + * @param int $var + * @return $this + */ + public function setHorizontalAlignment($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); + $this->horizontal_alignment = $var; + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php new file mode 100644 index 000000000000..89da45999785 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php @@ -0,0 +1,73 @@ +google.apps.card.v1.Widget.HorizontalAlignment + */ +class HorizontalAlignment +{ + /** + * Don't use. Unspecified. + * + * Generated from protobuf enum HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + */ + const HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + /** + * Default value. Aligns widgets to the start position of the column. For + * left-to-right layouts, aligns to the left. For right-to-left layouts, + * aligns to the right. + * + * Generated from protobuf enum START = 1; + */ + const START = 1; + /** + * Aligns widgets to the center of the column. + * + * Generated from protobuf enum CENTER = 2; + */ + const CENTER = 2; + /** + * Aligns widgets to the end position of the column. For left-to-right + * layouts, aligns widgets to the right. For right-to-left layouts, aligns + * widgets to the left. + * + * Generated from protobuf enum END = 3; + */ + const END = 3; + + private static $valueToName = [ + self::HORIZONTAL_ALIGNMENT_UNSPECIFIED => 'HORIZONTAL_ALIGNMENT_UNSPECIFIED', + self::START => 'START', + self::CENTER => 'CENTER', + self::END => 'END', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php new file mode 100644 index 000000000000..88f71e82a4b4 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php @@ -0,0 +1,58 @@ +google.apps.card.v1.Widget.ImageType + */ +class ImageType +{ + /** + * Default value. Applies a square mask to the image. For example, a 4x3 + * image becomes 3x3. + * + * Generated from protobuf enum SQUARE = 0; + */ + const SQUARE = 0; + /** + * Applies a circular mask to the image. For example, a 4x3 image becomes a + * circle with a diameter of 3. + * + * Generated from protobuf enum CIRCLE = 1; + */ + const CIRCLE = 1; + + private static $valueToName = [ + self::SQUARE => 'SQUARE', + self::CIRCLE => 'CIRCLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php new file mode 100644 index 000000000000..5fc4ddd694a0 --- /dev/null +++ b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php @@ -0,0 +1,68 @@ +google.apps.card.v1.Widget.VerticalAlignment + */ +class VerticalAlignment +{ + /** + * Unspecified type. Do not use. + * + * Generated from protobuf enum VERTICAL_ALIGNMENT_UNSPECIFIED = 0; + */ + const VERTICAL_ALIGNMENT_UNSPECIFIED = 0; + /** + * Alignment to the top position. + * + * Generated from protobuf enum TOP = 1; + */ + const TOP = 1; + /** + * Alignment to the middle position. + * + * Generated from protobuf enum MIDDLE = 2; + */ + const MIDDLE = 2; + /** + * Alignment to the bottom position. + * + * Generated from protobuf enum BOTTOM = 3; + */ + const BOTTOM = 3; + + private static $valueToName = [ + self::VERTICAL_ALIGNMENT_UNSPECIFIED => 'VERTICAL_ALIGNMENT_UNSPECIFIED', + self::TOP => 'TOP', + self::MIDDLE => 'MIDDLE', + self::BOTTOM => 'BOTTOM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php new file mode 100644 index 000000000000..feda69ee5614 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xBD\x02\x0A\"google/chat/v1/action_status.proto\x12\x0Egoogle.chat.v1\"R\x0A\x0CActionStatus\x12%\x0A\x0Bstatus_code\x18\x01 \x01(\x0E2\x10.google.rpc.Code\x12\x1B\x0A\x13user_facing_message\x18\x02 \x01(\x09B\xAA\x01\x0A\x12com.google.chat.v1B\x11ActionStatusProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php new file mode 100644 index 000000000000..3a6b49f7e78c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xB7\x13\x0A\x1Fgoogle/chat/v1/annotation.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\x19google/chat/v1/user.proto\"\x82\x03\x0A\x0AAnnotation\x12,\x0A\x04type\x18\x01 \x01(\x0E2\x1E.google.chat.v1.AnnotationType\x12\x18\x0A\x0Bstart_index\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0E\x0A\x06length\x18\x03 \x01(\x05\x12;\x0A\x0Cuser_mention\x18\x04 \x01(\x0B2#.google.chat.v1.UserMentionMetadataH\x00\x12=\x0A\x0Dslash_command\x18\x05 \x01(\x0B2\$.google.chat.v1.SlashCommandMetadataH\x00\x12>\x0A\x12rich_link_metadata\x18\x06 \x01(\x0B2 .google.chat.v1.RichLinkMetadataH\x00\x12D\x0A\x15custom_emoji_metadata\x18\x07 \x01(\x0B2#.google.chat.v1.CustomEmojiMetadataH\x00B\x0A\x0A\x08metadataB\x0E\x0A\x0C_start_index\"\xA5\x01\x0A\x13UserMentionMetadata\x12\"\x0A\x04user\x18\x01 \x01(\x0B2\x14.google.chat.v1.User\x126\x0A\x04type\x18\x02 \x01(\x0E2(.google.chat.v1.UserMentionMetadata.Type\"2\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0B\x0A\x07MENTION\x10\x02\"\xE8\x01\x0A\x14SlashCommandMetadata\x12!\x0A\x03bot\x18\x01 \x01(\x0B2\x14.google.chat.v1.User\x127\x0A\x04type\x18\x02 \x01(\x0E2).google.chat.v1.SlashCommandMetadata.Type\x12\x14\x0A\x0Ccommand_name\x18\x03 \x01(\x09\x12\x12\x0A\x0Acommand_id\x18\x04 \x01(\x03\x12\x17\x0A\x0Ftriggers_dialog\x18\x05 \x01(\x08\"1\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06INVOKE\x10\x02\"\x81\x04\x0A\x10RichLinkMetadata\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12E\x0A\x0Erich_link_type\x18\x02 \x01(\x0E2-.google.chat.v1.RichLinkMetadata.RichLinkType\x128\x0A\x0Fdrive_link_data\x18\x03 \x01(\x0B2\x1D.google.chat.v1.DriveLinkDataH\x00\x12A\x0A\x14chat_space_link_data\x18\x04 \x01(\x0B2!.google.chat.v1.ChatSpaceLinkDataH\x00\x12A\x0A\x14meet_space_link_data\x18\x05 \x01(\x0B2!.google.chat.v1.MeetSpaceLinkDataH\x00\x12I\x0A\x18calendar_event_link_data\x18\x06 \x01(\x0B2%.google.chat.v1.CalendarEventLinkDataH\x00\"\x85\x01\x0A\x0CRichLinkType\x12\x1E\x0A\x1ARICH_LINK_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ADRIVE_FILE\x10\x01\x12\x0E\x0A\x0ACHAT_SPACE\x10\x02\x12\x11\x0A\x0DGMAIL_MESSAGE\x10\x03\x12\x0E\x0A\x0AMEET_SPACE\x10\x04\x12\x12\x0A\x0ECALENDAR_EVENT\x10\x05B\x06\x0A\x04data\"H\x0A\x13CustomEmojiMetadata\x121\x0A\x0Ccustom_emoji\x18\x01 \x01(\x0B2\x1B.google.chat.v1.CustomEmoji\"X\x0A\x0DDriveLinkData\x124\x0A\x0Edrive_data_ref\x18\x01 \x01(\x0B2\x1C.google.chat.v1.DriveDataRef\x12\x11\x0A\x09mime_type\x18\x02 \x01(\x09\"\xA6\x01\x0A\x11ChatSpaceLinkData\x12-\x0A\x05space\x18\x01 \x01(\x09B\x1E\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12/\x0A\x06thread\x18\x02 \x01(\x09B\x1F\xFAA\x1C\x0A\x1Achat.googleapis.com/Thread\x121\x0A\x07message\x18\x03 \x01(\x09B \xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\"\xB8\x02\x0A\x11MeetSpaceLinkData\x12\x14\x0A\x0Cmeeting_code\x18\x01 \x01(\x09\x124\x0A\x04type\x18\x02 \x01(\x0E2&.google.chat.v1.MeetSpaceLinkData.Type\x12M\x0A\x0Dhuddle_status\x18\x03 \x01(\x0E2..google.chat.v1.MeetSpaceLinkData.HuddleStatusB\x06\xE0A\x01\xE0A\x03\"5\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07MEETING\x10\x01\x12\x0A\x0A\x06HUDDLE\x10\x02\"Q\x0A\x0CHuddleStatus\x12\x1D\x0A\x19HUDDLE_STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STARTED\x10\x01\x12\x09\x0A\x05ENDED\x10\x02\x12\x0A\x0A\x06MISSED\x10\x03\">\x0A\x15CalendarEventLinkData\x12\x13\x0A\x0Bcalendar_id\x18\x01 \x01(\x09\x12\x10\x0A\x08event_id\x18\x02 \x01(\x09*w\x0A\x0EAnnotationType\x12\x1F\x0A\x1BANNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CUSER_MENTION\x10\x01\x12\x11\x0A\x0DSLASH_COMMAND\x10\x02\x12\x0D\x0A\x09RICH_LINK\x10\x03\x12\x10\x0A\x0CCUSTOM_EMOJI\x10\x04B\xA8\x01\x0A\x12com.google.chat.v1B\x0FAnnotationProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php new file mode 100644 index 000000000000..6eea3a62486a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\x8E\x09\x0A\x1Fgoogle/chat/v1/attachment.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\"\xFD\x03\x0A\x0AAttachment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Ccontent_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Ccontent_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x13attachment_data_ref\x18\x04 \x01(\x0B2!.google.chat.v1.AttachmentDataRefB\x03\xE0A\x01H\x00\x12;\x0A\x0Edrive_data_ref\x18\x07 \x01(\x0B2\x1C.google.chat.v1.DriveDataRefB\x03\xE0A\x03H\x00\x12\x1A\x0A\x0Dthumbnail_uri\x18\x05 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdownload_uri\x18\x06 \x01(\x09B\x03\xE0A\x03\x126\x0A\x06source\x18\x09 \x01(\x0E2!.google.chat.v1.Attachment.SourceB\x03\xE0A\x03\"F\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ADRIVE_FILE\x10\x01\x12\x14\x0A\x10UPLOADED_CONTENT\x10\x02:_\xEAA\\\x0A\x1Echat.googleapis.com/Attachment\x12:spaces/{space}/messages/{message}/attachments/{attachment}B\x0A\x0A\x08data_ref\"%\x0A\x0CDriveDataRef\x12\x15\x0A\x0Ddrive_file_id\x18\x02 \x01(\x09\"U\x0A\x11AttachmentDataRef\x12\x1A\x0A\x0Dresource_name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17attachment_upload_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x14GetAttachmentRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/Attachment\"e\x0A\x17UploadAttachmentRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12\x15\x0A\x08filename\x18\x04 \x01(\x09B\x03\xE0A\x02\"Z\x0A\x18UploadAttachmentResponse\x12>\x0A\x13attachment_data_ref\x18\x01 \x01(\x0B2!.google.chat.v1.AttachmentDataRefB\xA8\x01\x0A\x12com.google.chat.v1B\x0FAttachmentProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php new file mode 100644 index 000000000000..eb9d175063d9 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php @@ -0,0 +1,38 @@ +internalAddGeneratedFile( + "\x0A\xEEE\x0A!google/chat/v1/chat_service.proto\x12\x0Egoogle.chat.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A\x1Fgoogle/chat/v1/membership.proto\x1A\x1Cgoogle/chat/v1/message.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\x1Cgoogle/chat/v1/section.proto\x1A\x1Agoogle/chat/v1/space.proto\x1A google/chat/v1/space_event.proto\x1A/google/chat/v1/space_notification_setting.proto\x1A%google/chat/v1/space_read_state.proto\x1A google/chat/v1/space_setup.proto\x1A&google/chat/v1/thread_read_state.proto\x1A\x1Bgoogle/protobuf/empty.proto2\xD1@\x0A\x0BChatService\x12\x9B\x01\x0A\x0DCreateMessage\x12\$.google.chat.v1.CreateMessageRequest\x1A\x17.google.chat.v1.Message\"K\xDAA\x19parent,message,message_id\x82\xD3\xE4\x93\x02)\"\x1E/v1/{parent=spaces/*}/messages:\x07message\x12\x8A\x01\x0A\x0CListMessages\x12#.google.chat.v1.ListMessagesRequest\x1A\$.google.chat.v1.ListMessagesResponse\"/\xDAA\x06parent\x82\xD3\xE4\x93\x02 \x12\x1E/v1/{parent=spaces/*}/messages\x12\x92\x01\x0A\x0FListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1A'.google.chat.v1.ListMembershipsResponse\".\xDAA\x06parent\x82\xD3\xE4\x93\x02\x1F\x12\x1D/v1/{parent=spaces/*}/members\x12\x7F\x0A\x0DGetMembership\x12\$.google.chat.v1.GetMembershipRequest\x1A\x1A.google.chat.v1.Membership\",\xDAA\x04name\x82\xD3\xE4\x93\x02\x1F\x12\x1D/v1/{name=spaces/*/members/*}\x12w\x0A\x0AGetMessage\x12!.google.chat.v1.GetMessageRequest\x1A\x17.google.chat.v1.Message\"-\xDAA\x04name\x82\xD3\xE4\x93\x02 \x12\x1E/v1/{name=spaces/*/messages/*}\x12\xD1\x01\x0A\x0DUpdateMessage\x12\$.google.chat.v1.UpdateMessageRequest\x1A\x17.google.chat.v1.Message\"\x80\x01\xDAA\x13message,update_mask\x82\xD3\xE4\x93\x02d\x1A&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\x0A\x0DDeleteMessage\x12\$.google.chat.v1.DeleteMessageRequest\x1A\x16.google.protobuf.Empty\"-\xDAA\x04name\x82\xD3\xE4\x93\x02 *\x1E/v1/{name=spaces/*/messages/*}\x12\x8E\x01\x0A\x0DGetAttachment\x12\$.google.chat.v1.GetAttachmentRequest\x1A\x1A.google.chat.v1.Attachment\";\xDAA\x04name\x82\xD3\xE4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9A\x01\x0A\x10UploadAttachment\x12'.google.chat.v1.UploadAttachmentRequest\x1A(.google.chat.v1.UploadAttachmentResponse\"3\x82\xD3\xE4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\x0A\x0AListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1A\".google.chat.v1.ListSpacesResponse\"\x15\xDAA\x00\x82\xD3\xE4\x93\x02\x0C\x12\x0A/v1/spaces\x12w\x0A\x0CSearchSpaces\x12#.google.chat.v1.SearchSpacesRequest\x1A\$.google.chat.v1.SearchSpacesResponse\"\x1C\xDAA\x00\x82\xD3\xE4\x93\x02\x13\x12\x11/v1/spaces:search\x12f\x0A\x08GetSpace\x12\x1F.google.chat.v1.GetSpaceRequest\x1A\x15.google.chat.v1.Space\"\"\xDAA\x04name\x82\xD3\xE4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\x0A\x0BCreateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1A\x15.google.chat.v1.Space\"!\xDAA\x05space\x82\xD3\xE4\x93\x02\x13\"\x0A/v1/spaces:\x05space\x12c\x0A\x0ASetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1A\x15.google.chat.v1.Space\"\x1B\x82\xD3\xE4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\x0A\x0BUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1A\x15.google.chat.v1.Space\"<\xDAA\x11space,update_mask\x82\xD3\xE4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\x0A\x0BDeleteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1A\x16.google.protobuf.Empty\"\"\xDAA\x04name\x82\xD3\xE4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9D\x01\x0A\x13CompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1A+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xD3\xE4\x93\x02'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\x0A\x11FindDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1A\x15.google.chat.v1.Space\"\$\x82\xD3\xE4\x93\x02\x1E\x12\x1C/v1/spaces:findDirectMessage\x12\x82\x01\x0A\x0EFindGroupChats\x12%.google.chat.v1.FindGroupChatsRequest\x1A&.google.chat.v1.FindGroupChatsResponse\"!\x82\xD3\xE4\x93\x02\x1B\x12\x19/v1/spaces:findGroupChats\x12\x9E\x01\x0A\x10CreateMembership\x12'.google.chat.v1.CreateMembershipRequest\x1A\x1A.google.chat.v1.Membership\"E\xDAA\x11parent,membership\x82\xD3\xE4\x93\x02+\"\x1D/v1/{parent=spaces/*}/members:\x0Amembership\x12\xAE\x01\x0A\x10UpdateMembership\x12'.google.chat.v1.UpdateMembershipRequest\x1A\x1A.google.chat.v1.Membership\"U\xDAA\x16membership,update_mask\x82\xD3\xE4\x93\x0262(/v1/{membership.name=spaces/*/members/*}:\x0Amembership\x12\x85\x01\x0A\x10DeleteMembership\x12'.google.chat.v1.DeleteMembershipRequest\x1A\x1A.google.chat.v1.Membership\",\xDAA\x04name\x82\xD3\xE4\x93\x02\x1F*\x1D/v1/{name=spaces/*/members/*}\x12\xA1\x01\x0A\x0ECreateReaction\x12%.google.chat.v1.CreateReactionRequest\x1A\x18.google.chat.v1.Reaction\"N\xDAA\x0Fparent,reaction\x82\xD3\xE4\x93\x026\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\x0A\x0DListReactions\x12\$.google.chat.v1.ListReactionsRequest\x1A%.google.chat.v1.ListReactionsResponse\";\xDAA\x06parent\x82\xD3\xE4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8A\x01\x0A\x0EDeleteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1A\x16.google.protobuf.Empty\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x91\x01\x0A\x11CreateCustomEmoji\x12(.google.chat.v1.CreateCustomEmojiRequest\x1A\x1B.google.chat.v1.CustomEmoji\"5\xDAA\x0Ccustom_emoji\x82\xD3\xE4\x93\x02 \"\x10/v1/customEmojis:\x0Ccustom_emoji\x12~\x0A\x0EGetCustomEmoji\x12%.google.chat.v1.GetCustomEmojiRequest\x1A\x1B.google.chat.v1.CustomEmoji\"(\xDAA\x04name\x82\xD3\xE4\x93\x02\x1B\x12\x19/v1/{name=customEmojis/*}\x12\x82\x01\x0A\x10ListCustomEmojis\x12'.google.chat.v1.ListCustomEmojisRequest\x1A(.google.chat.v1.ListCustomEmojisResponse\"\x1B\xDAA\x00\x82\xD3\xE4\x93\x02\x12\x12\x10/v1/customEmojis\x12\x7F\x0A\x11DeleteCustomEmoji\x12(.google.chat.v1.DeleteCustomEmojiRequest\x1A\x16.google.protobuf.Empty\"(\xDAA\x04name\x82\xD3\xE4\x93\x02\x1B*\x19/v1/{name=customEmojis/*}\x12\x98\x01\x0A\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1A\x1E.google.chat.v1.SpaceReadState\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xD9\x01\x0A\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1A\x1E.google.chat.v1.SpaceReadState\"t\xDAA\x1Cspace_read_state,update_mask\x82\xD3\xE4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xA6\x01\x0A\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1A\x1F.google.chat.v1.ThreadReadState\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\x83\x01\x0A\x0DGetSpaceEvent\x12\$.google.chat.v1.GetSpaceEventRequest\x1A\x1A.google.chat.v1.SpaceEvent\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#\x12!/v1/{name=spaces/*/spaceEvents/*}\x12\x9D\x01\x0A\x0FListSpaceEvents\x12&.google.chat.v1.ListSpaceEventsRequest\x1A'.google.chat.v1.ListSpaceEventsResponse\"9\xDAA\x0Dparent,filter\x82\xD3\xE4\x93\x02#\x12!/v1/{parent=spaces/*}/spaceEvents\x12\xC0\x01\x0A\x1BGetSpaceNotificationSetting\x122.google.chat.v1.GetSpaceNotificationSettingRequest\x1A(.google.chat.v1.SpaceNotificationSetting\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=users/*/spaces/*/spaceNotificationSetting}\x12\xA0\x02\x0A\x1EUpdateSpaceNotificationSetting\x125.google.chat.v1.UpdateSpaceNotificationSettingRequest\x1A(.google.chat.v1.SpaceNotificationSetting\"\x9C\x01\xDAA&space_notification_setting,update_mask\x82\xD3\xE4\x93\x02m2O/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}:\x1Aspace_notification_setting\x12\x8F\x01\x0A\x0DCreateSection\x12\$.google.chat.v1.CreateSectionRequest\x1A\x17.google.chat.v1.Section\"?\xDAA\x0Eparent,section\x82\xD3\xE4\x93\x02(\"\x1D/v1/{parent=users/*}/sections:\x07section\x12{\x0A\x0DDeleteSection\x12\$.google.chat.v1.DeleteSectionRequest\x1A\x16.google.protobuf.Empty\",\xDAA\x04name\x82\xD3\xE4\x93\x02\x1F*\x1D/v1/{name=users/*/sections/*}\x12\x9C\x01\x0A\x0DUpdateSection\x12\$.google.chat.v1.UpdateSectionRequest\x1A\x17.google.chat.v1.Section\"L\xDAA\x13section,update_mask\x82\xD3\xE4\x93\x0202%/v1/{section.name=users/*/sections/*}:\x07section\x12\x89\x01\x0A\x0CListSections\x12#.google.chat.v1.ListSectionsRequest\x1A\$.google.chat.v1.ListSectionsResponse\".\xDAA\x06parent\x82\xD3\xE4\x93\x02\x1F\x12\x1D/v1/{parent=users/*}/sections\x12\x95\x01\x0A\x0FPositionSection\x12&.google.chat.v1.PositionSectionRequest\x1A'.google.chat.v1.PositionSectionResponse\"1\x82\xD3\xE4\x93\x02+\"&/v1/{name=users/*/sections/*}:position:\x01*\x12\x9D\x01\x0A\x10ListSectionItems\x12'.google.chat.v1.ListSectionItemsRequest\x1A(.google.chat.v1.ListSectionItemsResponse\"6\xDAA\x06parent\x82\xD3\xE4\x93\x02'\x12%/v1/{parent=users/*/sections/*}/items\x12\xAF\x01\x0A\x0FMoveSectionItem\x12&.google.chat.v1.MoveSectionItemRequest\x1A'.google.chat.v1.MoveSectionItemResponse\"K\xDAA\x13name,target_section\x82\xD3\xE4\x93\x02/\"*/v1/{name=users/*/sections/*/items/*}:move:\x01*\x1A\xBE\x0E\xCAA\x13chat.googleapis.com\xD2A\xA4\x0Ehttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettingsB\xA9\x01\x0A\x12com.google.chat.v1B\x10ChatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php new file mode 100644 index 000000000000..85e235cd204e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xFC\x06\x0A%google/chat/v1/contextual_addon.proto\x12\x0Egoogle.chat.v1\"\x8A\x05\x0A\x15ContextualAddOnMarkup\x1A\xF0\x04\x0A\x04Card\x12E\x0A\x06header\x18\x01 \x01(\x0B25.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader\x12D\x0A\x08sections\x18\x02 \x03(\x0B22.google.chat.v1.ContextualAddOnMarkup.Card.Section\x12K\x0A\x0Ccard_actions\x18\x03 \x03(\x0B25.google.chat.v1.ContextualAddOnMarkup.Card.CardAction\x12\x0C\x0A\x04name\x18\x04 \x01(\x09\x1A\xD9\x01\x0A\x0ACardHeader\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x10\x0A\x08subtitle\x18\x02 \x01(\x09\x12U\x0A\x0Bimage_style\x18\x03 \x01(\x0E2@.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle\x12\x11\x0A\x09image_url\x18\x04 \x01(\x09\"@\x0A\x0AImageStyle\x12\x1B\x0A\x17IMAGE_STYLE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05IMAGE\x10\x01\x12\x0A\x0A\x06AVATAR\x10\x02\x1AH\x0A\x07Section\x12\x0E\x0A\x06header\x18\x01 \x01(\x09\x12-\x0A\x07widgets\x18\x02 \x03(\x0B2\x1C.google.chat.v1.WidgetMarkup\x1AZ\x0A\x0ACardAction\x12\x14\x0A\x0Caction_label\x18\x01 \x01(\x09\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClickB\xAD\x01\x0A\x12com.google.chat.v1B\x14ContextualAddOnProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php new file mode 100644 index 000000000000..223b57565c4c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xFD\x03\x0A&google/chat/v1/deletion_metadata.proto\x12\x0Egoogle.chat.v1\"\x89\x02\x0A\x10DeletionMetadata\x12D\x0A\x0Ddeletion_type\x18\x01 \x01(\x0E2-.google.chat.v1.DeletionMetadata.DeletionType\"\xAE\x01\x0A\x0CDeletionType\x12\x1D\x0A\x19DELETION_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07CREATOR\x10\x01\x12\x0F\x0A\x0BSPACE_OWNER\x10\x02\x12\x09\x0A\x05ADMIN\x10\x03\x12\x16\x0A\x12APP_MESSAGE_EXPIRY\x10\x04\x12\x13\x0A\x0FCREATOR_VIA_APP\x10\x05\x12\x17\x0A\x13SPACE_OWNER_VIA_APP\x10\x06\x12\x10\x0A\x0CSPACE_MEMBER\x10\x07B\xAE\x01\x0A\x12com.google.chat.v1B\x15DeletionMetadataProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php new file mode 100644 index 000000000000..a40b950e1ebd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xB9\x0E\x0A\"google/chat/v1/event_payload.proto\x12\x0Egoogle.chat.v1\x1A\x1Fgoogle/chat/v1/membership.proto\x1A\x1Cgoogle/chat/v1/message.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\x1Agoogle/chat/v1/space.proto\"L\x0A\x1AMembershipCreatedEventData\x12.\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.Membership\"L\x0A\x1AMembershipDeletedEventData\x12.\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.Membership\"L\x0A\x1AMembershipUpdatedEventData\x12.\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.Membership\"b\x0A\x1FMembershipBatchCreatedEventData\x12?\x0A\x0Bmemberships\x18\x01 \x03(\x0B2*.google.chat.v1.MembershipCreatedEventData\"b\x0A\x1FMembershipBatchUpdatedEventData\x12?\x0A\x0Bmemberships\x18\x01 \x03(\x0B2*.google.chat.v1.MembershipUpdatedEventData\"b\x0A\x1FMembershipBatchDeletedEventData\x12?\x0A\x0Bmemberships\x18\x01 \x03(\x0B2*.google.chat.v1.MembershipDeletedEventData\"C\x0A\x17MessageCreatedEventData\x12(\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.Message\"C\x0A\x17MessageUpdatedEventData\x12(\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.Message\"C\x0A\x17MessageDeletedEventData\x12(\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.Message\"Y\x0A\x1CMessageBatchCreatedEventData\x129\x0A\x08messages\x18\x01 \x03(\x0B2'.google.chat.v1.MessageCreatedEventData\"Y\x0A\x1CMessageBatchUpdatedEventData\x129\x0A\x08messages\x18\x01 \x03(\x0B2'.google.chat.v1.MessageUpdatedEventData\"Y\x0A\x1CMessageBatchDeletedEventData\x129\x0A\x08messages\x18\x01 \x03(\x0B2'.google.chat.v1.MessageDeletedEventData\"=\x0A\x15SpaceUpdatedEventData\x12\$\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.Space\"S\x0A\x1ASpaceBatchUpdatedEventData\x125\x0A\x06spaces\x18\x01 \x03(\x0B2%.google.chat.v1.SpaceUpdatedEventData\"F\x0A\x18ReactionCreatedEventData\x12*\x0A\x08reaction\x18\x01 \x01(\x0B2\x18.google.chat.v1.Reaction\"F\x0A\x18ReactionDeletedEventData\x12*\x0A\x08reaction\x18\x01 \x01(\x0B2\x18.google.chat.v1.Reaction\"\\\x0A\x1DReactionBatchCreatedEventData\x12;\x0A\x09reactions\x18\x01 \x03(\x0B2(.google.chat.v1.ReactionCreatedEventData\"\\\x0A\x1DReactionBatchDeletedEventData\x12;\x0A\x09reactions\x18\x01 \x03(\x0B2(.google.chat.v1.ReactionDeletedEventDataB\xAA\x01\x0A\x12com.google.chat.v1B\x11EventPayloadProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php new file mode 100644 index 000000000000..ff40baa1a3dd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xF1\x01\x0A\x1Agoogle/chat/v1/group.proto\x12\x0Egoogle.chat.v1\"\x15\x0A\x05Group\x12\x0C\x0A\x04name\x18\x01 \x01(\x09B\xA3\x01\x0A\x12com.google.chat.v1B\x0AGroupProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php new file mode 100644 index 000000000000..0046c84a244c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB9\x02\x0A\"google/chat/v1/history_state.proto\x12\x0Egoogle.chat.v1*N\x0A\x0CHistoryState\x12\x1D\x0A\x19HISTORY_STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BHISTORY_OFF\x10\x01\x12\x0E\x0A\x0AHISTORY_ON\x10\x02B\xAA\x01\x0A\x12com.google.chat.v1B\x11HistoryStateProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php new file mode 100644 index 000000000000..8b6d5fe973d3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x85\x02\x0A google/chat/v1/matched_url.proto\x12\x0Egoogle.chat.v1\"\x1E\x0A\x0AMatchedUrl\x12\x10\x0A\x03url\x18\x02 \x01(\x09B\x03\xE0A\x03B\xA8\x01\x0A\x12com.google.chat.v1B\x0FMatchedUrlProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php new file mode 100644 index 000000000000..f394d0e6da8f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\x94\x0F\x0A\x1Fgoogle/chat/v1/membership.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Agoogle/chat/v1/group.proto\x1A\x19google/chat/v1/user.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x96\x05\x0A\x0AMembership\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12>\x0A\x05state\x18\x02 \x01(\x0E2*.google.chat.v1.Membership.MembershipStateB\x03\xE0A\x03\x12<\x0A\x04role\x18\x07 \x01(\x0E2).google.chat.v1.Membership.MembershipRoleB\x03\xE0A\x01\x12+\x0A\x06member\x18\x03 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x01H\x00\x122\x0A\x0Cgroup_member\x18\x05 \x01(\x0B2\x15.google.chat.v1.GroupB\x03\xE0A\x01H\x00\x127\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x127\x0A\x0Bdelete_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\"^\x0A\x0FMembershipState\x12 \x0A\x1CMEMBERSHIP_STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06JOINED\x10\x01\x12\x0B\x0A\x07INVITED\x10\x02\x12\x10\x0A\x0CNOT_A_MEMBER\x10\x03\"p\x0A\x0EMembershipRole\x12\x1F\x0A\x1BMEMBERSHIP_ROLE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BROLE_MEMBER\x10\x01\x12\x10\x0A\x0CROLE_MANAGER\x10\x02\x12\x1A\x0A\x16ROLE_ASSISTANT_MANAGER\x10\x04:D\xEAAA\x0A\x1Echat.googleapis.com/Membership\x12\x1Fspaces/{space}/members/{member}B\x0C\x0A\x0AmemberType\"\xA5\x01\x0A\x17CreateMembershipRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x12\x1Echat.googleapis.com/Membership\x123\x0A\x0Amembership\x18\x02 \x01(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x02\x12\x1D\x0A\x10use_admin_access\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xA3\x01\x0A\x17UpdateMembershipRequest\x123\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1D\x0A\x10use_admin_access\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xEA\x01\x0A\x16ListMembershipsRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x12\x1Echat.googleapis.com/Membership\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bshow_groups\x18\x06 \x01(\x08B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_invited\x18\x07 \x01(\x08B\x03\xE0A\x01\x12\x1D\x0A\x10use_admin_access\x18\x08 \x01(\x08B\x03\xE0A\x01\"h\x0A\x17ListMembershipsResponse\x124\x0A\x0Bmemberships\x18\x01 \x03(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x06\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"k\x0A\x14GetMembershipRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/Membership\x12\x1D\x0A\x10use_admin_access\x18\x03 \x01(\x08B\x03\xE0A\x01\"n\x0A\x17DeleteMembershipRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/Membership\x12\x1D\x0A\x10use_admin_access\x18\x02 \x01(\x08B\x03\xE0A\x01B\xA8\x01\x0A\x12com.google.chat.v1B\x0FMembershipProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php new file mode 100644 index 000000000000..667e69ec7d11 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php @@ -0,0 +1,39 @@ +internalAddGeneratedFile( + "\x0A\x9D*\x0A\x1Cgoogle/chat/v1/message.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/apps/card/v1/card.proto\x1A\"google/chat/v1/action_status.proto\x1A\x1Fgoogle/chat/v1/annotation.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A%google/chat/v1/contextual_addon.proto\x1A&google/chat/v1/deletion_metadata.proto\x1A google/chat/v1/matched_url.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\"google/chat/v1/slash_command.proto\x1A\x1Agoogle/chat/v1/space.proto\x1A\x19google/chat/v1/user.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE9\x0A\x0A\x07Message\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12)\x0A\x06sender\x18\x02 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x03\x127\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x129\x0A\x10last_update_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x1A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Eformatted_text\x18+ \x01(\x09B\x03\xE0A\x03\x12=\x0A\x05cards\x18\x05 \x03(\x0B2*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x121\x0A\x08cards_v2\x18\x16 \x03(\x0B2\x1A.google.chat.v1.CardWithIdB\x03\xE0A\x01\x124\x0A\x0Bannotations\x18\x0A \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x12&\x0A\x06thread\x18\x0B \x01(\x0B2\x16.google.chat.v1.Thread\x12)\x0A\x05space\x18\x0C \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x03\x12\x1A\x0A\x0Dfallback_text\x18\x0D \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Faction_response\x18\x0E \x01(\x0B2\x1E.google.chat.v1.ActionResponseB\x03\xE0A\x04\x12\x1A\x0A\x0Dargument_text\x18\x0F \x01(\x09B\x03\xE0A\x03\x128\x0A\x0Dslash_command\x18\x11 \x01(\x0B2\x1C.google.chat.v1.SlashCommandB\x03\xE0A\x03\x123\x0A\x0Aattachment\x18\x12 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x01\x124\x0A\x0Bmatched_url\x18\x14 \x01(\x0B2\x1A.google.chat.v1.MatchedUrlB\x03\xE0A\x03\x12\x19\x0A\x0Cthread_reply\x18\x19 \x01(\x08B\x03\xE0A\x03\x12\x13\x0A\x06silent\x18. \x01(\x08B\x03\xE0A\x03\x12'\x0A\x1Aclient_assigned_message_id\x18 \x01(\x09B\x03\xE0A\x01\x12K\x0A\x18emoji_reaction_summaries\x18! \x03(\x0B2\$.google.chat.v1.EmojiReactionSummaryB\x03\xE0A\x03\x12<\x0A\x16private_message_viewer\x18\$ \x01(\x0B2\x14.google.chat.v1.UserB\x06\xE0A\x05\xE0A\x01\x12@\x0A\x11deletion_metadata\x18& \x01(\x0B2 .google.chat.v1.DeletionMetadataB\x03\xE0A\x03\x12K\x0A\x17quoted_message_metadata\x18' \x01(\x0B2%.google.chat.v1.QuotedMessageMetadataB\x03\xE0A\x01\x127\x0A\x0Dattached_gifs\x18* \x03(\x0B2\x1B.google.chat.v1.AttachedGifB\x03\xE0A\x03\x12?\x0A\x11accessory_widgets\x18, \x03(\x0B2\x1F.google.chat.v1.AccessoryWidgetB\x03\xE0A\x01:C\xEAA@\x0A\x1Bchat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\"\x1F\x0A\x0BAttachedGif\x12\x10\x0A\x03uri\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xA5\x04\x0A\x15QuotedMessageMetadata\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x129\x0A\x10last_update_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x12H\x0A\x0Aquote_type\x18\x04 \x01(\x0E2/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x03\xE0A\x01\x12K\x0A\x17quoted_message_snapshot\x18\x05 \x01(\x0B2%.google.chat.v1.QuotedMessageSnapshotB\x03\xE0A\x03\x12B\x0A\x12forwarded_metadata\x18\x06 \x01(\x0B2!.google.chat.v1.ForwardedMetadataB\x03\xE0A\x03\"?\x0A\x09QuoteType\x12\x1A\x0A\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05REPLY\x10\x01\x12\x0B\x0A\x07FORWARD\x10\x02:\x81\x01\xEAA~\x0A)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xC8\x01\x0A\x15QuotedMessageSnapshot\x12\x13\x0A\x06sender\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eformatted_text\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bannotations\x18\x04 \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x124\x0A\x0Battachments\x18\x05 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x03\"f\x0A\x11ForwardedMetadata\x120\x0A\x05space\x18\x01 \x01(\x09B!\xE0A\x03\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1F\x0A\x12space_display_name\x18\x02 \x01(\x09B\x03\xE0A\x03\"v\x0A\x06Thread\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x17\x0A\x0Athread_key\x18\x03 \x01(\x09B\x03\xE0A\x01:@\xEAA=\x0A\x1Achat.googleapis.com/Thread\x12\x1Fspaces/{space}/threads/{thread}\"\xD2\x04\x0A\x0EActionResponse\x12>\x0A\x04type\x18\x01 \x01(\x0E2+.google.chat.v1.ActionResponse.ResponseTypeB\x03\xE0A\x04\x12\x10\x0A\x03url\x18\x02 \x01(\x09B\x03\xE0A\x04\x128\x0A\x0Ddialog_action\x18\x03 \x01(\x0B2\x1C.google.chat.v1.DialogActionB\x03\xE0A\x04\x12I\x0A\x0Eupdated_widget\x18\x04 \x01(\x0B2,.google.chat.v1.ActionResponse.UpdatedWidgetB\x03\xE0A\x04\x1AR\x0A\x0ESelectionItems\x12@\x0A\x05items\x18\x01 \x03(\x0B21.google.apps.card.v1.SelectionInput.SelectionItem\x1Aw\x0A\x0DUpdatedWidget\x12D\x0A\x0Bsuggestions\x18\x01 \x01(\x0B2-.google.chat.v1.ActionResponse.SelectionItemsH\x00\x12\x0E\x0A\x06widget\x18\x02 \x01(\x09B\x10\x0A\x0Eupdated_widget\"\x9B\x01\x0A\x0CResponseType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_MESSAGE\x10\x01\x12\x12\x0A\x0EUPDATE_MESSAGE\x10\x02\x12\x1D\x0A\x19UPDATE_USER_MESSAGE_CARDS\x10\x06\x12\x12\x0A\x0EREQUEST_CONFIG\x10\x03\x12\x0A\x0A\x06DIALOG\x10\x04\x12\x11\x0A\x0DUPDATE_WIDGET\x10\x07\"S\x0A\x0FAccessoryWidget\x126\x0A\x0Bbutton_list\x18\x01 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00B\x08\x0A\x06action\"F\x0A\x11GetMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\"]\x0A\x14DeleteMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\x97\x01\x0A\x14UpdateMessageRequest\x12-\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x88\x04\x0A\x14CreateMessageRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12-\x0A\x07message\x18\x04 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x12\x19\x0A\x0Athread_key\x18\x06 \x01(\x09B\x05\x18\x01\xE0A\x01\x12\x17\x0A\x0Arequest_id\x18\x07 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x14message_reply_option\x18\x08 \x01(\x0E27.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x03\xE0A\x01\x12\x17\x0A\x0Amessage_id\x18\x09 \x01(\x09B\x03\xE0A\x01\x12b\x0A#create_message_notification_options\x18\x0A \x01(\x0B20.google.chat.v1.CreateMessageNotificationOptionsB\x03\xE0A\x01\"\x7F\x0A\x12MessageReplyOption\x12\$\x0A MESSAGE_REPLY_OPTION_UNSPECIFIED\x10\x00\x12(\x0A\$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\x10\x01\x12\x19\x0A\x15REPLY_MESSAGE_OR_FAIL\x10\x02\"\xF2\x01\x0A CreateMessageNotificationOptions\x12\\\x0A\x11notification_type\x18\x01 \x01(\x0E2A.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\x0A\x10NotificationType\x12\x1A\x0A\x16NOTIFICATION_TYPE_NONE\x10\x00\x12\"\x0A\x1ENOTIFICATION_TYPE_FORCE_NOTIFY\x10\x02\x12\x1C\x0A\x18NOTIFICATION_TYPE_SILENT\x10\x03\"\xC2\x01\x0A\x13ListMessagesRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\"Z\x0A\x14ListMessagesResponse\x12)\x0A\x08messages\x18\x01 \x03(\x0B2\x17.google.chat.v1.Message\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x0CDialogAction\x12-\x0A\x06dialog\x18\x01 \x01(\x0B2\x16.google.chat.v1.DialogB\x03\xE0A\x04H\x00\x128\x0A\x0Daction_status\x18\x02 \x01(\x0B2\x1C.google.chat.v1.ActionStatusB\x03\xE0A\x04B\x08\x0A\x06action\"6\x0A\x06Dialog\x12,\x0A\x04body\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.CardB\x03\xE0A\x04\"F\x0A\x0ACardWithId\x12\x0F\x0A\x07card_id\x18\x01 \x01(\x09\x12'\x0A\x04card\x18\x02 \x01(\x0B2\x19.google.apps.card.v1.CardB\xA5\x01\x0A\x12com.google.chat.v1B\x0CMessageProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php new file mode 100644 index 000000000000..ef74ac7668d2 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xD2\x0F\x0A\x1Dgoogle/chat/v1/reaction.proto\x12\x0Egoogle.chat.v1\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x19google/chat/v1/user.proto\"\xCC\x01\x0A\x08Reaction\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12'\x0A\x04user\x18\x02 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x03\x12)\x0A\x05emoji\x18\x03 \x01(\x0B2\x15.google.chat.v1.EmojiB\x03\xE0A\x02:Y\xEAAV\x0A\x1Cchat.googleapis.com/Reaction\x126spaces/{space}/messages/{message}/reactions/{reaction}\"_\x0A\x05Emoji\x12\x16\x0A\x07unicode\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x123\x0A\x0Ccustom_emoji\x18\x02 \x01(\x0B2\x1B.google.chat.v1.CustomEmojiH\x00B\x09\x0A\x07content\"\xED\x02\x0A\x0BCustomEmoji\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x01 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x1A\x0A\x0Aemoji_name\x18\x03 \x01(\x09B\x06\xE0A\x01\xE0A\x05\x12 \x0A\x13temporary_image_uri\x18\x04 \x01(\x09B\x03\xE0A\x03\x12G\x0A\x07payload\x18\x05 \x01(\x0B2..google.chat.v1.CustomEmoji.CustomEmojiPayloadB\x06\xE0A\x04\xE0A\x01\x1AL\x0A\x12CustomEmojiPayload\x12\x1C\x0A\x0Cfile_content\x18\x01 \x01(\x0CB\x06\xE0A\x04\xE0A\x02\x12\x18\x0A\x08filename\x18\x02 \x01(\x09B\x06\xE0A\x04\xE0A\x02:\\\xEAAY\x0A\x1Fchat.googleapis.com/CustomEmoji\x12\x1BcustomEmojis/{custom_emoji}*\x0CcustomEmojis2\x0BcustomEmoji\"v\x0A\x14EmojiReactionSummary\x12)\x0A\x05emoji\x18\x01 \x01(\x0B2\x15.google.chat.v1.EmojiB\x03\xE0A\x03\x12 \x0A\x0Ereaction_count\x18\x02 \x01(\x05B\x03\xE0A\x03H\x00\x88\x01\x01B\x11\x0A\x0F_reaction_count\"~\x0A\x15CreateReactionRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x12\x1Cchat.googleapis.com/Reaction\x12/\x0A\x08reaction\x18\x02 \x01(\x0B2\x18.google.chat.v1.ReactionB\x03\xE0A\x02\"\x92\x01\x0A\x14ListReactionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x12\x1Cchat.googleapis.com/Reaction\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"]\x0A\x15ListReactionsResponse\x12+\x0A\x09reactions\x18\x01 \x03(\x0B2\x18.google.chat.v1.Reaction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"K\x0A\x15DeleteReactionRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cchat.googleapis.com/Reaction\"R\x0A\x18CreateCustomEmojiRequest\x126\x0A\x0Ccustom_emoji\x18\x01 \x01(\x0B2\x1B.google.chat.v1.CustomEmojiB\x03\xE0A\x02\"N\x0A\x15GetCustomEmojiRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fchat.googleapis.com/CustomEmoji\"_\x0A\x17ListCustomEmojisRequest\x12\x16\x0A\x09page_size\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"l\x0A\x18ListCustomEmojisResponse\x127\x0A\x0Dcustom_emojis\x18\x01 \x03(\x0B2\x1B.google.chat.v1.CustomEmojiB\x03\xE0A\x06\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"Q\x0A\x18DeleteCustomEmojiRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fchat.googleapis.com/CustomEmojiB\xA6\x01\x0A\x12com.google.chat.v1B\x0DReactionProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php new file mode 100644 index 000000000000..d7efa42c4dba --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xB0\x11\x0A\x1Cgoogle/chat/v1/section.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"\xDE\x02\x0A\x07Section\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x0Asort_order\x18\x03 \x01(\x05\x126\x0A\x04type\x18\x04 \x01(\x0E2#.google.chat.v1.Section.SectionTypeB\x03\xE0A\x02\"\x82\x01\x0A\x0BSectionType\x12\x1C\x0A\x18SECTION_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ECUSTOM_SECTION\x10\x01\x12\x1B\x0A\x17DEFAULT_DIRECT_MESSAGES\x10\x02\x12\x12\x0A\x0EDEFAULT_SPACES\x10\x03\x12\x10\x0A\x0CDEFAULT_APPS\x10\x06:T\xEAAQ\x0A\x1Bchat.googleapis.com/Section\x12\x1Fusers/{user}/sections/{section}*\x08sections2\x07section\"\xCB\x01\x0A\x0BSectionItem\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x122\x0A\x05space\x18\x02 \x01(\x09B!\xE0A\x01\xFAA\x1B\x0A\x19chat.googleapis.com/SpaceH\x00:m\xEAAj\x0A\x1Fchat.googleapis.com/SectionItem\x12,users/{user}/sections/{section}/items/{item}*\x0CsectionItems2\x0BsectionItemB\x06\x0A\x04item\"w\x0A\x14CreateSectionRequest\x120\x0A\x06parent\x18\x01 \x01(\x09B \xE0A\x02\xFAA\x1A\x0A\x18chat.googleapis.com/User\x12-\x0A\x07section\x18\x02 \x01(\x0B2\x17.google.chat.v1.SectionB\x03\xE0A\x02\"I\x0A\x14DeleteSectionRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\"{\x0A\x14UpdateSectionRequest\x12-\x0A\x07section\x18\x01 \x01(\x0B2\x17.google.chat.v1.SectionB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"x\x0A\x13ListSectionsRequest\x120\x0A\x06parent\x18\x01 \x01(\x09B \xE0A\x02\xFAA\x1A\x0A\x18chat.googleapis.com/User\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"Z\x0A\x14ListSectionsResponse\x12)\x0A\x08sections\x18\x01 \x03(\x0B2\x17.google.chat.v1.Section\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xFF\x01\x0A\x16PositionSectionRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\x12\x19\x0A\x0Asort_order\x18\x02 \x01(\x05B\x03\xE0A\x01H\x00\x12Q\x0A\x11relative_position\x18\x03 \x01(\x0E2/.google.chat.v1.PositionSectionRequest.PositionB\x03\xE0A\x01H\x00\"8\x0A\x08Position\x12\x18\x0A\x14POSITION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x07\x0A\x03END\x10\x02B\x0A\x0A\x08position\"C\x0A\x17PositionSectionResponse\x12(\x0A\x07section\x18\x01 \x01(\x0B2\x17.google.chat.v1.Section\"\x94\x01\x0A\x17ListSectionItemsRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"g\x0A\x18ListSectionItemsResponse\x122\x0A\x0Dsection_items\x18\x01 \x03(\x0B2\x1B.google.chat.v1.SectionItem\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8C\x01\x0A\x16MoveSectionItemRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fchat.googleapis.com/SectionItem\x12;\x0A\x0Etarget_section\x18\x02 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\"L\x0A\x17MoveSectionItemResponse\x121\x0A\x0Csection_item\x18\x01 \x01(\x0B2\x1B.google.chat.v1.SectionItemB\xD0\x01\x0A\x12com.google.chat.v1B\x0CSectionProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1\xEAA(\x0A\x18chat.googleapis.com/User\x12\x0Cusers/{user}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php new file mode 100644 index 000000000000..a12ac43956a5 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x8D\x02\x0A\"google/chat/v1/slash_command.proto\x12\x0Egoogle.chat.v1\"\"\x0A\x0CSlashCommand\x12\x12\x0A\x0Acommand_id\x18\x01 \x01(\x03B\xAA\x01\x0A\x12com.google.chat.v1B\x11SlashCommandProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php new file mode 100644 index 000000000000..91bb34f0165e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\x97\$\x0A\x1Agoogle/chat/v1/space.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\"google/chat/v1/history_state.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCD\x16\x0A\x05Space\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12/\x0A\x04type\x18\x02 \x01(\x0E2\x1A.google.chat.v1.Space.TypeB\x05\x18\x01\xE0A\x03\x128\x0A\x0Aspace_type\x18\x0A \x01(\x0E2\x1F.google.chat.v1.Space.SpaceTypeB\x03\xE0A\x01\x12\x1F\x0A\x12single_user_bot_dm\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x17\x0A\x08threaded\x18\x05 \x01(\x08B\x05\x18\x01\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12%\x0A\x15external_user_allowed\x18\x08 \x01(\x08B\x06\xE0A\x05\xE0A\x01\x12M\x0A\x15space_threading_state\x18\x09 \x01(\x0E2).google.chat.v1.Space.SpaceThreadingStateB\x03\xE0A\x03\x12>\x0A\x0Dspace_details\x18\x0B \x01(\x0B2\".google.chat.v1.Space.SpaceDetailsB\x03\xE0A\x01\x12>\x0A\x13space_history_state\x18\x0D \x01(\x0E2\x1C.google.chat.v1.HistoryStateB\x03\xE0A\x01\x12\x18\x0A\x0Bimport_mode\x18\x10 \x01(\x08B\x03\xE0A\x01\x127\x0A\x0Bcreate_time\x18\x11 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x129\x0A\x10last_active_time\x18\x12 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1C\x0A\x0Fadmin_installed\x18\x13 \x01(\x08B\x03\xE0A\x03\x12D\x0A\x10membership_count\x18\x14 \x01(\x0B2%.google.chat.v1.Space.MembershipCountB\x03\xE0A\x03\x12B\x0A\x0Faccess_settings\x18\x17 \x01(\x0B2\$.google.chat.v1.Space.AccessSettingsB\x03\xE0A\x01\x12\x1D\x0A\x08customer\x18\x18 \x01(\x09B\x06\xE0A\x05\xE0A\x01H\x01\x88\x01\x01\x12\x16\x0A\x09space_uri\x18\x19 \x01(\x09B\x03\xE0A\x03\x12d\x0A\x1Epredefined_permission_settings\x18\x1A \x01(\x0E22.google.chat.v1.Space.PredefinedPermissionSettingsB\x06\xE0A\x04\xE0A\x01H\x00\x12L\x0A\x13permission_settings\x18\x1B \x01(\x0B2(.google.chat.v1.Space.PermissionSettingsB\x03\xE0A\x01H\x00\x12@\x0A\x17import_mode_expire_time\x18\x1C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1AA\x0A\x0CSpaceDetails\x12\x18\x0A\x0Bdescription\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Aguidelines\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A_\x0A\x0FMembershipCount\x12+\x0A\x1Ejoined_direct_human_user_count\x18\x04 \x01(\x05B\x03\xE0A\x03\x12\x1F\x0A\x12joined_group_count\x18\x05 \x01(\x05B\x03\xE0A\x03\x1A\xC0\x01\x0A\x0EAccessSettings\x12K\x0A\x0Caccess_state\x18\x01 \x01(\x0E20.google.chat.v1.Space.AccessSettings.AccessStateB\x03\xE0A\x03\x12\x15\x0A\x08audience\x18\x03 \x01(\x09B\x03\xE0A\x01\"J\x0A\x0BAccessState\x12\x1C\x0A\x18ACCESS_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PRIVATE\x10\x01\x12\x10\x0A\x0CDISCOVERABLE\x10\x02\x1A\xA8\x06\x0A\x12PermissionSettings\x12T\x0A\x19manage_members_and_groups\x18\x01 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x00\x88\x01\x01\x12O\x0A\x14modify_space_details\x18\x02 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x01\x88\x01\x01\x12I\x0A\x0Etoggle_history\x18\x03 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x02\x88\x01\x01\x12M\x0A\x12use_at_mention_all\x18\x04 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x03\x88\x01\x01\x12F\x0A\x0Bmanage_apps\x18\x05 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x04\x88\x01\x01\x12J\x0A\x0Fmanage_webhooks\x18\x06 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x05\x88\x01\x01\x12H\x0A\x0Dpost_messages\x18\x07 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x03H\x06\x88\x01\x01\x12I\x0A\x0Ereply_messages\x18\x08 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x07\x88\x01\x01B\x1C\x0A\x1A_manage_members_and_groupsB\x17\x0A\x15_modify_space_detailsB\x11\x0A\x0F_toggle_historyB\x15\x0A\x13_use_at_mention_allB\x0E\x0A\x0C_manage_appsB\x12\x0A\x10_manage_webhooksB\x10\x0A\x0E_post_messagesB\x11\x0A\x0F_reply_messages\x1A\x9D\x01\x0A\x11PermissionSetting\x12\x1D\x0A\x10managers_allowed\x18\x01 \x01(\x08B\x03\xE0A\x01\x12,\x0A\x1Aassistant_managers_allowed\x18\x03 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1C\x0A\x0Fmembers_allowed\x18\x02 \x01(\x08B\x03\xE0A\x01B\x1D\x0A\x1B_assistant_managers_allowed\".\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04ROOM\x10\x01\x12\x06\x0A\x02DM\x10\x02\"V\x0A\x09SpaceType\x12\x1A\x0A\x16SPACE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPACE\x10\x01\x12\x0E\x0A\x0AGROUP_CHAT\x10\x02\x12\x12\x0A\x0EDIRECT_MESSAGE\x10\x03\"\x82\x01\x0A\x13SpaceThreadingState\x12%\x0A!SPACE_THREADING_STATE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11THREADED_MESSAGES\x10\x02\x12\x14\x0A\x10GROUPED_MESSAGES\x10\x03\x12\x17\x0A\x13UNTHREADED_MESSAGES\x10\x04\"\x7F\x0A\x1CPredefinedPermissionSettings\x12.\x0A*PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\x0A\x13COLLABORATION_SPACE\x10\x01\x12\x16\x0A\x12ANNOUNCEMENT_SPACE\x10\x02:.\xEAA+\x0A\x19chat.googleapis.com/Space\x12\x0Espaces/{space}B\x1B\x0A\x19space_permission_settingsB\x0B\x0A\x09_customer\"X\x0A\x12CreateSpaceRequest\x12)\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x02\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\"Y\x0A\x11ListSpacesRequest\x12\x16\x0A\x09page_size\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"T\x0A\x12ListSpacesResponse\x12%\x0A\x06spaces\x18\x01 \x03(\x0B2\x15.google.chat.v1.Space\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"a\x0A\x0FGetSpaceRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1D\x0A\x10use_admin_access\x18\x02 \x01(\x08B\x03\xE0A\x01\"-\x0A\x18FindDirectMessageRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"\x8B\x01\x0A\x15FindGroupChatsRequest\x12\x12\x0A\x05users\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12-\x0A\x0Aspace_view\x18\x04 \x01(\x0E2\x19.google.chat.v1.SpaceView\"X\x0A\x16FindGroupChatsResponse\x12%\x0A\x06spaces\x18\x01 \x03(\x0B2\x15.google.chat.v1.Space\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x94\x01\x0A\x12UpdateSpaceRequest\x12)\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1D\x0A\x10use_admin_access\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x81\x01\x0A\x13SearchSpacesRequest\x12\x18\x0A\x10use_admin_access\x18\x01 \x01(\x08\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x12\x0A\x05query\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"j\x0A\x14SearchSpacesResponse\x12%\x0A\x06spaces\x18\x01 \x03(\x0B2\x15.google.chat.v1.Space\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"d\x0A\x12DeleteSpaceRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1D\x0A\x10use_admin_access\x18\x02 \x01(\x08B\x03\xE0A\x01\"M\x0A\x1ACompleteImportSpaceRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19chat.googleapis.com/Space\"C\x0A\x1BCompleteImportSpaceResponse\x12\$\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.Space*c\x0A\x09SpaceView\x12\x1A\x0A\x16SPACE_VIEW_UNSPECIFIED\x10\x00\x12!\x0A\x1DSPACE_VIEW_RESOURCE_NAME_ONLY\x10\x03\x12\x17\x0A\x13SPACE_VIEW_EXPANDED\x10\x04B\xA3\x01\x0A\x12com.google.chat.v1B\x0ASpaceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php new file mode 100644 index 000000000000..1b1aca143bf2 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xD5\x12\x0A google/chat/v1/space_event.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\"google/chat/v1/event_payload.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCE\x0D\x0A\x0ASpaceEvent\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Aevent_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Aevent_type\x18\x06 \x01(\x09\x12M\x0A\x1Amessage_created_event_data\x18\x0C \x01(\x0B2'.google.chat.v1.MessageCreatedEventDataH\x00\x12M\x0A\x1Amessage_updated_event_data\x18\x0D \x01(\x0B2'.google.chat.v1.MessageUpdatedEventDataH\x00\x12M\x0A\x1Amessage_deleted_event_data\x18\x0E \x01(\x0B2'.google.chat.v1.MessageDeletedEventDataH\x00\x12X\x0A message_batch_created_event_data\x18\x1A \x01(\x0B2,.google.chat.v1.MessageBatchCreatedEventDataH\x00\x12X\x0A message_batch_updated_event_data\x18\x1B \x01(\x0B2,.google.chat.v1.MessageBatchUpdatedEventDataH\x00\x12X\x0A message_batch_deleted_event_data\x18\x1C \x01(\x0B2,.google.chat.v1.MessageBatchDeletedEventDataH\x00\x12I\x0A\x18space_updated_event_data\x18\x0F \x01(\x0B2%.google.chat.v1.SpaceUpdatedEventDataH\x00\x12T\x0A\x1Espace_batch_updated_event_data\x18\x1D \x01(\x0B2*.google.chat.v1.SpaceBatchUpdatedEventDataH\x00\x12S\x0A\x1Dmembership_created_event_data\x18\x11 \x01(\x0B2*.google.chat.v1.MembershipCreatedEventDataH\x00\x12S\x0A\x1Dmembership_updated_event_data\x18\x12 \x01(\x0B2*.google.chat.v1.MembershipUpdatedEventDataH\x00\x12T\x0A\x1Dmembership_deleted_event_data\x18\xDB\x01 \x01(\x0B2*.google.chat.v1.MembershipDeletedEventDataH\x00\x12^\x0A#membership_batch_created_event_data\x18\x1F \x01(\x0B2/.google.chat.v1.MembershipBatchCreatedEventDataH\x00\x12^\x0A#membership_batch_updated_event_data\x18 \x01(\x0B2/.google.chat.v1.MembershipBatchUpdatedEventDataH\x00\x12^\x0A#membership_batch_deleted_event_data\x18! \x01(\x0B2/.google.chat.v1.MembershipBatchDeletedEventDataH\x00\x12O\x0A\x1Breaction_created_event_data\x18\x15 \x01(\x0B2(.google.chat.v1.ReactionCreatedEventDataH\x00\x12O\x0A\x1Breaction_deleted_event_data\x18\x16 \x01(\x0B2(.google.chat.v1.ReactionDeletedEventDataH\x00\x12Z\x0A!reaction_batch_created_event_data\x18\" \x01(\x0B2-.google.chat.v1.ReactionBatchCreatedEventDataH\x00\x12Z\x0A!reaction_batch_deleted_event_data\x18# \x01(\x0B2-.google.chat.v1.ReactionBatchDeletedEventDataH\x00:M\xEAAJ\x0A\x1Echat.googleapis.com/SpaceEvent\x12(spaces/{space}/spaceEvents/{space_event}B\x09\x0A\x07payload\"L\x0A\x14GetSpaceEventRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/SpaceEvent\"\x96\x01\x0A\x16ListSpaceEventsRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x12\x1Echat.googleapis.com/SpaceEvent\x12\x16\x0A\x09page_size\x18\x05 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x08 \x01(\x09B\x03\xE0A\x02\"d\x0A\x17ListSpaceEventsResponse\x120\x0A\x0Cspace_events\x18\x01 \x03(\x0B2\x1A.google.chat.v1.SpaceEvent\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x9A\x01\x0A\x12com.google.chat.v1B\x0FSpaceEventProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php new file mode 100644 index 000000000000..4e9302c36f03 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xA5\x09\x0A/google/chat/v1/space_notification_setting.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"\xC6\x04\x0A\x18SpaceNotificationSetting\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12_\x0A\x14notification_setting\x18\x02 \x01(\x0E2<.google.chat.v1.SpaceNotificationSetting.NotificationSettingH\x00\x88\x01\x01\x12O\x0A\x0Cmute_setting\x18\x03 \x01(\x0E24.google.chat.v1.SpaceNotificationSetting.MuteSettingH\x01\x88\x01\x01\"r\x0A\x13NotificationSetting\x12\$\x0A NOTIFICATION_SETTING_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ALL\x10\x01\x12\x16\x0A\x12MAIN_CONVERSATIONS\x10\x02\x12\x0B\x0A\x07FOR_YOU\x10\x03\x12\x07\x0A\x03OFF\x10\x04\"C\x0A\x0BMuteSetting\x12\x1C\x0A\x18MUTE_SETTING_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07UNMUTED\x10\x01\x12\x09\x0A\x05MUTED\x10\x02:\x81\x01\xEAA~\x0A,chat.googleapis.com/SpaceNotificationSetting\x124users/{user}/spaces/{space}/spaceNotificationSetting2\x18spaceNotificationSettingB\x17\x0A\x15_notification_settingB\x0F\x0A\x0D_mute_setting\"h\x0A\"GetSpaceNotificationSettingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,chat.googleapis.com/SpaceNotificationSetting\"\xB0\x01\x0A%UpdateSpaceNotificationSettingRequest\x12Q\x0A\x1Aspace_notification_setting\x18\x01 \x01(\x0B2(.google.chat.v1.SpaceNotificationSettingB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02B\xB6\x01\x0A\x12com.google.chat.v1B\x1DSpaceNotificationSettingProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php new file mode 100644 index 000000000000..0a5622b61b98 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xF6\x05\x0A%google/chat/v1/space_read_state.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xBC\x01\x0A\x0ESpaceReadState\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x127\x0A\x0Elast_read_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01:c\xEAA`\x0A\"chat.googleapis.com/SpaceReadState\x12*users/{user}/spaces/{space}/spaceReadState2\x0EspaceReadState\"T\x0A\x18GetSpaceReadStateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chat.googleapis.com/SpaceReadState\"\x92\x01\x0A\x1BUpdateSpaceReadStateRequest\x12=\x0A\x10space_read_state\x18\x01 \x01(\x0B2\x1E.google.chat.v1.SpaceReadStateB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02B\xAC\x01\x0A\x12com.google.chat.v1B\x13SpaceReadStateProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php new file mode 100644 index 000000000000..0ba2a3b2ad00 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xB2\x03\x0A google/chat/v1/space_setup.proto\x12\x0Egoogle.chat.v1\x1A\x1Fgoogle/chat/v1/membership.proto\x1A\x1Agoogle/chat/v1/space.proto\"\x8D\x01\x0A\x11SetUpSpaceRequest\x12)\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x02\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bmemberships\x18\x04 \x03(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x01B\xA8\x01\x0A\x12com.google.chat.v1B\x0FSpaceSetupProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php new file mode 100644 index 000000000000..f7e1b4f500f6 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xD3\x04\x0A&google/chat/v1/thread_read_state.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCC\x01\x0A\x0FThreadReadState\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x122\x0A\x0Elast_read_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp:w\xEAAt\x0A#chat.googleapis.com/ThreadReadState\x12internalAddGeneratedFile( + "\x0A\x93\x03\x0A\x19google/chat/v1/user.proto\x12\x0Egoogle.chat.v1\"\xB8\x01\x0A\x04User\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x09domain_id\x18\x06 \x01(\x09\x12'\x0A\x04type\x18\x05 \x01(\x0E2\x19.google.chat.v1.User.Type\x12\x19\x0A\x0Cis_anonymous\x18\x07 \x01(\x08B\x03\xE0A\x03\"0\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05HUMAN\x10\x01\x12\x07\x0A\x03BOT\x10\x02B\xA2\x01\x0A\x12com.google.chat.v1B\x09UserProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php new file mode 100644 index 000000000000..f40f12a0087b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xD6\x10\x0A\x1Cgoogle/chat/v1/widgets.proto\x12\x0Egoogle.chat.v1\"\xF5\x0E\x0A\x0CWidgetMarkup\x12D\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2*.google.chat.v1.WidgetMarkup.TextParagraphH\x00\x123\x0A\x05image\x18\x02 \x01(\x0B2\".google.chat.v1.WidgetMarkup.ImageH\x00\x12:\x0A\x09key_value\x18\x03 \x01(\x0B2%.google.chat.v1.WidgetMarkup.KeyValueH\x00\x124\x0A\x07buttons\x18\x06 \x03(\x0B2#.google.chat.v1.WidgetMarkup.Button\x1A\x1D\x0A\x0DTextParagraph\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x1A\x92\x01\x0A\x06Button\x12>\x0A\x0Btext_button\x18\x01 \x01(\x0B2'.google.chat.v1.WidgetMarkup.TextButtonH\x00\x12@\x0A\x0Cimage_button\x18\x02 \x01(\x0B2(.google.chat.v1.WidgetMarkup.ImageButtonH\x00B\x06\x0A\x04type\x1AR\x0A\x0ATextButton\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x1A\xA9\x02\x0A\x08KeyValue\x121\x0A\x04icon\x18\x01 \x01(\x0E2!.google.chat.v1.WidgetMarkup.IconH\x00\x12\x12\x0A\x08icon_url\x18\x02 \x01(\x09H\x00\x12\x11\x0A\x09top_label\x18\x03 \x01(\x09\x12\x0F\x0A\x07content\x18\x04 \x01(\x09\x12\x19\x0A\x11content_multiline\x18\x09 \x01(\x08\x12\x14\x0A\x0Cbottom_label\x18\x05 \x01(\x09\x126\x0A\x08on_click\x18\x06 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x125\x0A\x06button\x18\x07 \x01(\x0B2#.google.chat.v1.WidgetMarkup.ButtonH\x01B\x07\x0A\x05iconsB\x09\x0A\x07control\x1Ah\x0A\x05Image\x12\x11\x0A\x09image_url\x18\x01 \x01(\x09\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x12\x14\x0A\x0Caspect_ratio\x18\x03 \x01(\x01\x1A\xA3\x01\x0A\x0BImageButton\x121\x0A\x04icon\x18\x01 \x01(\x0E2!.google.chat.v1.WidgetMarkup.IconH\x00\x12\x12\x0A\x08icon_url\x18\x03 \x01(\x09H\x00\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x12\x0C\x0A\x04name\x18\x04 \x01(\x09B\x07\x0A\x05icons\x1A\x88\x01\x0A\x07OnClick\x129\x0A\x06action\x18\x01 \x01(\x0B2'.google.chat.v1.WidgetMarkup.FormActionH\x00\x12:\x0A\x09open_link\x18\x02 \x01(\x0B2%.google.chat.v1.WidgetMarkup.OpenLinkH\x00B\x06\x0A\x04data\x1A\x17\x0A\x08OpenLink\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x1A\xA4\x01\x0A\x0AFormAction\x12\x1A\x0A\x12action_method_name\x18\x01 \x01(\x09\x12K\x0A\x0Aparameters\x18\x02 \x03(\x0B27.google.chat.v1.WidgetMarkup.FormAction.ActionParameter\x1A-\x0A\x0FActionParameter\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"\xE0\x03\x0A\x04Icon\x12\x14\x0A\x10ICON_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08AIRPLANE\x10\x01\x12\x0C\x0A\x08BOOKMARK\x10\x1A\x12\x07\x0A\x03BUS\x10\x19\x12\x07\x0A\x03CAR\x10\x09\x12\x09\x0A\x05CLOCK\x10\x02\x12\x1C\x0A\x18CONFIRMATION_NUMBER_ICON\x10\x0C\x12\x0A\x0A\x06DOLLAR\x10\x0E\x12\x0F\x0A\x0BDESCRIPTION\x10\x1B\x12\x09\x0A\x05EMAIL\x10\x0A\x12\x13\x0A\x0FEVENT_PERFORMER\x10\x14\x12\x0E\x0A\x0AEVENT_SEAT\x10\x15\x12\x12\x0A\x0EFLIGHT_ARRIVAL\x10\x10\x12\x14\x0A\x10FLIGHT_DEPARTURE\x10\x0F\x12\x09\x0A\x05HOTEL\x10\x06\x12\x13\x0A\x0FHOTEL_ROOM_TYPE\x10\x11\x12\x0A\x0A\x06INVITE\x10\x13\x12\x0B\x0A\x07MAP_PIN\x10\x03\x12\x0E\x0A\x0AMEMBERSHIP\x10\x18\x12\x13\x0A\x0FMULTIPLE_PEOPLE\x10\x12\x12\x09\x0A\x05OFFER\x10\x1E\x12\x0A\x0A\x06PERSON\x10\x0B\x12\x09\x0A\x05PHONE\x10\x0D\x12\x13\x0A\x0FRESTAURANT_ICON\x10\x07\x12\x11\x0A\x0DSHOPPING_CART\x10\x08\x12\x08\x0A\x04STAR\x10\x05\x12\x09\x0A\x05STORE\x10\x16\x12\x0A\x0A\x06TICKET\x10\x04\x12\x09\x0A\x05TRAIN\x10\x17\x12\x10\x0A\x0CVIDEO_CAMERA\x10\x1C\x12\x0E\x0A\x0AVIDEO_PLAY\x10\x1DB\x06\x0A\x04dataB\xA5\x01\x0A\x12com.google.chat.v1B\x0CWidgetsProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php new file mode 100644 index 000000000000..3a80593f7a77 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php @@ -0,0 +1,77 @@ +google.chat.v1.AccessoryWidget + */ +class AccessoryWidget extends \Google\Protobuf\Internal\Message +{ + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\ButtonList $button_list + * A list of buttons. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * A list of buttons. + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 1; + * @return \Google\Apps\Card\V1\ButtonList|null + */ + public function getButtonList() + { + return $this->readOneof(1); + } + + public function hasButtonList() + { + return $this->hasOneof(1); + } + + /** + * A list of buttons. + * + * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 1; + * @param \Google\Apps\Card\V1\ButtonList $var + * @return $this + */ + public function setButtonList($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php new file mode 100644 index 000000000000..bd7ee440094c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php @@ -0,0 +1,201 @@ +google.chat.v1.ActionResponse + */ +class ActionResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Input only. The type of Chat app response. + * + * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $type = 0; + /** + * Input only. URL for users to authenticate or configure. (Only for + * `REQUEST_CONFIG` response types.) + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $url = ''; + /** + * Input only. A response to an interaction event related to a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be + * accompanied by `ResponseType.Dialog`. + * + * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $dialog_action = null; + /** + * Input only. The response of the updated widget. + * + * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $updated_widget = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Input only. The type of Chat app response. + * @type string $url + * Input only. URL for users to authenticate or configure. (Only for + * `REQUEST_CONFIG` response types.) + * @type \Google\Apps\Chat\V1\DialogAction $dialog_action + * Input only. A response to an interaction event related to a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be + * accompanied by `ResponseType.Dialog`. + * @type \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget $updated_widget + * Input only. The response of the updated widget. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Input only. The type of Chat app response. + * + * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Input only. The type of Chat app response. + * + * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\ActionResponse\ResponseType::class); + $this->type = $var; + + return $this; + } + + /** + * Input only. URL for users to authenticate or configure. (Only for + * `REQUEST_CONFIG` response types.) + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Input only. URL for users to authenticate or configure. (Only for + * `REQUEST_CONFIG` response types.) + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Input only. A response to an interaction event related to a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be + * accompanied by `ResponseType.Dialog`. + * + * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Apps\Chat\V1\DialogAction|null + */ + public function getDialogAction() + { + return $this->dialog_action; + } + + public function hasDialogAction() + { + return isset($this->dialog_action); + } + + public function clearDialogAction() + { + unset($this->dialog_action); + } + + /** + * Input only. A response to an interaction event related to a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be + * accompanied by `ResponseType.Dialog`. + * + * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Apps\Chat\V1\DialogAction $var + * @return $this + */ + public function setDialogAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DialogAction::class); + $this->dialog_action = $var; + + return $this; + } + + /** + * Input only. The response of the updated widget. + * + * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget|null + */ + public function getUpdatedWidget() + { + return $this->updated_widget; + } + + public function hasUpdatedWidget() + { + return isset($this->updated_widget); + } + + public function clearUpdatedWidget() + { + unset($this->updated_widget); + } + + /** + * Input only. The response of the updated widget. + * + * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget $var + * @return $this + */ + public function setUpdatedWidget($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget::class); + $this->updated_widget = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php new file mode 100644 index 000000000000..eda2725965f2 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php @@ -0,0 +1,93 @@ +google.chat.v1.ActionResponse.ResponseType + */ +class ResponseType +{ + /** + * Default type that's handled as `NEW_MESSAGE`. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Post as a new message in the topic. + * + * Generated from protobuf enum NEW_MESSAGE = 1; + */ + const NEW_MESSAGE = 1; + /** + * Update the Chat app's message. This is only permitted on a `CARD_CLICKED` + * event where the message sender type is `BOT`. + * + * Generated from protobuf enum UPDATE_MESSAGE = 2; + */ + const UPDATE_MESSAGE = 2; + /** + * Update the cards on a user's message. This is only permitted as a + * response to a `MESSAGE` event with a matched url, or a `CARD_CLICKED` + * event where the message sender type is `HUMAN`. Text is ignored. + * + * Generated from protobuf enum UPDATE_USER_MESSAGE_CARDS = 6; + */ + const UPDATE_USER_MESSAGE_CARDS = 6; + /** + * Privately ask the user for additional authentication or configuration. + * + * Generated from protobuf enum REQUEST_CONFIG = 3; + */ + const REQUEST_CONFIG = 3; + /** + * Presents a + * [dialog](https://developers.google.com/workspace/chat/dialogs). + * + * Generated from protobuf enum DIALOG = 4; + */ + const DIALOG = 4; + /** + * Widget text autocomplete options query. + * + * Generated from protobuf enum UPDATE_WIDGET = 7; + */ + const UPDATE_WIDGET = 7; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::NEW_MESSAGE => 'NEW_MESSAGE', + self::UPDATE_MESSAGE => 'UPDATE_MESSAGE', + self::UPDATE_USER_MESSAGE_CARDS => 'UPDATE_USER_MESSAGE_CARDS', + self::REQUEST_CONFIG => 'REQUEST_CONFIG', + self::DIALOG => 'DIALOG', + self::UPDATE_WIDGET => 'UPDATE_WIDGET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php new file mode 100644 index 000000000000..9687280ca122 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php @@ -0,0 +1,67 @@ +google.chat.v1.ActionResponse.SelectionItems + */ +class SelectionItems extends \Google\Protobuf\Internal\Message +{ + /** + * An array of the SelectionItem objects. + * + * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; + */ + private $items; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $items + * An array of the SelectionItem objects. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * An array of the SelectionItem objects. + * + * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; + * @return RepeatedField<\Google\Apps\Card\V1\SelectionInput\SelectionItem> + */ + public function getItems() + { + return $this->items; + } + + /** + * An array of the SelectionItem objects. + * + * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; + * @param \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\SelectionInput\SelectionItem::class); + $this->items = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php new file mode 100644 index 000000000000..83e0550a5cd5 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php @@ -0,0 +1,114 @@ +google.chat.v1.ActionResponse.UpdatedWidget + */ +class UpdatedWidget extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the updated widget. The ID must match the one for the + * widget that triggered the update request. + * + * Generated from protobuf field string widget = 2; + */ + protected $widget = ''; + protected $updated_widget; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\ActionResponse\SelectionItems $suggestions + * List of widget autocomplete results + * @type string $widget + * The ID of the updated widget. The ID must match the one for the + * widget that triggered the update request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * List of widget autocomplete results + * + * Generated from protobuf field .google.chat.v1.ActionResponse.SelectionItems suggestions = 1; + * @return \Google\Apps\Chat\V1\ActionResponse\SelectionItems|null + */ + public function getSuggestions() + { + return $this->readOneof(1); + } + + public function hasSuggestions() + { + return $this->hasOneof(1); + } + + /** + * List of widget autocomplete results + * + * Generated from protobuf field .google.chat.v1.ActionResponse.SelectionItems suggestions = 1; + * @param \Google\Apps\Chat\V1\ActionResponse\SelectionItems $var + * @return $this + */ + public function setSuggestions($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse\SelectionItems::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The ID of the updated widget. The ID must match the one for the + * widget that triggered the update request. + * + * Generated from protobuf field string widget = 2; + * @return string + */ + public function getWidget() + { + return $this->widget; + } + + /** + * The ID of the updated widget. The ID must match the one for the + * widget that triggered the update request. + * + * Generated from protobuf field string widget = 2; + * @param string $var + * @return $this + */ + public function setWidget($var) + { + GPBUtil::checkString($var, True); + $this->widget = $var; + + return $this; + } + + /** + * @return string + */ + public function getUpdatedWidget() + { + return $this->whichOneof("updated_widget"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php new file mode 100644 index 000000000000..a7e884542f1d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php @@ -0,0 +1,106 @@ +google.chat.v1.ActionStatus + */ +class ActionStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The status code. + * + * Generated from protobuf field .google.rpc.Code status_code = 1; + */ + protected $status_code = 0; + /** + * The message to send users about the status of their request. + * If unset, a generic message based on the `status_code` is sent. + * + * Generated from protobuf field string user_facing_message = 2; + */ + protected $user_facing_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $status_code + * The status code. + * @type string $user_facing_message + * The message to send users about the status of their request. + * If unset, a generic message based on the `status_code` is sent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ActionStatus::initOnce(); + parent::__construct($data); + } + + /** + * The status code. + * + * Generated from protobuf field .google.rpc.Code status_code = 1; + * @return int + */ + public function getStatusCode() + { + return $this->status_code; + } + + /** + * The status code. + * + * Generated from protobuf field .google.rpc.Code status_code = 1; + * @param int $var + * @return $this + */ + public function setStatusCode($var) + { + GPBUtil::checkEnum($var, \Google\Rpc\Code::class); + $this->status_code = $var; + + return $this; + } + + /** + * The message to send users about the status of their request. + * If unset, a generic message based on the `status_code` is sent. + * + * Generated from protobuf field string user_facing_message = 2; + * @return string + */ + public function getUserFacingMessage() + { + return $this->user_facing_message; + } + + /** + * The message to send users about the status of their request. + * If unset, a generic message based on the `status_code` is sent. + * + * Generated from protobuf field string user_facing_message = 2; + * @param string $var + * @return $this + */ + public function setUserFacingMessage($var) + { + GPBUtil::checkString($var, True); + $this->user_facing_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php new file mode 100644 index 000000000000..f6b4b05578bc --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php @@ -0,0 +1,319 @@ +google.chat.v1.Annotation + */ +class Annotation extends \Google\Protobuf\Internal\Message +{ + /** + * The type of this annotation. + * + * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; + */ + protected $type = 0; + /** + * Start index (0-based, inclusive) in the plain-text message body this + * annotation corresponds to. + * + * Generated from protobuf field optional int32 start_index = 2; + */ + protected $start_index = null; + /** + * Length of the substring in the plain-text message body this annotation + * corresponds to. If not present, indicates a length of 0. + * + * Generated from protobuf field int32 length = 3; + */ + protected $length = 0; + protected $metadata; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The type of this annotation. + * @type int $start_index + * Start index (0-based, inclusive) in the plain-text message body this + * annotation corresponds to. + * @type int $length + * Length of the substring in the plain-text message body this annotation + * corresponds to. If not present, indicates a length of 0. + * @type \Google\Apps\Chat\V1\UserMentionMetadata $user_mention + * The metadata of user mention. + * @type \Google\Apps\Chat\V1\SlashCommandMetadata $slash_command + * The metadata for a slash command. + * @type \Google\Apps\Chat\V1\RichLinkMetadata $rich_link_metadata + * The metadata for a rich link. + * @type \Google\Apps\Chat\V1\CustomEmojiMetadata $custom_emoji_metadata + * The metadata for a custom emoji. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * The type of this annotation. + * + * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of this annotation. + * + * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\AnnotationType::class); + $this->type = $var; + + return $this; + } + + /** + * Start index (0-based, inclusive) in the plain-text message body this + * annotation corresponds to. + * + * Generated from protobuf field optional int32 start_index = 2; + * @return int + */ + public function getStartIndex() + { + return isset($this->start_index) ? $this->start_index : 0; + } + + public function hasStartIndex() + { + return isset($this->start_index); + } + + public function clearStartIndex() + { + unset($this->start_index); + } + + /** + * Start index (0-based, inclusive) in the plain-text message body this + * annotation corresponds to. + * + * Generated from protobuf field optional int32 start_index = 2; + * @param int $var + * @return $this + */ + public function setStartIndex($var) + { + GPBUtil::checkInt32($var); + $this->start_index = $var; + + return $this; + } + + /** + * Length of the substring in the plain-text message body this annotation + * corresponds to. If not present, indicates a length of 0. + * + * Generated from protobuf field int32 length = 3; + * @return int + */ + public function getLength() + { + return $this->length; + } + + /** + * Length of the substring in the plain-text message body this annotation + * corresponds to. If not present, indicates a length of 0. + * + * Generated from protobuf field int32 length = 3; + * @param int $var + * @return $this + */ + public function setLength($var) + { + GPBUtil::checkInt32($var); + $this->length = $var; + + return $this; + } + + /** + * The metadata of user mention. + * + * Generated from protobuf field .google.chat.v1.UserMentionMetadata user_mention = 4; + * @return \Google\Apps\Chat\V1\UserMentionMetadata|null + */ + public function getUserMention() + { + return $this->readOneof(4); + } + + public function hasUserMention() + { + return $this->hasOneof(4); + } + + /** + * The metadata of user mention. + * + * Generated from protobuf field .google.chat.v1.UserMentionMetadata user_mention = 4; + * @param \Google\Apps\Chat\V1\UserMentionMetadata $var + * @return $this + */ + public function setUserMention($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\UserMentionMetadata::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The metadata for a slash command. + * + * Generated from protobuf field .google.chat.v1.SlashCommandMetadata slash_command = 5; + * @return \Google\Apps\Chat\V1\SlashCommandMetadata|null + */ + public function getSlashCommand() + { + return $this->readOneof(5); + } + + public function hasSlashCommand() + { + return $this->hasOneof(5); + } + + /** + * The metadata for a slash command. + * + * Generated from protobuf field .google.chat.v1.SlashCommandMetadata slash_command = 5; + * @param \Google\Apps\Chat\V1\SlashCommandMetadata $var + * @return $this + */ + public function setSlashCommand($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SlashCommandMetadata::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The metadata for a rich link. + * + * Generated from protobuf field .google.chat.v1.RichLinkMetadata rich_link_metadata = 6; + * @return \Google\Apps\Chat\V1\RichLinkMetadata|null + */ + public function getRichLinkMetadata() + { + return $this->readOneof(6); + } + + public function hasRichLinkMetadata() + { + return $this->hasOneof(6); + } + + /** + * The metadata for a rich link. + * + * Generated from protobuf field .google.chat.v1.RichLinkMetadata rich_link_metadata = 6; + * @param \Google\Apps\Chat\V1\RichLinkMetadata $var + * @return $this + */ + public function setRichLinkMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\RichLinkMetadata::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The metadata for a custom emoji. + * + * Generated from protobuf field .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * @return \Google\Apps\Chat\V1\CustomEmojiMetadata|null + */ + public function getCustomEmojiMetadata() + { + return $this->readOneof(7); + } + + public function hasCustomEmojiMetadata() + { + return $this->hasOneof(7); + } + + /** + * The metadata for a custom emoji. + * + * Generated from protobuf field .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * @param \Google\Apps\Chat\V1\CustomEmojiMetadata $var + * @return $this + */ + public function setCustomEmojiMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmojiMetadata::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * @return string + */ + public function getMetadata() + { + return $this->whichOneof("metadata"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php new file mode 100644 index 000000000000..a7e8ec8531bb --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php @@ -0,0 +1,75 @@ +google.chat.v1.AnnotationType + */ +class AnnotationType +{ + /** + * Default value for the enum. Don't use. + * + * Generated from protobuf enum ANNOTATION_TYPE_UNSPECIFIED = 0; + */ + const ANNOTATION_TYPE_UNSPECIFIED = 0; + /** + * A user is mentioned. + * + * Generated from protobuf enum USER_MENTION = 1; + */ + const USER_MENTION = 1; + /** + * A slash command is invoked. + * + * Generated from protobuf enum SLASH_COMMAND = 2; + */ + const SLASH_COMMAND = 2; + /** + * A rich link annotation. + * + * Generated from protobuf enum RICH_LINK = 3; + */ + const RICH_LINK = 3; + /** + * A custom emoji annotation. + * + * Generated from protobuf enum CUSTOM_EMOJI = 4; + */ + const CUSTOM_EMOJI = 4; + + private static $valueToName = [ + self::ANNOTATION_TYPE_UNSPECIFIED => 'ANNOTATION_TYPE_UNSPECIFIED', + self::USER_MENTION => 'USER_MENTION', + self::SLASH_COMMAND => 'SLASH_COMMAND', + self::RICH_LINK => 'RICH_LINK', + self::CUSTOM_EMOJI => 'CUSTOM_EMOJI', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php new file mode 100644 index 000000000000..d9fee462c44c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php @@ -0,0 +1,67 @@ +google.chat.v1.AttachedGif + */ +class AttachedGif extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The URL that hosts the GIF image. + * + * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * Output only. The URL that hosts the GIF image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The URL that hosts the GIF image. + * + * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Output only. The URL that hosts the GIF image. + * + * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php new file mode 100644 index 000000000000..988d9ff3f73b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php @@ -0,0 +1,341 @@ +google.chat.v1.Attachment + */ +class Attachment extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the attachment. + * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The original file name for the content, not the full path. + * + * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $content_name = ''; + /** + * Output only. The content type (MIME type) of the file. + * + * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $content_type = ''; + /** + * Output only. The thumbnail URL which should be used to preview the + * attachment to a human user. Chat apps shouldn't use this URL to download + * attachment content. + * + * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $thumbnail_uri = ''; + /** + * Output only. The download URL which should be used to allow a human user to + * download the attachment. Chat apps shouldn't use this URL to download + * attachment content. + * + * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $download_uri = ''; + /** + * Output only. The source of the attachment. + * + * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source = 0; + protected $data_ref; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the attachment. + * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. + * @type string $content_name + * Output only. The original file name for the content, not the full path. + * @type string $content_type + * Output only. The content type (MIME type) of the file. + * @type \Google\Apps\Chat\V1\AttachmentDataRef $attachment_data_ref + * Optional. A reference to the attachment data. This field is used to + * create or update messages with attachments, or with the media API to + * download the attachment data. + * @type \Google\Apps\Chat\V1\DriveDataRef $drive_data_ref + * Output only. A reference to the Google Drive attachment. This field is + * used with the Google Drive API. + * @type string $thumbnail_uri + * Output only. The thumbnail URL which should be used to preview the + * attachment to a human user. Chat apps shouldn't use this URL to download + * attachment content. + * @type string $download_uri + * Output only. The download URL which should be used to allow a human user to + * download the attachment. Chat apps shouldn't use this URL to download + * attachment content. + * @type int $source + * Output only. The source of the attachment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the attachment. + * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the attachment. + * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The original file name for the content, not the full path. + * + * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getContentName() + { + return $this->content_name; + } + + /** + * Output only. The original file name for the content, not the full path. + * + * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setContentName($var) + { + GPBUtil::checkString($var, True); + $this->content_name = $var; + + return $this; + } + + /** + * Output only. The content type (MIME type) of the file. + * + * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getContentType() + { + return $this->content_type; + } + + /** + * Output only. The content type (MIME type) of the file. + * + * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setContentType($var) + { + GPBUtil::checkString($var, True); + $this->content_type = $var; + + return $this; + } + + /** + * Optional. A reference to the attachment data. This field is used to + * create or update messages with attachments, or with the media API to + * download the attachment data. + * + * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\AttachmentDataRef|null + */ + public function getAttachmentDataRef() + { + return $this->readOneof(4); + } + + public function hasAttachmentDataRef() + { + return $this->hasOneof(4); + } + + /** + * Optional. A reference to the attachment data. This field is used to + * create or update messages with attachments, or with the media API to + * download the attachment data. + * + * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\AttachmentDataRef $var + * @return $this + */ + public function setAttachmentDataRef($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\AttachmentDataRef::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. A reference to the Google Drive attachment. This field is + * used with the Google Drive API. + * + * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\DriveDataRef|null + */ + public function getDriveDataRef() + { + return $this->readOneof(7); + } + + public function hasDriveDataRef() + { + return $this->hasOneof(7); + } + + /** + * Output only. A reference to the Google Drive attachment. This field is + * used with the Google Drive API. + * + * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\DriveDataRef $var + * @return $this + */ + public function setDriveDataRef($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveDataRef::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Output only. The thumbnail URL which should be used to preview the + * attachment to a human user. Chat apps shouldn't use this URL to download + * attachment content. + * + * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getThumbnailUri() + { + return $this->thumbnail_uri; + } + + /** + * Output only. The thumbnail URL which should be used to preview the + * attachment to a human user. Chat apps shouldn't use this URL to download + * attachment content. + * + * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setThumbnailUri($var) + { + GPBUtil::checkString($var, True); + $this->thumbnail_uri = $var; + + return $this; + } + + /** + * Output only. The download URL which should be used to allow a human user to + * download the attachment. Chat apps shouldn't use this URL to download + * attachment content. + * + * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDownloadUri() + { + return $this->download_uri; + } + + /** + * Output only. The download URL which should be used to allow a human user to + * download the attachment. Chat apps shouldn't use this URL to download + * attachment content. + * + * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDownloadUri($var) + { + GPBUtil::checkString($var, True); + $this->download_uri = $var; + + return $this; + } + + /** + * Output only. The source of the attachment. + * + * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSource() + { + return $this->source; + } + + /** + * Output only. The source of the attachment. + * + * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Attachment\Source::class); + $this->source = $var; + + return $this; + } + + /** + * @return string + */ + public function getDataRef() + { + return $this->whichOneof("data_ref"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php new file mode 100644 index 000000000000..b12691b35fa6 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php @@ -0,0 +1,61 @@ +google.chat.v1.Attachment.Source + */ +class Source +{ + /** + * Reserved. + * + * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; + */ + const SOURCE_UNSPECIFIED = 0; + /** + * The file is a Google Drive file. + * + * Generated from protobuf enum DRIVE_FILE = 1; + */ + const DRIVE_FILE = 1; + /** + * The file is uploaded to Chat. + * + * Generated from protobuf enum UPLOADED_CONTENT = 2; + */ + const UPLOADED_CONTENT = 2; + + private static $valueToName = [ + self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', + self::DRIVE_FILE => 'DRIVE_FILE', + self::UPLOADED_CONTENT => 'UPLOADED_CONTENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php new file mode 100644 index 000000000000..3c3bfa160c86 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php @@ -0,0 +1,113 @@ +google.chat.v1.AttachmentDataRef + */ +class AttachmentDataRef extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource name of the attachment data. This field is used with + * the media API to download the attachment data. + * + * Generated from protobuf field string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $resource_name = ''; + /** + * Optional. Opaque token containing a reference to an uploaded attachment. + * Treated by clients as an opaque string and used to create or update Chat + * messages with attachments. + * + * Generated from protobuf field string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $attachment_upload_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_name + * Optional. The resource name of the attachment data. This field is used with + * the media API to download the attachment data. + * @type string $attachment_upload_token + * Optional. Opaque token containing a reference to an uploaded attachment. + * Treated by clients as an opaque string and used to create or update Chat + * messages with attachments. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource name of the attachment data. This field is used with + * the media API to download the attachment data. + * + * Generated from protobuf field string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getResourceName() + { + return $this->resource_name; + } + + /** + * Optional. The resource name of the attachment data. This field is used with + * the media API to download the attachment data. + * + * Generated from protobuf field string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setResourceName($var) + { + GPBUtil::checkString($var, True); + $this->resource_name = $var; + + return $this; + } + + /** + * Optional. Opaque token containing a reference to an uploaded attachment. + * Treated by clients as an opaque string and used to create or update Chat + * messages with attachments. + * + * Generated from protobuf field string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAttachmentUploadToken() + { + return $this->attachment_upload_token; + } + + /** + * Optional. Opaque token containing a reference to an uploaded attachment. + * Treated by clients as an opaque string and used to create or update Chat + * messages with attachments. + * + * Generated from protobuf field string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAttachmentUploadToken($var) + { + GPBUtil::checkString($var, True); + $this->attachment_upload_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php new file mode 100644 index 000000000000..64c2af587a40 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php @@ -0,0 +1,117 @@ +google.chat.v1.CalendarEventLinkData + */ +class CalendarEventLinkData extends \Google\Protobuf\Internal\Message +{ + /** + * The [Calendar + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) + * of the linked Calendar. + * + * Generated from protobuf field string calendar_id = 1; + */ + protected $calendar_id = ''; + /** + * The [Event + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) + * of the linked Calendar event. + * + * Generated from protobuf field string event_id = 2; + */ + protected $event_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $calendar_id + * The [Calendar + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) + * of the linked Calendar. + * @type string $event_id + * The [Event + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) + * of the linked Calendar event. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * The [Calendar + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) + * of the linked Calendar. + * + * Generated from protobuf field string calendar_id = 1; + * @return string + */ + public function getCalendarId() + { + return $this->calendar_id; + } + + /** + * The [Calendar + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) + * of the linked Calendar. + * + * Generated from protobuf field string calendar_id = 1; + * @param string $var + * @return $this + */ + public function setCalendarId($var) + { + GPBUtil::checkString($var, True); + $this->calendar_id = $var; + + return $this; + } + + /** + * The [Event + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) + * of the linked Calendar event. + * + * Generated from protobuf field string event_id = 2; + * @return string + */ + public function getEventId() + { + return $this->event_id; + } + + /** + * The [Event + * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) + * of the linked Calendar event. + * + * Generated from protobuf field string event_id = 2; + * @param string $var + * @return $this + */ + public function setEventId($var) + { + GPBUtil::checkString($var, True); + $this->event_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php new file mode 100644 index 000000000000..2cb476ce19f7 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php @@ -0,0 +1,121 @@ +google.chat.v1.CardWithId + */ +class CardWithId extends \Google\Protobuf\Internal\Message +{ + /** + * Required if the message contains multiple cards. A unique identifier for + * a card in a message. + * + * Generated from protobuf field string card_id = 1; + */ + protected $card_id = ''; + /** + * A card. Maximum size is 32 KB. + * + * Generated from protobuf field .google.apps.card.v1.Card card = 2; + */ + protected $card = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $card_id + * Required if the message contains multiple cards. A unique identifier for + * a card in a message. + * @type \Google\Apps\Card\V1\Card $card + * A card. Maximum size is 32 KB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Required if the message contains multiple cards. A unique identifier for + * a card in a message. + * + * Generated from protobuf field string card_id = 1; + * @return string + */ + public function getCardId() + { + return $this->card_id; + } + + /** + * Required if the message contains multiple cards. A unique identifier for + * a card in a message. + * + * Generated from protobuf field string card_id = 1; + * @param string $var + * @return $this + */ + public function setCardId($var) + { + GPBUtil::checkString($var, True); + $this->card_id = $var; + + return $this; + } + + /** + * A card. Maximum size is 32 KB. + * + * Generated from protobuf field .google.apps.card.v1.Card card = 2; + * @return \Google\Apps\Card\V1\Card|null + */ + public function getCard() + { + return $this->card; + } + + public function hasCard() + { + return isset($this->card); + } + + public function clearCard() + { + unset($this->card); + } + + /** + * A card. Maximum size is 32 KB. + * + * Generated from protobuf field .google.apps.card.v1.Card card = 2; + * @param \Google\Apps\Card\V1\Card $var + * @return $this + */ + public function setCard($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); + $this->card = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php new file mode 100644 index 000000000000..41a2a747b168 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php @@ -0,0 +1,147 @@ +google.chat.v1.ChatSpaceLinkData + */ +class ChatSpaceLinkData extends \Google\Protobuf\Internal\Message +{ + /** + * The space of the linked Chat space resource. + * Format: `spaces/{space}` + * + * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { + */ + protected $space = ''; + /** + * The thread of the linked Chat space resource. + * Format: `spaces/{space}/threads/{thread}` + * + * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { + */ + protected $thread = ''; + /** + * The message of the linked Chat space resource. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $space + * The space of the linked Chat space resource. + * Format: `spaces/{space}` + * @type string $thread + * The thread of the linked Chat space resource. + * Format: `spaces/{space}/threads/{thread}` + * @type string $message + * The message of the linked Chat space resource. + * Format: `spaces/{space}/messages/{message}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * The space of the linked Chat space resource. + * Format: `spaces/{space}` + * + * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getSpace() + { + return $this->space; + } + + /** + * The space of the linked Chat space resource. + * Format: `spaces/{space}` + * + * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkString($var, True); + $this->space = $var; + + return $this; + } + + /** + * The thread of the linked Chat space resource. + * Format: `spaces/{space}/threads/{thread}` + * + * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getThread() + { + return $this->thread; + } + + /** + * The thread of the linked Chat space resource. + * Format: `spaces/{space}/threads/{thread}` + * + * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setThread($var) + { + GPBUtil::checkString($var, True); + $this->thread = $var; + + return $this; + } + + /** + * The message of the linked Chat space resource. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The message of the linked Chat space resource. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php new file mode 100644 index 000000000000..4b285bea2fbd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php @@ -0,0 +1,71 @@ +google.chat.v1.CompleteImportSpaceRequest + */ +class CompleteImportSpaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the import mode space. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the import mode space. + * Format: `spaces/{space}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the import mode space. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the import mode space. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php new file mode 100644 index 000000000000..272e3546b607 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php @@ -0,0 +1,77 @@ +google.chat.v1.CompleteImportSpaceResponse + */ +class CompleteImportSpaceResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The import mode space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1; + */ + protected $space = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space $space + * The import mode space. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * The import mode space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1; + * @return \Google\Apps\Chat\V1\Space|null + */ + public function getSpace() + { + return $this->space; + } + + public function hasSpace() + { + return isset($this->space); + } + + public function clearSpace() + { + unset($this->space); + } + + /** + * The import mode space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1; + * @param \Google\Apps\Chat\V1\Space $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); + $this->space = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php new file mode 100644 index 000000000000..6077a074c001 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php @@ -0,0 +1,33 @@ +google.chat.v1.ContextualAddOnMarkup + */ +class ContextualAddOnMarkup extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php new file mode 100644 index 000000000000..4dcfb95e45db --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php @@ -0,0 +1,180 @@ +google.chat.v1.ContextualAddOnMarkup.Card + */ +class Card extends \Google\Protobuf\Internal\Message +{ + /** + * The header of the card. A header usually contains a title and an image. + * + * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; + */ + protected $header = null; + /** + * Sections are separated by a line divider. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; + */ + private $sections; + /** + * The actions of this card. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; + */ + private $card_actions; + /** + * Name of the card. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader $header + * The header of the card. A header usually contains a title and an image. + * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section[] $sections + * Sections are separated by a line divider. + * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction[] $card_actions + * The actions of this card. + * @type string $name + * Name of the card. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); + parent::__construct($data); + } + + /** + * The header of the card. A header usually contains a title and an image. + * + * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; + * @return \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The header of the card. A header usually contains a title and an image. + * + * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; + * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Sections are separated by a line divider. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; + * @return RepeatedField<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section> + */ + public function getSections() + { + return $this->sections; + } + + /** + * Sections are separated by a line divider. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; + * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section[] $var + * @return $this + */ + public function setSections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section::class); + $this->sections = $arr; + + return $this; + } + + /** + * The actions of this card. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; + * @return RepeatedField<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction> + */ + public function getCardActions() + { + return $this->card_actions; + } + + /** + * The actions of this card. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; + * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction[] $var + * @return $this + */ + public function setCardActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction::class); + $this->card_actions = $arr; + + return $this; + } + + /** + * Name of the card. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the card. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php new file mode 100644 index 000000000000..c387e1e551b5 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php @@ -0,0 +1,115 @@ +google.chat.v1.ContextualAddOnMarkup.Card.CardAction + */ +class CardAction extends \Google\Protobuf\Internal\Message +{ + /** + * The label used to be displayed in the action menu item. + * + * Generated from protobuf field string action_label = 1; + */ + protected $action_label = ''; + /** + * The onclick action for this action item. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + */ + protected $on_click = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $action_label + * The label used to be displayed in the action menu item. + * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click + * The onclick action for this action item. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); + parent::__construct($data); + } + + /** + * The label used to be displayed in the action menu item. + * + * Generated from protobuf field string action_label = 1; + * @return string + */ + public function getActionLabel() + { + return $this->action_label; + } + + /** + * The label used to be displayed in the action menu item. + * + * Generated from protobuf field string action_label = 1; + * @param string $var + * @return $this + */ + public function setActionLabel($var) + { + GPBUtil::checkString($var, True); + $this->action_label = $var; + + return $this; + } + + /** + * The onclick action for this action item. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * The onclick action for this action item. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); + $this->on_click = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php new file mode 100644 index 000000000000..6829b3f87bb4 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php @@ -0,0 +1,175 @@ +google.chat.v1.ContextualAddOnMarkup.Card.CardHeader + */ +class CardHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The title must be specified. The header has a fixed height: if both a + * title and subtitle is specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * + * Generated from protobuf field string title = 1; + */ + protected $title = ''; + /** + * The subtitle of the card header. + * + * Generated from protobuf field string subtitle = 2; + */ + protected $subtitle = ''; + /** + * The image's type (for example, square border or circular border). + * + * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; + */ + protected $image_style = 0; + /** + * The URL of the image in the card header. + * + * Generated from protobuf field string image_url = 4; + */ + protected $image_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * The title must be specified. The header has a fixed height: if both a + * title and subtitle is specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * @type string $subtitle + * The subtitle of the card header. + * @type int $image_style + * The image's type (for example, square border or circular border). + * @type string $image_url + * The URL of the image in the card header. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); + parent::__construct($data); + } + + /** + * The title must be specified. The header has a fixed height: if both a + * title and subtitle is specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * The title must be specified. The header has a fixed height: if both a + * title and subtitle is specified, each takes up one line. If only the + * title is specified, it takes up both lines. + * + * Generated from protobuf field string title = 1; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * The subtitle of the card header. + * + * Generated from protobuf field string subtitle = 2; + * @return string + */ + public function getSubtitle() + { + return $this->subtitle; + } + + /** + * The subtitle of the card header. + * + * Generated from protobuf field string subtitle = 2; + * @param string $var + * @return $this + */ + public function setSubtitle($var) + { + GPBUtil::checkString($var, True); + $this->subtitle = $var; + + return $this; + } + + /** + * The image's type (for example, square border or circular border). + * + * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; + * @return int + */ + public function getImageStyle() + { + return $this->image_style; + } + + /** + * The image's type (for example, square border or circular border). + * + * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; + * @param int $var + * @return $this + */ + public function setImageStyle($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader\ImageStyle::class); + $this->image_style = $var; + + return $this; + } + + /** + * The URL of the image in the card header. + * + * Generated from protobuf field string image_url = 4; + * @return string + */ + public function getImageUrl() + { + return $this->image_url; + } + + /** + * The URL of the image in the card header. + * + * Generated from protobuf field string image_url = 4; + * @param string $var + * @return $this + */ + public function setImageUrl($var) + { + GPBUtil::checkString($var, True); + $this->image_url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php new file mode 100644 index 000000000000..35a223fa693d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php @@ -0,0 +1,57 @@ +google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle + */ +class ImageStyle +{ + /** + * Generated from protobuf enum IMAGE_STYLE_UNSPECIFIED = 0; + */ + const IMAGE_STYLE_UNSPECIFIED = 0; + /** + * Square border. + * + * Generated from protobuf enum IMAGE = 1; + */ + const IMAGE = 1; + /** + * Circular border. + * + * Generated from protobuf enum AVATAR = 2; + */ + const AVATAR = 2; + + private static $valueToName = [ + self::IMAGE_STYLE_UNSPECIFIED => 'IMAGE_STYLE_UNSPECIFIED', + self::IMAGE => 'IMAGE', + self::AVATAR => 'AVATAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php new file mode 100644 index 000000000000..0cf8d98314f6 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php @@ -0,0 +1,136 @@ +google.chat.v1.ContextualAddOnMarkup.Card.Section + */ +class Section extends \Google\Protobuf\Internal\Message +{ + /** + * The header of the section. Formatted text is + * supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string header = 1; + */ + protected $header = ''; + /** + * A section must contain at least one widget. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; + */ + private $widgets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $header + * The header of the section. Formatted text is + * supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * @type \Google\Apps\Chat\V1\WidgetMarkup[] $widgets + * A section must contain at least one widget. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); + parent::__construct($data); + } + + /** + * The header of the section. Formatted text is + * supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string header = 1; + * @return string + */ + public function getHeader() + { + return $this->header; + } + + /** + * The header of the section. Formatted text is + * supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string header = 1; + * @param string $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkString($var, True); + $this->header = $var; + + return $this; + } + + /** + * A section must contain at least one widget. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; + * @return RepeatedField<\Google\Apps\Chat\V1\WidgetMarkup> + */ + public function getWidgets() + { + return $this->widgets; + } + + /** + * A section must contain at least one widget. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup[] $var + * @return $this + */ + public function setWidgets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup::class); + $this->widgets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php new file mode 100644 index 000000000000..a3eff2d76759 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php @@ -0,0 +1,90 @@ +google.chat.v1.CreateCustomEmojiRequest + */ +class CreateCustomEmojiRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The custom emoji to create. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_emoji = null; + + /** + * @param \Google\Apps\Chat\V1\CustomEmoji $customEmoji Required. The custom emoji to create. + * + * @return \Google\Apps\Chat\V1\CreateCustomEmojiRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\CustomEmoji $customEmoji): self + { + return (new self()) + ->setCustomEmoji($customEmoji); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji + * Required. The custom emoji to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Required. The custom emoji to create. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\CustomEmoji|null + */ + public function getCustomEmoji() + { + return $this->custom_emoji; + } + + public function hasCustomEmoji() + { + return isset($this->custom_emoji); + } + + public function clearCustomEmoji() + { + unset($this->custom_emoji); + } + + /** + * Required. The custom emoji to create. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\CustomEmoji $var + * @return $this + */ + public function setCustomEmoji($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class); + $this->custom_emoji = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php new file mode 100644 index 000000000000..2aadcb15286a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php @@ -0,0 +1,350 @@ +google.chat.v1.CreateMembershipRequest + */ +class CreateMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the space for which to create the + * membership. + * Format: spaces/{space} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The membership relation to create. + * The `memberType` field must contain a user with the `user.name` and + * `user.type` fields populated. The server will assign a resource name + * and overwrite anything specified. + * When a Chat app creates a membership relation for a human user, it must use + * certain authorization scopes and set specific values for certain fields: + * - When [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the `chat.memberships` authorization scope is required. + * - When [authenticating as an + * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * the `chat.app.memberships` authorization scope is required. + * - Set `user.type` to `HUMAN`, and set `user.name` with format + * `users/{user}`, where `{user}` can be the email address for the user. For + * users in the same Workspace organization `{user}` can also be the `id` of + * the [person](https://developers.google.com/people/api/rest/v1/people) from + * the People API, or the `id` for the user in the Directory API. For example, + * if the People API Person profile ID for `user\@example.com` is `123456789`, + * you can add the user to the space by setting the `membership.member.name` + * to `users/user\@example.com` or `users/123456789`. + * Inviting users external to the Workspace organization that owns the space + * requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * When a Chat app creates a membership relation for itself, it must + * [authenticate as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set + * `user.name` to `users/app`. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $membership = null; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Creating app memberships or creating memberships for users outside the + * administrator's Google Workspace organization isn't supported using admin + * access. + * + * Generated from protobuf field bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param string $parent Required. The resource name of the space for which to create the + * membership. + * + * Format: spaces/{space} + * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. + * @param \Google\Apps\Chat\V1\Membership $membership Required. The membership relation to create. + * + * The `memberType` field must contain a user with the `user.name` and + * `user.type` fields populated. The server will assign a resource name + * and overwrite anything specified. + * + * When a Chat app creates a membership relation for a human user, it must use + * certain authorization scopes and set specific values for certain fields: + * + * - When [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the `chat.memberships` authorization scope is required. + * + * - When [authenticating as an + * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * the `chat.app.memberships` authorization scope is required. + * + * - Set `user.type` to `HUMAN`, and set `user.name` with format + * `users/{user}`, where `{user}` can be the email address for the user. For + * users in the same Workspace organization `{user}` can also be the `id` of + * the [person](https://developers.google.com/people/api/rest/v1/people) from + * the People API, or the `id` for the user in the Directory API. For example, + * if the People API Person profile ID for `user@example.com` is `123456789`, + * you can add the user to the space by setting the `membership.member.name` + * to `users/user@example.com` or `users/123456789`. + * + * Inviting users external to the Workspace organization that owns the space + * requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * When a Chat app creates a membership relation for itself, it must + * [authenticate as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set + * `user.name` to `users/app`. + * + * @return \Google\Apps\Chat\V1\CreateMembershipRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Apps\Chat\V1\Membership $membership): self + { + return (new self()) + ->setParent($parent) + ->setMembership($membership); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the space for which to create the + * membership. + * Format: spaces/{space} + * @type \Google\Apps\Chat\V1\Membership $membership + * Required. The membership relation to create. + * The `memberType` field must contain a user with the `user.name` and + * `user.type` fields populated. The server will assign a resource name + * and overwrite anything specified. + * When a Chat app creates a membership relation for a human user, it must use + * certain authorization scopes and set specific values for certain fields: + * - When [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the `chat.memberships` authorization scope is required. + * - When [authenticating as an + * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * the `chat.app.memberships` authorization scope is required. + * - Set `user.type` to `HUMAN`, and set `user.name` with format + * `users/{user}`, where `{user}` can be the email address for the user. For + * users in the same Workspace organization `{user}` can also be the `id` of + * the [person](https://developers.google.com/people/api/rest/v1/people) from + * the People API, or the `id` for the user in the Directory API. For example, + * if the People API Person profile ID for `user\@example.com` is `123456789`, + * you can add the user to the space by setting the `membership.member.name` + * to `users/user\@example.com` or `users/123456789`. + * Inviting users external to the Workspace organization that owns the space + * requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * When a Chat app creates a membership relation for itself, it must + * [authenticate as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set + * `user.name` to `users/app`. + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Creating app memberships or creating memberships for users outside the + * administrator's Google Workspace organization isn't supported using admin + * access. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the space for which to create the + * membership. + * Format: spaces/{space} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the space for which to create the + * membership. + * Format: spaces/{space} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The membership relation to create. + * The `memberType` field must contain a user with the `user.name` and + * `user.type` fields populated. The server will assign a resource name + * and overwrite anything specified. + * When a Chat app creates a membership relation for a human user, it must use + * certain authorization scopes and set specific values for certain fields: + * - When [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the `chat.memberships` authorization scope is required. + * - When [authenticating as an + * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * the `chat.app.memberships` authorization scope is required. + * - Set `user.type` to `HUMAN`, and set `user.name` with format + * `users/{user}`, where `{user}` can be the email address for the user. For + * users in the same Workspace organization `{user}` can also be the `id` of + * the [person](https://developers.google.com/people/api/rest/v1/people) from + * the People API, or the `id` for the user in the Directory API. For example, + * if the People API Person profile ID for `user\@example.com` is `123456789`, + * you can add the user to the space by setting the `membership.member.name` + * to `users/user\@example.com` or `users/123456789`. + * Inviting users external to the Workspace organization that owns the space + * requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * When a Chat app creates a membership relation for itself, it must + * [authenticate as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set + * `user.name` to `users/app`. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Membership|null + */ + public function getMembership() + { + return $this->membership; + } + + public function hasMembership() + { + return isset($this->membership); + } + + public function clearMembership() + { + unset($this->membership); + } + + /** + * Required. The membership relation to create. + * The `memberType` field must contain a user with the `user.name` and + * `user.type` fields populated. The server will assign a resource name + * and overwrite anything specified. + * When a Chat app creates a membership relation for a human user, it must use + * certain authorization scopes and set specific values for certain fields: + * - When [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the `chat.memberships` authorization scope is required. + * - When [authenticating as an + * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * the `chat.app.memberships` authorization scope is required. + * - Set `user.type` to `HUMAN`, and set `user.name` with format + * `users/{user}`, where `{user}` can be the email address for the user. For + * users in the same Workspace organization `{user}` can also be the `id` of + * the [person](https://developers.google.com/people/api/rest/v1/people) from + * the People API, or the `id` for the user in the Directory API. For example, + * if the People API Person profile ID for `user\@example.com` is `123456789`, + * you can add the user to the space by setting the `membership.member.name` + * to `users/user\@example.com` or `users/123456789`. + * Inviting users external to the Workspace organization that owns the space + * requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * When a Chat app creates a membership relation for itself, it must + * [authenticate as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set + * `user.name` to `users/app`. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Membership $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); + $this->membership = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Creating app memberships or creating memberships for users outside the + * administrator's Google Workspace organization isn't supported using admin + * access. + * + * Generated from protobuf field bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Creating app memberships or creating memberships for users outside the + * administrator's Google Workspace organization isn't supported using admin + * access. + * + * Generated from protobuf field bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php new file mode 100644 index 000000000000..6b144c91c393 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php @@ -0,0 +1,67 @@ +google.chat.v1.CreateMessageNotificationOptions + */ +class CreateMessageNotificationOptions extends \Google\Protobuf\Internal\Message +{ + /** + * The notification type for the message. + * + * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1; + */ + protected $notification_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $notification_type + * The notification type for the message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * The notification type for the message. + * + * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1; + * @return int + */ + public function getNotificationType() + { + return $this->notification_type; + } + + /** + * The notification type for the message. + * + * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1; + * @param int $var + * @return $this + */ + public function setNotificationType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\CreateMessageNotificationOptions\NotificationType::class); + $this->notification_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php new file mode 100644 index 000000000000..6b71e84da553 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php @@ -0,0 +1,72 @@ +google.chat.v1.CreateMessageNotificationOptions.NotificationType + */ +class NotificationType +{ + /** + * Default behavior. Notification behavior is similar to when the human user + * sends the message using the Chat UI: no notification is sent to the + * human sender. + * + * Generated from protobuf enum NOTIFICATION_TYPE_NONE = 0; + */ + const NOTIFICATION_TYPE_NONE = 0; + /** + * Force notify recipients. This bypasses users' space notification settings + * and [Chat Do Not Disturb + * settings](https://support.google.com/chat/answer/9093489). This option + * does not bypass device-level Do Not Disturb settings. + * Requires [app authentication] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf enum NOTIFICATION_TYPE_FORCE_NOTIFY = 2; + */ + const NOTIFICATION_TYPE_FORCE_NOTIFY = 2; + /** + * Silence the notification as if the recipients have [Chat Do Not + * Disturb](https://support.google.com/chat/answer/9093489) enabled or + * have muted the space. + * Requires [app authentication] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf enum NOTIFICATION_TYPE_SILENT = 3; + */ + const NOTIFICATION_TYPE_SILENT = 3; + + private static $valueToName = [ + self::NOTIFICATION_TYPE_NONE => 'NOTIFICATION_TYPE_NONE', + self::NOTIFICATION_TYPE_FORCE_NOTIFY => 'NOTIFICATION_TYPE_FORCE_NOTIFY', + self::NOTIFICATION_TYPE_SILENT => 'NOTIFICATION_TYPE_SILENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php new file mode 100644 index 000000000000..3c9681463758 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php @@ -0,0 +1,444 @@ +google.chat.v1.CreateMessageRequest + */ +class CreateMessageRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the space in which to create a message. + * Format: `spaces/{space}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Message body. + * + * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $message = null; + /** + * Optional. Deprecated: Use + * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the + * thread. Supports up to 4000 characters. To start or add to a thread, create + * a message and specify a `threadKey` or the + * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or + * reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * + * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $thread_key = ''; + /** + * Optional. A unique request ID for this message. Specifying an existing + * request ID returns the message created with that ID instead of creating a + * new message. + * + * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. Specifies whether a message starts a thread or replies to one. + * Only supported in named spaces. + * When [responding to user + * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), + * this field is ignored. For interactions within a thread, the reply is + * created in the same thread. Otherwise, the reply is created as a new + * thread. + * + * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $message_reply_option = 0; + /** + * Optional. A custom ID for a message. Lets Chat apps get, update, or delete + * a message without needing to store the system-assigned ID in the message's + * resource name (represented in the message `name` field). + * The value for this field must meet the following requirements: + * * Begins with `client-`. For example, `client-custom-name` is a valid + * custom ID, but `custom-name` is not. + * * Contains up to 63 characters and only lowercase letters, numbers, and + * hyphens. + * * Is unique within a space. A Chat app can't use the same custom ID for + * different messages. + * For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $message_id = ''; + /** + * Optional. Controls the notification behavior when the message is posted. + * To learn more, see [Force notifications or send silent + * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). + * + * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions create_message_notification_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $create_message_notification_options = null; + + /** + * @param string $parent Required. The resource name of the space in which to create a message. + * + * Format: `spaces/{space}` + * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. + * @param \Google\Apps\Chat\V1\Message $message Required. Message body. + * @param string $messageId Optional. A custom ID for a message. Lets Chat apps get, update, or delete + * a message without needing to store the system-assigned ID in the message's + * resource name (represented in the message `name` field). + * + * The value for this field must meet the following requirements: + * + * * Begins with `client-`. For example, `client-custom-name` is a valid + * custom ID, but `custom-name` is not. + * * Contains up to 63 characters and only lowercase letters, numbers, and + * hyphens. + * * Is unique within a space. A Chat app can't use the same custom ID for + * different messages. + * + * For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * @return \Google\Apps\Chat\V1\CreateMessageRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Apps\Chat\V1\Message $message, string $messageId): self + { + return (new self()) + ->setParent($parent) + ->setMessage($message) + ->setMessageId($messageId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the space in which to create a message. + * Format: `spaces/{space}` + * @type \Google\Apps\Chat\V1\Message $message + * Required. Message body. + * @type string $thread_key + * Optional. Deprecated: Use + * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the + * thread. Supports up to 4000 characters. To start or add to a thread, create + * a message and specify a `threadKey` or the + * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or + * reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * @type string $request_id + * Optional. A unique request ID for this message. Specifying an existing + * request ID returns the message created with that ID instead of creating a + * new message. + * @type int $message_reply_option + * Optional. Specifies whether a message starts a thread or replies to one. + * Only supported in named spaces. + * When [responding to user + * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), + * this field is ignored. For interactions within a thread, the reply is + * created in the same thread. Otherwise, the reply is created as a new + * thread. + * @type string $message_id + * Optional. A custom ID for a message. Lets Chat apps get, update, or delete + * a message without needing to store the system-assigned ID in the message's + * resource name (represented in the message `name` field). + * The value for this field must meet the following requirements: + * * Begins with `client-`. For example, `client-custom-name` is a valid + * custom ID, but `custom-name` is not. + * * Contains up to 63 characters and only lowercase letters, numbers, and + * hyphens. + * * Is unique within a space. A Chat app can't use the same custom ID for + * different messages. + * For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * @type \Google\Apps\Chat\V1\CreateMessageNotificationOptions $create_message_notification_options + * Optional. Controls the notification behavior when the message is posted. + * To learn more, see [Force notifications or send silent + * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the space in which to create a message. + * Format: `spaces/{space}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the space in which to create a message. + * Format: `spaces/{space}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Message body. + * + * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Message|null + */ + public function getMessage() + { + return $this->message; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * Required. Message body. + * + * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Message $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); + $this->message = $var; + + return $this; + } + + /** + * Optional. Deprecated: Use + * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the + * thread. Supports up to 4000 characters. To start or add to a thread, create + * a message and specify a `threadKey` or the + * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or + * reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * + * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return string + * @deprecated + */ + public function getThreadKey() + { + if ($this->thread_key !== '') { + @trigger_error('thread_key is deprecated.', E_USER_DEPRECATED); + } + return $this->thread_key; + } + + /** + * Optional. Deprecated: Use + * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the + * thread. Supports up to 4000 characters. To start or add to a thread, create + * a message and specify a `threadKey` or the + * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or + * reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * + * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + * @deprecated + */ + public function setThreadKey($var) + { + @trigger_error('thread_key is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->thread_key = $var; + + return $this; + } + + /** + * Optional. A unique request ID for this message. Specifying an existing + * request ID returns the message created with that ID instead of creating a + * new message. + * + * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique request ID for this message. Specifying an existing + * request ID returns the message created with that ID instead of creating a + * new message. + * + * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. Specifies whether a message starts a thread or replies to one. + * Only supported in named spaces. + * When [responding to user + * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), + * this field is ignored. For interactions within a thread, the reply is + * created in the same thread. Otherwise, the reply is created as a new + * thread. + * + * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMessageReplyOption() + { + return $this->message_reply_option; + } + + /** + * Optional. Specifies whether a message starts a thread or replies to one. + * Only supported in named spaces. + * When [responding to user + * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), + * this field is ignored. For interactions within a thread, the reply is + * created in the same thread. Otherwise, the reply is created as a new + * thread. + * + * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMessageReplyOption($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\CreateMessageRequest\MessageReplyOption::class); + $this->message_reply_option = $var; + + return $this; + } + + /** + * Optional. A custom ID for a message. Lets Chat apps get, update, or delete + * a message without needing to store the system-assigned ID in the message's + * resource name (represented in the message `name` field). + * The value for this field must meet the following requirements: + * * Begins with `client-`. For example, `client-custom-name` is a valid + * custom ID, but `custom-name` is not. + * * Contains up to 63 characters and only lowercase letters, numbers, and + * hyphens. + * * Is unique within a space. A Chat app can't use the same custom ID for + * different messages. + * For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * Optional. A custom ID for a message. Lets Chat apps get, update, or delete + * a message without needing to store the system-assigned ID in the message's + * resource name (represented in the message `name` field). + * The value for this field must meet the following requirements: + * * Begins with `client-`. For example, `client-custom-name` is a valid + * custom ID, but `custom-name` is not. + * * Contains up to 63 characters and only lowercase letters, numbers, and + * hyphens. + * * Is unique within a space. A Chat app can't use the same custom ID for + * different messages. + * For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkString($var, True); + $this->message_id = $var; + + return $this; + } + + /** + * Optional. Controls the notification behavior when the message is posted. + * To learn more, see [Force notifications or send silent + * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). + * + * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions create_message_notification_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\CreateMessageNotificationOptions|null + */ + public function getCreateMessageNotificationOptions() + { + return $this->create_message_notification_options; + } + + public function hasCreateMessageNotificationOptions() + { + return isset($this->create_message_notification_options); + } + + public function clearCreateMessageNotificationOptions() + { + unset($this->create_message_notification_options); + } + + /** + * Optional. Controls the notification behavior when the message is posted. + * To learn more, see [Force notifications or send silent + * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). + * + * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions create_message_notification_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\CreateMessageNotificationOptions $var + * @return $this + */ + public function setCreateMessageNotificationOptions($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CreateMessageNotificationOptions::class); + $this->create_message_notification_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php new file mode 100644 index 000000000000..632932c4e2ee --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php @@ -0,0 +1,71 @@ +google.chat.v1.CreateMessageRequest.MessageReplyOption + */ +class MessageReplyOption +{ + /** + * Default. Starts a new thread. Using this option ignores any [thread + * ID][google.chat.v1.Thread.name] or + * [`thread_key`][google.chat.v1.Thread.thread_key] that's included. + * + * Generated from protobuf enum MESSAGE_REPLY_OPTION_UNSPECIFIED = 0; + */ + const MESSAGE_REPLY_OPTION_UNSPECIFIED = 0; + /** + * Creates the message as a reply to the thread specified by [thread + * ID][google.chat.v1.Thread.name] or + * [`thread_key`][google.chat.v1.Thread.thread_key]. If it fails, the + * message starts a new thread instead. + * + * Generated from protobuf enum REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD = 1; + */ + const REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD = 1; + /** + * Creates the message as a reply to the thread specified by [thread + * ID][google.chat.v1.Thread.name] or + * [`thread_key`][google.chat.v1.Thread.thread_key]. If a new `thread_key` + * is used, a new thread is created. If the message creation fails, a + * `NOT_FOUND` error is returned instead. + * + * Generated from protobuf enum REPLY_MESSAGE_OR_FAIL = 2; + */ + const REPLY_MESSAGE_OR_FAIL = 2; + + private static $valueToName = [ + self::MESSAGE_REPLY_OPTION_UNSPECIFIED => 'MESSAGE_REPLY_OPTION_UNSPECIFIED', + self::REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD => 'REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD', + self::REPLY_MESSAGE_OR_FAIL => 'REPLY_MESSAGE_OR_FAIL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php new file mode 100644 index 000000000000..14b96639b7c6 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php @@ -0,0 +1,133 @@ +google.chat.v1.CreateReactionRequest + */ +class CreateReactionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The message where the reaction is created. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The reaction to create. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reaction = null; + + /** + * @param string $parent Required. The message where the reaction is created. + * + * Format: `spaces/{space}/messages/{message}` + * Please see {@see ChatServiceClient::messageName()} for help formatting this field. + * @param \Google\Apps\Chat\V1\Reaction $reaction Required. The reaction to create. + * + * @return \Google\Apps\Chat\V1\CreateReactionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Apps\Chat\V1\Reaction $reaction): self + { + return (new self()) + ->setParent($parent) + ->setReaction($reaction); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The message where the reaction is created. + * Format: `spaces/{space}/messages/{message}` + * @type \Google\Apps\Chat\V1\Reaction $reaction + * Required. The reaction to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Required. The message where the reaction is created. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The message where the reaction is created. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The reaction to create. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Reaction|null + */ + public function getReaction() + { + return $this->reaction; + } + + public function hasReaction() + { + return isset($this->reaction); + } + + public function clearReaction() + { + unset($this->reaction); + } + + /** + * Required. The reaction to create. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Reaction $var + * @return $this + */ + public function setReaction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); + $this->reaction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php new file mode 100644 index 000000000000..b5ec4ec9089b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php @@ -0,0 +1,133 @@ +google.chat.v1.CreateSectionRequest + */ +class CreateSectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource name where the section is created. + * Format: `users/{user}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The section to create. + * + * Generated from protobuf field .google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $section = null; + + /** + * @param string $parent Required. The parent resource name where the section is created. + * + * Format: `users/{user}` + * Please see {@see ChatServiceClient::userName()} for help formatting this field. + * @param \Google\Apps\Chat\V1\Section $section Required. The section to create. + * + * @return \Google\Apps\Chat\V1\CreateSectionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Apps\Chat\V1\Section $section): self + { + return (new self()) + ->setParent($parent) + ->setSection($section); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource name where the section is created. + * Format: `users/{user}` + * @type \Google\Apps\Chat\V1\Section $section + * Required. The section to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource name where the section is created. + * Format: `users/{user}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource name where the section is created. + * Format: `users/{user}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The section to create. + * + * Generated from protobuf field .google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Section|null + */ + public function getSection() + { + return $this->section; + } + + public function hasSection() + { + return isset($this->section); + } + + public function clearSection() + { + unset($this->section); + } + + /** + * Required. The section to create. + * + * Generated from protobuf field .google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Section $var + * @return $this + */ + public function setSection($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Section::class); + $this->section = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php new file mode 100644 index 000000000000..b89e8ad9347f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php @@ -0,0 +1,182 @@ +google.chat.v1.CreateSpaceRequest + */ +class CreateSpaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `displayName` and `spaceType` fields must be populated. Only + * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. + * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. + * If you receive the error message `ALREADY_EXISTS`, + * try a different `displayName`. An existing space within the Google + * Workspace organization might already use this display name. + * The space `name` is assigned on the server so anything specified in this + * field will be ignored. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $space = null; + /** + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + + /** + * @param \Google\Apps\Chat\V1\Space $space Required. The `displayName` and `spaceType` fields must be populated. Only + * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. + * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. + * + * If you receive the error message `ALREADY_EXISTS`, + * try a different `displayName`. An existing space within the Google + * Workspace organization might already use this display name. + * + * + * The space `name` is assigned on the server so anything specified in this + * field will be ignored. + * + * @return \Google\Apps\Chat\V1\CreateSpaceRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\Space $space): self + { + return (new self()) + ->setSpace($space); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space $space + * Required. The `displayName` and `spaceType` fields must be populated. Only + * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. + * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. + * If you receive the error message `ALREADY_EXISTS`, + * try a different `displayName`. An existing space within the Google + * Workspace organization might already use this display name. + * The space `name` is assigned on the server so anything specified in this + * field will be ignored. + * @type string $request_id + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `displayName` and `spaceType` fields must be populated. Only + * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. + * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. + * If you receive the error message `ALREADY_EXISTS`, + * try a different `displayName`. An existing space within the Google + * Workspace organization might already use this display name. + * The space `name` is assigned on the server so anything specified in this + * field will be ignored. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Space|null + */ + public function getSpace() + { + return $this->space; + } + + public function hasSpace() + { + return isset($this->space); + } + + public function clearSpace() + { + unset($this->space); + } + + /** + * Required. The `displayName` and `spaceType` fields must be populated. Only + * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. + * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. + * If you receive the error message `ALREADY_EXISTS`, + * try a different `displayName`. An existing space within the Google + * Workspace organization might already use this display name. + * The space `name` is assigned on the server so anything specified in this + * field will be ignored. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Space $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); + $this->space = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php new file mode 100644 index 000000000000..b72004cf258d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php @@ -0,0 +1,257 @@ +google.chat.v1.CustomEmoji + */ +class CustomEmoji extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the custom emoji, assigned by the server. + * Format: `customEmojis/{customEmoji}` + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Unique key for the custom emoji resource. + * + * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Optional. Immutable. User-provided name for the custom emoji, which is + * unique within the organization. + * Required when the custom emoji is created, output only otherwise. + * Emoji names must start and end with colons, must be lowercase and can only + * contain alphanumeric characters, hyphens, and underscores. + * Hyphens and underscores should be used to separate words and cannot be used + * consecutively. + * Example: `:valid-emoji-name:` + * + * Generated from protobuf field string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $emoji_name = ''; + /** + * Output only. A temporary image URL for the custom emoji, valid for at least + * 10 minutes. Note that this is not populated in the response when the custom + * emoji is created. + * + * Generated from protobuf field string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $temporary_image_uri = ''; + /** + * Optional. Input only. Payload data. + * Required when the custom emoji is created. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $payload = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the custom emoji, assigned by the server. + * Format: `customEmojis/{customEmoji}` + * @type string $uid + * Output only. Unique key for the custom emoji resource. + * @type string $emoji_name + * Optional. Immutable. User-provided name for the custom emoji, which is + * unique within the organization. + * Required when the custom emoji is created, output only otherwise. + * Emoji names must start and end with colons, must be lowercase and can only + * contain alphanumeric characters, hyphens, and underscores. + * Hyphens and underscores should be used to separate words and cannot be used + * consecutively. + * Example: `:valid-emoji-name:` + * @type string $temporary_image_uri + * Output only. A temporary image URL for the custom emoji, valid for at least + * 10 minutes. Note that this is not populated in the response when the custom + * emoji is created. + * @type \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload $payload + * Optional. Input only. Payload data. + * Required when the custom emoji is created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the custom emoji, assigned by the server. + * Format: `customEmojis/{customEmoji}` + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the custom emoji, assigned by the server. + * Format: `customEmojis/{customEmoji}` + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique key for the custom emoji resource. + * + * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique key for the custom emoji resource. + * + * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. Immutable. User-provided name for the custom emoji, which is + * unique within the organization. + * Required when the custom emoji is created, output only otherwise. + * Emoji names must start and end with colons, must be lowercase and can only + * contain alphanumeric characters, hyphens, and underscores. + * Hyphens and underscores should be used to separate words and cannot be used + * consecutively. + * Example: `:valid-emoji-name:` + * + * Generated from protobuf field string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getEmojiName() + { + return $this->emoji_name; + } + + /** + * Optional. Immutable. User-provided name for the custom emoji, which is + * unique within the organization. + * Required when the custom emoji is created, output only otherwise. + * Emoji names must start and end with colons, must be lowercase and can only + * contain alphanumeric characters, hyphens, and underscores. + * Hyphens and underscores should be used to separate words and cannot be used + * consecutively. + * Example: `:valid-emoji-name:` + * + * Generated from protobuf field string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setEmojiName($var) + { + GPBUtil::checkString($var, True); + $this->emoji_name = $var; + + return $this; + } + + /** + * Output only. A temporary image URL for the custom emoji, valid for at least + * 10 minutes. Note that this is not populated in the response when the custom + * emoji is created. + * + * Generated from protobuf field string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTemporaryImageUri() + { + return $this->temporary_image_uri; + } + + /** + * Output only. A temporary image URL for the custom emoji, valid for at least + * 10 minutes. Note that this is not populated in the response when the custom + * emoji is created. + * + * Generated from protobuf field string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTemporaryImageUri($var) + { + GPBUtil::checkString($var, True); + $this->temporary_image_uri = $var; + + return $this; + } + + /** + * Optional. Input only. Payload data. + * Required when the custom emoji is created. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload|null + */ + public function getPayload() + { + return $this->payload; + } + + public function hasPayload() + { + return isset($this->payload); + } + + public function clearPayload() + { + unset($this->payload); + } + + /** + * Optional. Input only. Payload data. + * Required when the custom emoji is created. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload $var + * @return $this + */ + public function setPayload($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload::class); + $this->payload = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php new file mode 100644 index 000000000000..033610b35a6c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php @@ -0,0 +1,117 @@ +google.chat.v1.CustomEmoji.CustomEmojiPayload + */ +class CustomEmojiPayload extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Input only. The image used for the custom emoji. + * The payload must be under 256 KB and the dimension of + * the image must be square and between 64 and 500 pixels. The + * restrictions are subject to change. + * + * Generated from protobuf field bytes file_content = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + */ + protected $file_content = ''; + /** + * Required. Input only. The image file name. + * Supported file extensions: `.png`, `.jpg`, `.gif`. + * + * Generated from protobuf field string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + */ + protected $filename = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file_content + * Required. Input only. The image used for the custom emoji. + * The payload must be under 256 KB and the dimension of + * the image must be square and between 64 and 500 pixels. The + * restrictions are subject to change. + * @type string $filename + * Required. Input only. The image file name. + * Supported file extensions: `.png`, `.jpg`, `.gif`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Required. Input only. The image used for the custom emoji. + * The payload must be under 256 KB and the dimension of + * the image must be square and between 64 and 500 pixels. The + * restrictions are subject to change. + * + * Generated from protobuf field bytes file_content = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFileContent() + { + return $this->file_content; + } + + /** + * Required. Input only. The image used for the custom emoji. + * The payload must be under 256 KB and the dimension of + * the image must be square and between 64 and 500 pixels. The + * restrictions are subject to change. + * + * Generated from protobuf field bytes file_content = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFileContent($var) + { + GPBUtil::checkString($var, False); + $this->file_content = $var; + + return $this; + } + + /** + * Required. Input only. The image file name. + * Supported file extensions: `.png`, `.jpg`, `.gif`. + * + * Generated from protobuf field string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFilename() + { + return $this->filename; + } + + /** + * Required. Input only. The image file name. + * Supported file extensions: `.png`, `.jpg`, `.gif`. + * + * Generated from protobuf field string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFilename($var) + { + GPBUtil::checkString($var, True); + $this->filename = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php new file mode 100644 index 000000000000..2e72249deedc --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php @@ -0,0 +1,77 @@ +google.chat.v1.CustomEmojiMetadata + */ +class CustomEmojiMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The custom emoji. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + protected $custom_emoji = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji + * The custom emoji. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * The custom emoji. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1; + * @return \Google\Apps\Chat\V1\CustomEmoji|null + */ + public function getCustomEmoji() + { + return $this->custom_emoji; + } + + public function hasCustomEmoji() + { + return isset($this->custom_emoji); + } + + public function clearCustomEmoji() + { + unset($this->custom_emoji); + } + + /** + * The custom emoji. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1; + * @param \Google\Apps\Chat\V1\CustomEmoji $var + * @return $this + */ + public function setCustomEmoji($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class); + $this->custom_emoji = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php new file mode 100644 index 000000000000..5ebf3f8727d0 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php @@ -0,0 +1,103 @@ +google.chat.v1.DeleteCustomEmojiRequest + */ +class DeleteCustomEmojiRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the custom emoji to delete. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the custom emoji to delete. + * + * Format: `customEmojis/{customEmoji}` + * + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. Please see + * {@see ChatServiceClient::customEmojiName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\DeleteCustomEmojiRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the custom emoji to delete. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the custom emoji to delete. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the custom emoji to delete. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php new file mode 100644 index 000000000000..cfc2ff50f32a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php @@ -0,0 +1,216 @@ +google.chat.v1.DeleteMembershipRequest + */ +class DeleteMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the membership to delete. Chat apps can delete + * human users' or their own memberships. Chat apps can't delete other apps' + * memberships. + * When deleting a human membership, requires the `chat.memberships` scope + * with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or the `chat.memberships.app` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and the `spaces/{space}/members/{member}` format. + * You can use the email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * When deleting an app membership, requires the `chat.memberships.app` scope + * and `spaces/{space}/members/app` format. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Deleting app memberships in a space isn't supported using admin access. + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param string $name Required. Resource name of the membership to delete. Chat apps can delete + * human users' or their own memberships. Chat apps can't delete other apps' + * memberships. + * + * When deleting a human membership, requires the `chat.memberships` scope + * with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or the `chat.memberships.app` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and the `spaces/{space}/members/{member}` format. + * You can use the email as an alias for `{member}`. For example, + * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the + * email of the Google Chat user. + * + * When deleting an app membership, requires the `chat.memberships.app` scope + * and `spaces/{space}/members/app` format. + * + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. Please see + * {@see ChatServiceClient::membershipName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\DeleteMembershipRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the membership to delete. Chat apps can delete + * human users' or their own memberships. Chat apps can't delete other apps' + * memberships. + * When deleting a human membership, requires the `chat.memberships` scope + * with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or the `chat.memberships.app` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and the `spaces/{space}/members/{member}` format. + * You can use the email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * When deleting an app membership, requires the `chat.memberships.app` scope + * and `spaces/{space}/members/app` format. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Deleting app memberships in a space isn't supported using admin access. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the membership to delete. Chat apps can delete + * human users' or their own memberships. Chat apps can't delete other apps' + * memberships. + * When deleting a human membership, requires the `chat.memberships` scope + * with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or the `chat.memberships.app` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and the `spaces/{space}/members/{member}` format. + * You can use the email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * When deleting an app membership, requires the `chat.memberships.app` scope + * and `spaces/{space}/members/app` format. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the membership to delete. Chat apps can delete + * human users' or their own memberships. Chat apps can't delete other apps' + * memberships. + * When deleting a human membership, requires the `chat.memberships` scope + * with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or the `chat.memberships.app` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and the `spaces/{space}/members/{member}` format. + * You can use the email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * When deleting an app membership, requires the `chat.memberships.app` scope + * and `spaces/{space}/members/app` format. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Deleting app memberships in a space isn't supported using admin access. + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Deleting app memberships in a space isn't supported using admin access. + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php new file mode 100644 index 000000000000..6cecd1b7429a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php @@ -0,0 +1,162 @@ +google.chat.v1.DeleteMessageRequest + */ +class DeleteMessageRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. When `true`, deleting a message also deletes its threaded + * replies. When `false`, if a message has threaded replies, deletion fails. + * Only applies when [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Has no effect when [authenticating as a Chat app] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. Resource name of the message. + * + * Format: `spaces/{space}/messages/{message}` + * + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). Please see + * {@see ChatServiceClient::messageName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\DeleteMessageRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * @type bool $force + * Optional. When `true`, deleting a message also deletes its threaded + * replies. When `false`, if a message has threaded replies, deletion fails. + * Only applies when [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Has no effect when [authenticating as a Chat app] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. When `true`, deleting a message also deletes its threaded + * replies. When `false`, if a message has threaded replies, deletion fails. + * Only applies when [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Has no effect when [authenticating as a Chat app] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. When `true`, deleting a message also deletes its threaded + * replies. When `false`, if a message has threaded replies, deletion fails. + * Only applies when [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Has no effect when [authenticating as a Chat app] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php new file mode 100644 index 000000000000..6b346365e051 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php @@ -0,0 +1,87 @@ +google.chat.v1.DeleteReactionRequest + */ +class DeleteReactionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the reaction to delete. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the reaction to delete. + * + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * Please see {@see ChatServiceClient::reactionName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\DeleteReactionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the reaction to delete. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the reaction to delete. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the reaction to delete. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php new file mode 100644 index 000000000000..c1d0ffa484f5 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php @@ -0,0 +1,88 @@ +google.chat.v1.DeleteSectionRequest + */ +class DeleteSectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the section to delete. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the section to delete. + * + * Format: `users/{user}/sections/{section}` + * Please see {@see ChatServiceClient::sectionName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\DeleteSectionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the section to delete. + * Format: `users/{user}/sections/{section}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the section to delete. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the section to delete. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php new file mode 100644 index 000000000000..dea074e557f3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php @@ -0,0 +1,145 @@ +google.chat.v1.DeleteSpaceRequest + */ +class DeleteSpaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the space to delete. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.delete` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param string $name Required. Resource name of the space to delete. + * + * Format: `spaces/{space}` + * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\DeleteSpaceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the space to delete. + * Format: `spaces/{space}` + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.delete` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the space to delete. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the space to delete. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.delete` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.delete` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php new file mode 100644 index 000000000000..adab2676a41a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php @@ -0,0 +1,68 @@ +google.chat.v1.DeletionMetadata + */ +class DeletionMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Indicates who deleted the message. + * + * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; + */ + protected $deletion_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $deletion_type + * Indicates who deleted the message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\DeletionMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Indicates who deleted the message. + * + * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; + * @return int + */ + public function getDeletionType() + { + return $this->deletion_type; + } + + /** + * Indicates who deleted the message. + * + * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; + * @param int $var + * @return $this + */ + public function setDeletionType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\DeletionMetadata\DeletionType::class); + $this->deletion_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php new file mode 100644 index 000000000000..5d3969995d8a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php @@ -0,0 +1,104 @@ +google.chat.v1.DeletionMetadata.DeletionType + */ +class DeletionType +{ + /** + * This value is unused. + * + * Generated from protobuf enum DELETION_TYPE_UNSPECIFIED = 0; + */ + const DELETION_TYPE_UNSPECIFIED = 0; + /** + * User deleted their own message. + * + * Generated from protobuf enum CREATOR = 1; + */ + const CREATOR = 1; + /** + * An owner or manager deleted the message. + * + * Generated from protobuf enum SPACE_OWNER = 2; + */ + const SPACE_OWNER = 2; + /** + * A Google Workspace administrator deleted the message. Administrators can + * delete any message in the space, including messages sent by any space + * member or Chat app. + * + * Generated from protobuf enum ADMIN = 3; + */ + const ADMIN = 3; + /** + * A Chat app deleted its own message when it expired. + * + * Generated from protobuf enum APP_MESSAGE_EXPIRY = 4; + */ + const APP_MESSAGE_EXPIRY = 4; + /** + * A Chat app deleted the message on behalf of the creator (using user + * authentication). + * + * Generated from protobuf enum CREATOR_VIA_APP = 5; + */ + const CREATOR_VIA_APP = 5; + /** + * A Chat app deleted the message on behalf of a space manager (using user + * authentication). + * + * Generated from protobuf enum SPACE_OWNER_VIA_APP = 6; + */ + const SPACE_OWNER_VIA_APP = 6; + /** + * A member of the space deleted the message. Users can delete messages sent + * by apps. + * + * Generated from protobuf enum SPACE_MEMBER = 7; + */ + const SPACE_MEMBER = 7; + + private static $valueToName = [ + self::DELETION_TYPE_UNSPECIFIED => 'DELETION_TYPE_UNSPECIFIED', + self::CREATOR => 'CREATOR', + self::SPACE_OWNER => 'SPACE_OWNER', + self::ADMIN => 'ADMIN', + self::APP_MESSAGE_EXPIRY => 'APP_MESSAGE_EXPIRY', + self::CREATOR_VIA_APP => 'CREATOR_VIA_APP', + self::SPACE_OWNER_VIA_APP => 'SPACE_OWNER_VIA_APP', + self::SPACE_MEMBER => 'SPACE_MEMBER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php new file mode 100644 index 000000000000..d14fb5f9970d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php @@ -0,0 +1,85 @@ +google.chat.v1.Dialog + */ +class Dialog extends \Google\Protobuf\Internal\Message +{ + /** + * Input only. Body of the dialog, which is rendered in a modal. + * Google Chat apps don't support the following card entities: + * `DateTimePicker`, `OnChangeAction`. + * + * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $body = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Card\V1\Card $body + * Input only. Body of the dialog, which is rendered in a modal. + * Google Chat apps don't support the following card entities: + * `DateTimePicker`, `OnChangeAction`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Input only. Body of the dialog, which is rendered in a modal. + * Google Chat apps don't support the following card entities: + * `DateTimePicker`, `OnChangeAction`. + * + * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Apps\Card\V1\Card|null + */ + public function getBody() + { + return $this->body; + } + + public function hasBody() + { + return isset($this->body); + } + + public function clearBody() + { + unset($this->body); + } + + /** + * Input only. Body of the dialog, which is rendered in a modal. + * Google Chat apps don't support the following card entities: + * `DateTimePicker`, `OnChangeAction`. + * + * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Apps\Card\V1\Card $var + * @return $this + */ + public function setBody($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); + $this->body = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php new file mode 100644 index 000000000000..3189a5560434 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php @@ -0,0 +1,139 @@ +google.chat.v1.DialogAction + */ +class DialogAction extends \Google\Protobuf\Internal\Message +{ + /** + * Input only. Status for a request to either invoke or submit a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays + * a status and message to users, if necessary. + * For example, in case of an error or success. + * + * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $action_status = null; + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Dialog $dialog + * Input only. + * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the + * request. + * @type \Google\Apps\Chat\V1\ActionStatus $action_status + * Input only. Status for a request to either invoke or submit a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays + * a status and message to users, if necessary. + * For example, in case of an error or success. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Input only. + * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the + * request. + * + * Generated from protobuf field .google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Apps\Chat\V1\Dialog|null + */ + public function getDialog() + { + return $this->readOneof(1); + } + + public function hasDialog() + { + return $this->hasOneof(1); + } + + /** + * Input only. + * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the + * request. + * + * Generated from protobuf field .google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Dialog $var + * @return $this + */ + public function setDialog($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Dialog::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Input only. Status for a request to either invoke or submit a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays + * a status and message to users, if necessary. + * For example, in case of an error or success. + * + * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Apps\Chat\V1\ActionStatus|null + */ + public function getActionStatus() + { + return $this->action_status; + } + + public function hasActionStatus() + { + return isset($this->action_status); + } + + public function clearActionStatus() + { + unset($this->action_status); + } + + /** + * Input only. Status for a request to either invoke or submit a + * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays + * a status and message to users, if necessary. + * For example, in case of an error or success. + * + * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Apps\Chat\V1\ActionStatus $var + * @return $this + */ + public function setActionStatus($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionStatus::class); + $this->action_status = $var; + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php new file mode 100644 index 000000000000..581ef8ea6d86 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php @@ -0,0 +1,67 @@ +google.chat.v1.DriveDataRef + */ +class DriveDataRef extends \Google\Protobuf\Internal\Message +{ + /** + * The ID for the drive file. Use with the Drive API. + * + * Generated from protobuf field string drive_file_id = 2; + */ + protected $drive_file_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $drive_file_id + * The ID for the drive file. Use with the Drive API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); + parent::__construct($data); + } + + /** + * The ID for the drive file. Use with the Drive API. + * + * Generated from protobuf field string drive_file_id = 2; + * @return string + */ + public function getDriveFileId() + { + return $this->drive_file_id; + } + + /** + * The ID for the drive file. Use with the Drive API. + * + * Generated from protobuf field string drive_file_id = 2; + * @param string $var + * @return $this + */ + public function setDriveFileId($var) + { + GPBUtil::checkString($var, True); + $this->drive_file_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php new file mode 100644 index 000000000000..334fbffe2245 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php @@ -0,0 +1,119 @@ +google.chat.v1.DriveLinkData + */ +class DriveLinkData extends \Google\Protobuf\Internal\Message +{ + /** + * A + * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) + * which references a Google Drive file. + * + * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; + */ + protected $drive_data_ref = null; + /** + * The mime type of the linked Google Drive resource. + * + * Generated from protobuf field string mime_type = 2; + */ + protected $mime_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\DriveDataRef $drive_data_ref + * A + * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) + * which references a Google Drive file. + * @type string $mime_type + * The mime type of the linked Google Drive resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * A + * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) + * which references a Google Drive file. + * + * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; + * @return \Google\Apps\Chat\V1\DriveDataRef|null + */ + public function getDriveDataRef() + { + return $this->drive_data_ref; + } + + public function hasDriveDataRef() + { + return isset($this->drive_data_ref); + } + + public function clearDriveDataRef() + { + unset($this->drive_data_ref); + } + + /** + * A + * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) + * which references a Google Drive file. + * + * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; + * @param \Google\Apps\Chat\V1\DriveDataRef $var + * @return $this + */ + public function setDriveDataRef($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveDataRef::class); + $this->drive_data_ref = $var; + + return $this; + } + + /** + * The mime type of the linked Google Drive resource. + * + * Generated from protobuf field string mime_type = 2; + * @return string + */ + public function getMimeType() + { + return $this->mime_type; + } + + /** + * The mime type of the linked Google Drive resource. + * + * Generated from protobuf field string mime_type = 2; + * @param string $var + * @return $this + */ + public function setMimeType($var) + { + GPBUtil::checkString($var, True); + $this->mime_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php new file mode 100644 index 000000000000..390962101414 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php @@ -0,0 +1,108 @@ +google.chat.v1.Emoji + */ +class Emoji extends \Google\Protobuf\Internal\Message +{ + protected $content; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $unicode + * Optional. A basic emoji represented by a unicode string. + * @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji + * A custom emoji. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A basic emoji represented by a unicode string. + * + * Generated from protobuf field string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getUnicode() + { + return $this->readOneof(1); + } + + public function hasUnicode() + { + return $this->hasOneof(1); + } + + /** + * Optional. A basic emoji represented by a unicode string. + * + * Generated from protobuf field string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setUnicode($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A custom emoji. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 2; + * @return \Google\Apps\Chat\V1\CustomEmoji|null + */ + public function getCustomEmoji() + { + return $this->readOneof(2); + } + + public function hasCustomEmoji() + { + return $this->hasOneof(2); + } + + /** + * A custom emoji. + * + * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 2; + * @param \Google\Apps\Chat\V1\CustomEmoji $var + * @return $this + */ + public function setCustomEmoji($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getContent() + { + return $this->whichOneof("content"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php new file mode 100644 index 000000000000..b8d24bb5bd3b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php @@ -0,0 +1,121 @@ +google.chat.v1.EmojiReactionSummary + */ +class EmojiReactionSummary extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Emoji associated with the reactions. + * + * Generated from protobuf field .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $emoji = null; + /** + * Output only. The total number of reactions using the associated emoji. + * + * Generated from protobuf field optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reaction_count = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Emoji $emoji + * Output only. Emoji associated with the reactions. + * @type int $reaction_count + * Output only. The total number of reactions using the associated emoji. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Emoji associated with the reactions. + * + * Generated from protobuf field .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\Emoji|null + */ + public function getEmoji() + { + return $this->emoji; + } + + public function hasEmoji() + { + return isset($this->emoji); + } + + public function clearEmoji() + { + unset($this->emoji); + } + + /** + * Output only. Emoji associated with the reactions. + * + * Generated from protobuf field .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Emoji $var + * @return $this + */ + public function setEmoji($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Emoji::class); + $this->emoji = $var; + + return $this; + } + + /** + * Output only. The total number of reactions using the associated emoji. + * + * Generated from protobuf field optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getReactionCount() + { + return isset($this->reaction_count) ? $this->reaction_count : 0; + } + + public function hasReactionCount() + { + return isset($this->reaction_count); + } + + public function clearReactionCount() + { + unset($this->reaction_count); + } + + /** + * Output only. The total number of reactions using the associated emoji. + * + * Generated from protobuf field optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setReactionCount($var) + { + GPBUtil::checkInt32($var); + $this->reaction_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php new file mode 100644 index 000000000000..4bfa3cff066a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php @@ -0,0 +1,111 @@ +google.chat.v1.FindDirectMessageRequest + */ +class FindDirectMessageRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the user to find direct message with. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, if the People API profile ID is + * `123456789`, you can find a direct message with that person by using + * `users/123456789` as the `name`. When [authenticated as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the user to find direct message with. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, if the People API profile ID is + * `123456789`, you can find a direct message with that person by using + * `users/123456789` as the `name`. When [authenticated as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the user to find direct message with. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, if the People API profile ID is + * `123456789`, you can find a direct message with that person by using + * `users/123456789` as the `name`. When [authenticated as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the user to find direct message with. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, if the People API profile ID is + * `123456789`, you can find a direct message with that person by using + * `users/123456789` as the `name`. When [authenticated as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php new file mode 100644 index 000000000000..5a365e4cf5e0 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php @@ -0,0 +1,277 @@ +google.chat.v1.FindGroupChatsRequest + */ +class FindGroupChatsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Resource names of all human users in group chat with the calling + * user. Chat apps can't be included in the request. + * The maximum number of users that can be specified in a single request is + * `49`. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, to find all group chats with the calling + * user and two other users, with People API profile IDs `123456789` and + * `987654321`, you can use `users/123456789` and `users/987654321`. + * You can also use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * + * Generated from protobuf field repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $users; + /** + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 10 spaces are returned. + * The maximum value is 30. If you use a value more than 30, it's + * automatically changed to 30. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous call to find group chats. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the token. Passing different values may lead to unexpected + * results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Requested space view type. If unset, defaults to + * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify + * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, + * for example, + * https://www.googleapis.com/auth/chat.spaces or + * https://www.googleapis.com/auth/chat.spaces.readonly. + * + * Generated from protobuf field .google.chat.v1.SpaceView space_view = 4; + */ + protected $space_view = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $users + * Optional. Resource names of all human users in group chat with the calling + * user. Chat apps can't be included in the request. + * The maximum number of users that can be specified in a single request is + * `49`. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, to find all group chats with the calling + * user and two other users, with People API profile IDs `123456789` and + * `987654321`, you can use `users/123456789` and `users/987654321`. + * You can also use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * @type int $page_size + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 10 spaces are returned. + * The maximum value is 30. If you use a value more than 30, it's + * automatically changed to 30. + * Negative values return an `INVALID_ARGUMENT` error. + * @type string $page_token + * Optional. A page token, received from a previous call to find group chats. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the token. Passing different values may lead to unexpected + * results. + * @type int $space_view + * Requested space view type. If unset, defaults to + * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify + * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, + * for example, + * https://www.googleapis.com/auth/chat.spaces or + * https://www.googleapis.com/auth/chat.spaces.readonly. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Resource names of all human users in group chat with the calling + * user. Chat apps can't be included in the request. + * The maximum number of users that can be specified in a single request is + * `49`. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, to find all group chats with the calling + * user and two other users, with People API profile IDs `123456789` and + * `987654321`, you can use `users/123456789` and `users/987654321`. + * You can also use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * + * Generated from protobuf field repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getUsers() + { + return $this->users; + } + + /** + * Optional. Resource names of all human users in group chat with the calling + * user. Chat apps can't be included in the request. + * The maximum number of users that can be specified in a single request is + * `49`. + * Format: `users/{user}`, where `{user}` is either the `id` for the + * [person](https://developers.google.com/people/api/rest/v1/people) from the + * People API, or the `id` for the + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Directory API. For example, to find all group chats with the calling + * user and two other users, with People API profile IDs `123456789` and + * `987654321`, you can use `users/123456789` and `users/987654321`. + * You can also use the email as an alias for `{user}`. For example, + * `users/example\@gmail.com` where `example\@gmail.com` is the email of the + * Google Chat user. + * + * Generated from protobuf field repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->users = $arr; + + return $this; + } + + /** + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 10 spaces are returned. + * The maximum value is 30. If you use a value more than 30, it's + * automatically changed to 30. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 10 spaces are returned. + * The maximum value is 30. If you use a value more than 30, it's + * automatically changed to 30. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous call to find group chats. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the token. Passing different values may lead to unexpected + * results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous call to find group chats. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the token. Passing different values may lead to unexpected + * results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Requested space view type. If unset, defaults to + * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify + * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, + * for example, + * https://www.googleapis.com/auth/chat.spaces or + * https://www.googleapis.com/auth/chat.spaces.readonly. + * + * Generated from protobuf field .google.chat.v1.SpaceView space_view = 4; + * @return int + */ + public function getSpaceView() + { + return $this->space_view; + } + + /** + * Requested space view type. If unset, defaults to + * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify + * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, + * for example, + * https://www.googleapis.com/auth/chat.spaces or + * https://www.googleapis.com/auth/chat.spaces.readonly. + * + * Generated from protobuf field .google.chat.v1.SpaceView space_view = 4; + * @param int $var + * @return $this + */ + public function setSpaceView($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SpaceView::class); + $this->space_view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php new file mode 100644 index 000000000000..d6fa5e3db2f1 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php @@ -0,0 +1,106 @@ +google.chat.v1.FindGroupChatsResponse + */ +class FindGroupChatsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of spaces in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + */ + private $spaces; + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space[] $spaces + * List of spaces in the requested (or first) page. + * @type string $next_page_token + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * List of spaces in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\Space> + */ + public function getSpaces() + { + return $this->spaces; + } + + /** + * List of spaces in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + * @param \Google\Apps\Chat\V1\Space[] $var + * @return $this + */ + public function setSpaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); + $this->spaces = $arr; + + return $this; + } + + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php new file mode 100644 index 000000000000..df9c5bae9a69 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php @@ -0,0 +1,121 @@ +google.chat.v1.ForwardedMetadata + */ +class ForwardedMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the source space. + * Format: spaces/{space} + * + * Generated from protobuf field string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $space = ''; + /** + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + * + * Generated from protobuf field string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $space_display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $space + * Output only. The resource name of the source space. + * Format: spaces/{space} + * @type string $space_display_name + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the source space. + * Format: spaces/{space} + * + * Generated from protobuf field string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getSpace() + { + return $this->space; + } + + /** + * Output only. The resource name of the source space. + * Format: spaces/{space} + * + * Generated from protobuf field string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkString($var, True); + $this->space = $var; + + return $this; + } + + /** + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + * + * Generated from protobuf field string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSpaceDisplayName() + { + return $this->space_display_name; + } + + /** + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + * + * Generated from protobuf field string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSpaceDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->space_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php new file mode 100644 index 000000000000..9e5087fb5f2f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php @@ -0,0 +1,86 @@ +google.chat.v1.GetAttachmentRequest + */ +class GetAttachmentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the attachment, in the form + * `spaces/{space}/messages/{message}/attachments/{attachment}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the attachment, in the form + * `spaces/{space}/messages/{message}/attachments/{attachment}`. Please see + * {@see ChatServiceClient::attachmentName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetAttachmentRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the attachment, in the form + * `spaces/{space}/messages/{message}/attachments/{attachment}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the attachment, in the form + * `spaces/{space}/messages/{message}/attachments/{attachment}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the attachment, in the form + * `spaces/{space}/messages/{message}/attachments/{attachment}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php new file mode 100644 index 000000000000..44bbf30a0ca3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php @@ -0,0 +1,103 @@ +google.chat.v1.GetCustomEmojiRequest + */ +class GetCustomEmojiRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the custom emoji. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the custom emoji. + * + * Format: `customEmojis/{customEmoji}` + * + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. Please see + * {@see ChatServiceClient::customEmojiName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetCustomEmojiRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the custom emoji. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the custom emoji. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the custom emoji. + * Format: `customEmojis/{customEmoji}` + * You can use the emoji name as an alias for `{customEmoji}`. For example, + * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name + * for a custom emoji. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php new file mode 100644 index 000000000000..1d38e4170828 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php @@ -0,0 +1,185 @@ +google.chat.v1.GetMembershipRequest + */ +class GetMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the membership to retrieve. + * To get the app's own membership [by using user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can optionally use `spaces/{space}/members/app`. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` + * You can use the user's email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` + * [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Getting app memberships in a space isn't supported when using admin access. + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param string $name Required. Resource name of the membership to retrieve. + * + * To get the app's own membership [by using user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can optionally use `spaces/{space}/members/app`. + * + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` + * + * You can use the user's email as an alias for `{member}`. For example, + * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the + * email of the Google Chat user. Please see + * {@see ChatServiceClient::membershipName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetMembershipRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the membership to retrieve. + * To get the app's own membership [by using user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can optionally use `spaces/{space}/members/app`. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` + * You can use the user's email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` + * [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Getting app memberships in a space isn't supported when using admin access. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the membership to retrieve. + * To get the app's own membership [by using user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can optionally use `spaces/{space}/members/app`. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` + * You can use the user's email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the membership to retrieve. + * To get the app's own membership [by using user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * you can optionally use `spaces/{space}/members/app`. + * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` + * You can use the user's email as an alias for `{member}`. For example, + * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the + * email of the Google Chat user. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` + * [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Getting app memberships in a space isn't supported when using admin access. + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` + * [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Getting app memberships in a space isn't supported when using admin access. + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php new file mode 100644 index 000000000000..647e6f7cc5cd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php @@ -0,0 +1,108 @@ +google.chat.v1.GetMessageRequest + */ +class GetMessageRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the message. + * + * Format: `spaces/{space}/messages/{message}` + * + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). Please see + * {@see ChatServiceClient::messageName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetMessageRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * If you've set a custom ID for your message, you can use the value from the + * `clientAssignedMessageId` field for `{message}`. For details, see [Name a + * message] + * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php new file mode 100644 index 000000000000..981c6103f140 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php @@ -0,0 +1,87 @@ +google.chat.v1.GetSpaceEventRequest + */ +class GetSpaceEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the space event. + * + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * Please see {@see ChatServiceClient::spaceEventName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetSpaceEventRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php new file mode 100644 index 000000000000..c5c3e844d581 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php @@ -0,0 +1,103 @@ +google.chat.v1.GetSpaceNotificationSettingRequest + */ +class GetSpaceNotificationSettingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting + * - `users/me/spaces/{space}/spaceNotificationSetting`, OR + * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR + * - `users/123456789/spaces/{space}/spaceNotificationSetting`. + * Note: Only the caller's user id or email is allowed in the path. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting + * + * - `users/me/spaces/{space}/spaceNotificationSetting`, OR + * - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR + * - `users/123456789/spaces/{space}/spaceNotificationSetting`. + * Note: Only the caller's user id or email is allowed in the path. Please see + * {@see ChatServiceClient::spaceNotificationSettingName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetSpaceNotificationSettingRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting + * - `users/me/spaces/{space}/spaceNotificationSetting`, OR + * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR + * - `users/123456789/spaces/{space}/spaceNotificationSetting`. + * Note: Only the caller's user id or email is allowed in the path. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceNotificationSetting::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting + * - `users/me/spaces/{space}/spaceNotificationSetting`, OR + * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR + * - `users/123456789/spaces/{space}/spaceNotificationSetting`. + * Note: Only the caller's user id or email is allowed in the path. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting + * - `users/me/spaces/{space}/spaceNotificationSetting`, OR + * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR + * - `users/123456789/spaces/{space}/spaceNotificationSetting`. + * Note: Only the caller's user id or email is allowed in the path. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php new file mode 100644 index 000000000000..504b05e42c46 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php @@ -0,0 +1,127 @@ +google.chat.v1.GetSpaceReadStateRequest + */ +class GetSpaceReadStateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the space read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the space read state to retrieve. + * + * Only supports getting read state for the calling user. + * + * To refer to the calling user, set one of the following: + * + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * + * - Their Workspace email address. For example, + * `users/user@example.com/spaces/{space}/spaceReadState`. + * + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * + * Format: users/{user}/spaces/{space}/spaceReadState + * Please see {@see ChatServiceClient::spaceReadStateName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetSpaceReadStateRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the space read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the space read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the space read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php new file mode 100644 index 000000000000..10165fb8b82a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php @@ -0,0 +1,145 @@ +google.chat.v1.GetSpaceRequest + */ +class GetSpaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the space, in the form `spaces/{space}`. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param string $name Required. Resource name of the space, in the form `spaces/{space}`. + * + * Format: `spaces/{space}` + * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetSpaceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the space, in the form `spaces/{space}`. + * Format: `spaces/{space}` + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the space, in the form `spaces/{space}`. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the space, in the form `spaces/{space}`. + * Format: `spaces/{space}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php new file mode 100644 index 000000000000..c71a86884071 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php @@ -0,0 +1,132 @@ +google.chat.v1.GetThreadReadStateRequest + */ +class GetThreadReadStateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the thread read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, + * `users/me/spaces/{space}/threads/{thread}/threadReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the thread read state to retrieve. + * + * Only supports getting read state for the calling user. + * + * To refer to the calling user, set one of the following: + * + * - The `me` alias. For example, + * `users/me/spaces/{space}/threads/{thread}/threadReadState`. + * + * - Their Workspace email address. For example, + * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. + * + * - Their user id. For example, + * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + * + * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState + * Please see {@see ChatServiceClient::threadReadStateName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\GetThreadReadStateRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the thread read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, + * `users/me/spaces/{space}/threads/{thread}/threadReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ThreadReadState::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the thread read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, + * `users/me/spaces/{space}/threads/{thread}/threadReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the thread read state to retrieve. + * Only supports getting read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, + * `users/me/spaces/{space}/threads/{thread}/threadReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php new file mode 100644 index 000000000000..1a4f8762d3d6 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php @@ -0,0 +1,83 @@ +google.chat.v1.Group + */ +class Group extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for a Google Group. + * Represents a + * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in + * Cloud Identity Groups API. + * Format: groups/{group} + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for a Google Group. + * Represents a + * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in + * Cloud Identity Groups API. + * Format: groups/{group} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Group::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for a Google Group. + * Represents a + * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in + * Cloud Identity Groups API. + * Format: groups/{group} + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for a Google Group. + * Represents a + * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in + * Cloud Identity Groups API. + * Format: groups/{group} + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php new file mode 100644 index 000000000000..2dadcbc53b5f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php @@ -0,0 +1,65 @@ +google.chat.v1.HistoryState + */ +class HistoryState +{ + /** + * Default value. Do not use. + * + * Generated from protobuf enum HISTORY_STATE_UNSPECIFIED = 0; + */ + const HISTORY_STATE_UNSPECIFIED = 0; + /** + * History off. [Messages and threads are kept for 24 + * hours](https://support.google.com/chat/answer/7664687). + * + * Generated from protobuf enum HISTORY_OFF = 1; + */ + const HISTORY_OFF = 1; + /** + * History on. The organization's [Vault retention + * rules](https://support.google.com/vault/answer/7657597) specify for + * how long messages and threads are kept. + * + * Generated from protobuf enum HISTORY_ON = 2; + */ + const HISTORY_ON = 2; + + private static $valueToName = [ + self::HISTORY_STATE_UNSPECIFIED => 'HISTORY_STATE_UNSPECIFIED', + self::HISTORY_OFF => 'HISTORY_OFF', + self::HISTORY_ON => 'HISTORY_ON', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php new file mode 100644 index 000000000000..092093c9e755 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php @@ -0,0 +1,199 @@ +google.chat.v1.ListCustomEmojisRequest + */ +class ListCustomEmojisRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The maximum number of custom emojis returned. The service can + * return fewer custom emojis than this value. If unspecified, the default + * value is 25. The maximum value is 200; values above 200 are changed to 200. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. (If resuming from a previous query.) + * A page token received from a previous list custom emoji call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A query filter. + * Supports filtering by creator. + * To filter by creator, you must specify a valid value. Currently only + * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter + * custom emojis by whether they were created by the calling user or not. + * For example, the following query returns custom emojis created by the + * caller: + * ``` + * creator("users/me") + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $page_size + * Optional. The maximum number of custom emojis returned. The service can + * return fewer custom emojis than this value. If unspecified, the default + * value is 25. The maximum value is 200; values above 200 are changed to 200. + * @type string $page_token + * Optional. (If resuming from a previous query.) + * A page token received from a previous list custom emoji call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * @type string $filter + * Optional. A query filter. + * Supports filtering by creator. + * To filter by creator, you must specify a valid value. Currently only + * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter + * custom emojis by whether they were created by the calling user or not. + * For example, the following query returns custom emojis created by the + * caller: + * ``` + * creator("users/me") + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The maximum number of custom emojis returned. The service can + * return fewer custom emojis than this value. If unspecified, the default + * value is 25. The maximum value is 200; values above 200 are changed to 200. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of custom emojis returned. The service can + * return fewer custom emojis than this value. If unspecified, the default + * value is 25. The maximum value is 200; values above 200 are changed to 200. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. (If resuming from a previous query.) + * A page token received from a previous list custom emoji call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. (If resuming from a previous query.) + * A page token received from a previous list custom emoji call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A query filter. + * Supports filtering by creator. + * To filter by creator, you must specify a valid value. Currently only + * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter + * custom emojis by whether they were created by the calling user or not. + * For example, the following query returns custom emojis created by the + * caller: + * ``` + * creator("users/me") + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A query filter. + * Supports filtering by creator. + * To filter by creator, you must specify a valid value. Currently only + * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter + * custom emojis by whether they were created by the calling user or not. + * For example, the following query returns custom emojis created by the + * caller: + * ``` + * creator("users/me") + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php new file mode 100644 index 000000000000..7e0ba2f2c345 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php @@ -0,0 +1,105 @@ +google.chat.v1.ListCustomEmojisResponse + */ +class ListCustomEmojisResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Unordered list. List of custom emojis. + * + * Generated from protobuf field repeated .google.chat.v1.CustomEmoji custom_emojis = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $custom_emojis; + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\CustomEmoji[] $custom_emojis + * Unordered list. List of custom emojis. + * @type string $next_page_token + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Unordered list. List of custom emojis. + * + * Generated from protobuf field repeated .google.chat.v1.CustomEmoji custom_emojis = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField<\Google\Apps\Chat\V1\CustomEmoji> + */ + public function getCustomEmojis() + { + return $this->custom_emojis; + } + + /** + * Unordered list. List of custom emojis. + * + * Generated from protobuf field repeated .google.chat.v1.CustomEmoji custom_emojis = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param \Google\Apps\Chat\V1\CustomEmoji[] $var + * @return $this + */ + public function setCustomEmojis($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\CustomEmoji::class); + $this->custom_emojis = $arr; + + return $this; + } + + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php new file mode 100644 index 000000000000..ac57033b5e16 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php @@ -0,0 +1,512 @@ +google.chat.v1.ListMembershipsRequest + */ +class ListMembershipsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the space for which to fetch a membership + * list. + * Format: spaces/{space} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of memberships to return. The service might + * return fewer than this value. + * If unspecified, at most 100 memberships are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous call to list memberships. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A query filter. + * You can filter memberships by a member's role + * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) + * and type + * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). + * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. + * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also + * filter for `member.type` using the `!=` operator. + * To filter by both role and type, use the `AND` operator. To filter by + * either role or type, use the `OR` operator. + * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required + * when `use_admin_access` is set to true. Other member type filters will be + * rejected. + * For example, the following queries are valid: + * ``` + * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" + * member.type = "HUMAN" AND role = "ROLE_MANAGER" + * member.type != "BOT" + * ``` + * The following queries are invalid: + * ``` + * member.type = "HUMAN" AND member.type = "BOT" + * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. When `true`, also returns memberships associated with a + * [Google Group][google.chat.v1.Membership.group_member], in + * addition to other types of memberships. If a + * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, + * [Google Group][google.chat.v1.Membership.group_member] + * memberships that don't match the filter criteria aren't returned. + * + * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_groups = false; + /** + * Optional. When `true`, also returns memberships associated with + * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in + * addition to other types of memberships. If a + * filter is set, + * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships + * that don't match the filter criteria aren't returned. + * Currently requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_invited = false; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.memberships.readonly` or + * `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Listing app memberships in a space isn't supported when using admin access. + * + * Generated from protobuf field bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param string $parent Required. The resource name of the space for which to fetch a membership + * list. + * + * Format: spaces/{space} + * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\ListMembershipsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the space for which to fetch a membership + * list. + * Format: spaces/{space} + * @type int $page_size + * Optional. The maximum number of memberships to return. The service might + * return fewer than this value. + * If unspecified, at most 100 memberships are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * @type string $page_token + * Optional. A page token, received from a previous call to list memberships. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * @type string $filter + * Optional. A query filter. + * You can filter memberships by a member's role + * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) + * and type + * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). + * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. + * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also + * filter for `member.type` using the `!=` operator. + * To filter by both role and type, use the `AND` operator. To filter by + * either role or type, use the `OR` operator. + * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required + * when `use_admin_access` is set to true. Other member type filters will be + * rejected. + * For example, the following queries are valid: + * ``` + * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" + * member.type = "HUMAN" AND role = "ROLE_MANAGER" + * member.type != "BOT" + * ``` + * The following queries are invalid: + * ``` + * member.type = "HUMAN" AND member.type = "BOT" + * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * @type bool $show_groups + * Optional. When `true`, also returns memberships associated with a + * [Google Group][google.chat.v1.Membership.group_member], in + * addition to other types of memberships. If a + * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, + * [Google Group][google.chat.v1.Membership.group_member] + * memberships that don't match the filter criteria aren't returned. + * @type bool $show_invited + * Optional. When `true`, also returns memberships associated with + * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in + * addition to other types of memberships. If a + * filter is set, + * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships + * that don't match the filter criteria aren't returned. + * Currently requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.memberships.readonly` or + * `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Listing app memberships in a space isn't supported when using admin access. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the space for which to fetch a membership + * list. + * Format: spaces/{space} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the space for which to fetch a membership + * list. + * Format: spaces/{space} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of memberships to return. The service might + * return fewer than this value. + * If unspecified, at most 100 memberships are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of memberships to return. The service might + * return fewer than this value. + * If unspecified, at most 100 memberships are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous call to list memberships. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous call to list memberships. + * Provide this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A query filter. + * You can filter memberships by a member's role + * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) + * and type + * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). + * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. + * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also + * filter for `member.type` using the `!=` operator. + * To filter by both role and type, use the `AND` operator. To filter by + * either role or type, use the `OR` operator. + * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required + * when `use_admin_access` is set to true. Other member type filters will be + * rejected. + * For example, the following queries are valid: + * ``` + * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" + * member.type = "HUMAN" AND role = "ROLE_MANAGER" + * member.type != "BOT" + * ``` + * The following queries are invalid: + * ``` + * member.type = "HUMAN" AND member.type = "BOT" + * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A query filter. + * You can filter memberships by a member's role + * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) + * and type + * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). + * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. + * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also + * filter for `member.type` using the `!=` operator. + * To filter by both role and type, use the `AND` operator. To filter by + * either role or type, use the `OR` operator. + * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required + * when `use_admin_access` is set to true. Other member type filters will be + * rejected. + * For example, the following queries are valid: + * ``` + * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" + * member.type = "HUMAN" AND role = "ROLE_MANAGER" + * member.type != "BOT" + * ``` + * The following queries are invalid: + * ``` + * member.type = "HUMAN" AND member.type = "BOT" + * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. When `true`, also returns memberships associated with a + * [Google Group][google.chat.v1.Membership.group_member], in + * addition to other types of memberships. If a + * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, + * [Google Group][google.chat.v1.Membership.group_member] + * memberships that don't match the filter criteria aren't returned. + * + * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowGroups() + { + return $this->show_groups; + } + + /** + * Optional. When `true`, also returns memberships associated with a + * [Google Group][google.chat.v1.Membership.group_member], in + * addition to other types of memberships. If a + * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, + * [Google Group][google.chat.v1.Membership.group_member] + * memberships that don't match the filter criteria aren't returned. + * + * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowGroups($var) + { + GPBUtil::checkBool($var); + $this->show_groups = $var; + + return $this; + } + + /** + * Optional. When `true`, also returns memberships associated with + * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in + * addition to other types of memberships. If a + * filter is set, + * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships + * that don't match the filter criteria aren't returned. + * Currently requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowInvited() + { + return $this->show_invited; + } + + /** + * Optional. When `true`, also returns memberships associated with + * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in + * addition to other types of memberships. If a + * filter is set, + * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships + * that don't match the filter criteria aren't returned. + * Currently requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowInvited($var) + { + GPBUtil::checkBool($var); + $this->show_invited = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.memberships.readonly` or + * `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Listing app memberships in a space isn't supported when using admin access. + * + * Generated from protobuf field bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.memberships.readonly` or + * `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Listing app memberships in a space isn't supported when using admin access. + * + * Generated from protobuf field bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php new file mode 100644 index 000000000000..d341acf75344 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php @@ -0,0 +1,105 @@ +google.chat.v1.ListMembershipsResponse + */ +class ListMembershipsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Unordered list. List of memberships in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $memberships; + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Membership[] $memberships + * Unordered list. List of memberships in the requested (or first) page. + * @type string $next_page_token + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Unordered list. List of memberships in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField<\Google\Apps\Chat\V1\Membership> + */ + public function getMemberships() + { + return $this->memberships; + } + + /** + * Unordered list. List of memberships in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param \Google\Apps\Chat\V1\Membership[] $var + * @return $this + */ + public function setMemberships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Membership::class); + $this->memberships = $arr; + + return $this; + } + + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that you can send as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php new file mode 100644 index 000000000000..831852c02640 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php @@ -0,0 +1,417 @@ +google.chat.v1.ListMessagesRequest + */ +class ListMessagesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the space to list messages from. + * Format: `spaces/{space}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of messages returned. The service might return + * fewer messages than this value. + * If unspecified, at most 25 are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token received from a previous list messages call. Provide + * this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A query filter. + * You can filter messages by date (`create_time`) and thread (`thread.name`). + * To filter messages by the date they were created, specify the `create_time` + * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) + * format and double quotation marks. For example, + * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to + * list messages that were created after a timestamp, or the less than + * operator `<` to list messages that were created before a timestamp. To + * filter messages within a time interval, use the `AND` operator between two + * timestamps. + * To filter by thread, specify the `thread.name`, formatted as + * `spaces/{space}/threads/{thread}`. You can only specify one + * `thread.name` per query. + * To filter by both thread and date, use the `AND` operator in your query. + * For example, the following queries are valid: + * ``` + * create_time > "2012-04-21T11:30:00-04:00" + * create_time > "2012-04-21T11:30:00-04:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * create_time > "2012-04-21T11:30:00+00:00" AND + * create_time < "2013-01-01T00:00:00+00:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. How the list of messages is ordered. Specify a value to order by + * an ordering operation. Valid ordering operation values are as follows: + * - `ASC` for ascending. + * - `DESC` for descending. + * The default ordering is `create_time ASC`. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Whether to include deleted messages. Deleted messages include + * deleted time and metadata about their deletion, but message content is + * unavailable. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $show_deleted = false; + + /** + * @param string $parent Required. The resource name of the space to list messages from. + * + * Format: `spaces/{space}` + * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\ListMessagesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the space to list messages from. + * Format: `spaces/{space}` + * @type int $page_size + * Optional. The maximum number of messages returned. The service might return + * fewer messages than this value. + * If unspecified, at most 25 are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * @type string $page_token + * Optional. A page token received from a previous list messages call. Provide + * this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * @type string $filter + * Optional. A query filter. + * You can filter messages by date (`create_time`) and thread (`thread.name`). + * To filter messages by the date they were created, specify the `create_time` + * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) + * format and double quotation marks. For example, + * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to + * list messages that were created after a timestamp, or the less than + * operator `<` to list messages that were created before a timestamp. To + * filter messages within a time interval, use the `AND` operator between two + * timestamps. + * To filter by thread, specify the `thread.name`, formatted as + * `spaces/{space}/threads/{thread}`. You can only specify one + * `thread.name` per query. + * To filter by both thread and date, use the `AND` operator in your query. + * For example, the following queries are valid: + * ``` + * create_time > "2012-04-21T11:30:00-04:00" + * create_time > "2012-04-21T11:30:00-04:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * create_time > "2012-04-21T11:30:00+00:00" AND + * create_time < "2013-01-01T00:00:00+00:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * @type string $order_by + * Optional. How the list of messages is ordered. Specify a value to order by + * an ordering operation. Valid ordering operation values are as follows: + * - `ASC` for ascending. + * - `DESC` for descending. + * The default ordering is `create_time ASC`. + * @type bool $show_deleted + * Optional. Whether to include deleted messages. Deleted messages include + * deleted time and metadata about their deletion, but message content is + * unavailable. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the space to list messages from. + * Format: `spaces/{space}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the space to list messages from. + * Format: `spaces/{space}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of messages returned. The service might return + * fewer messages than this value. + * If unspecified, at most 25 are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of messages returned. The service might return + * fewer messages than this value. + * If unspecified, at most 25 are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token received from a previous list messages call. Provide + * this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token received from a previous list messages call. Provide + * this parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A query filter. + * You can filter messages by date (`create_time`) and thread (`thread.name`). + * To filter messages by the date they were created, specify the `create_time` + * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) + * format and double quotation marks. For example, + * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to + * list messages that were created after a timestamp, or the less than + * operator `<` to list messages that were created before a timestamp. To + * filter messages within a time interval, use the `AND` operator between two + * timestamps. + * To filter by thread, specify the `thread.name`, formatted as + * `spaces/{space}/threads/{thread}`. You can only specify one + * `thread.name` per query. + * To filter by both thread and date, use the `AND` operator in your query. + * For example, the following queries are valid: + * ``` + * create_time > "2012-04-21T11:30:00-04:00" + * create_time > "2012-04-21T11:30:00-04:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * create_time > "2012-04-21T11:30:00+00:00" AND + * create_time < "2013-01-01T00:00:00+00:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A query filter. + * You can filter messages by date (`create_time`) and thread (`thread.name`). + * To filter messages by the date they were created, specify the `create_time` + * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) + * format and double quotation marks. For example, + * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to + * list messages that were created after a timestamp, or the less than + * operator `<` to list messages that were created before a timestamp. To + * filter messages within a time interval, use the `AND` operator between two + * timestamps. + * To filter by thread, specify the `thread.name`, formatted as + * `spaces/{space}/threads/{thread}`. You can only specify one + * `thread.name` per query. + * To filter by both thread and date, use the `AND` operator in your query. + * For example, the following queries are valid: + * ``` + * create_time > "2012-04-21T11:30:00-04:00" + * create_time > "2012-04-21T11:30:00-04:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * create_time > "2012-04-21T11:30:00+00:00" AND + * create_time < "2013-01-01T00:00:00+00:00" AND + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * thread.name = spaces/AAAAAAAAAAA/threads/123 + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. How the list of messages is ordered. Specify a value to order by + * an ordering operation. Valid ordering operation values are as follows: + * - `ASC` for ascending. + * - `DESC` for descending. + * The default ordering is `create_time ASC`. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. How the list of messages is ordered. Specify a value to order by + * an ordering operation. Valid ordering operation values are as follows: + * - `ASC` for ascending. + * - `DESC` for descending. + * The default ordering is `create_time ASC`. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Whether to include deleted messages. Deleted messages include + * deleted time and metadata about their deletion, but message content is + * unavailable. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Optional. Whether to include deleted messages. Deleted messages include + * deleted time and metadata about their deletion, but message content is + * unavailable. + * + * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php new file mode 100644 index 000000000000..3a166b580b1e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php @@ -0,0 +1,105 @@ +google.chat.v1.ListMessagesResponse + */ +class ListMessagesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of messages. + * + * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; + */ + private $messages; + /** + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Message[] $messages + * List of messages. + * @type string $next_page_token + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * List of messages. + * + * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\Message> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * List of messages. + * + * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; + * @param \Google\Apps\Chat\V1\Message[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Message::class); + $this->messages = $arr; + + return $this; + } + + /** + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php new file mode 100644 index 000000000000..704d3d57fe62 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php @@ -0,0 +1,345 @@ +google.chat.v1.ListReactionsRequest + */ +class ListReactionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The message users reacted to. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of reactions returned. The service can return + * fewer reactions than this value. If unspecified, the default value is 25. + * The maximum value is 200; values above 200 are changed to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. (If resuming from a previous query.) + * A page token received from a previous list reactions call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A query filter. + * You can filter reactions by + * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) + * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * (`user.name`). + * To filter reactions for multiple emojis or users, join similar fields + * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = + * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. + * To filter reactions by emoji and user, use the `AND` operator, such as + * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. + * If your query uses both `AND` and `OR`, group them with parentheses. + * For example, the following queries are valid: + * ``` + * user.name = "users/{user}" + * emoji.unicode = "🙂" + * emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR emoji.unicode = "👍" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" AND user.name = "users/{user}" + * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") + * AND user.name = "users/{user}" + * ``` + * The following queries are invalid: + * ``` + * emoji.unicode = "🙂" AND emoji.unicode = "👍" + * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR + * user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * AND user.name = "users/{user}" + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The message users reacted to. + * + * Format: `spaces/{space}/messages/{message}` + * Please see {@see ChatServiceClient::messageName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\ListReactionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The message users reacted to. + * Format: `spaces/{space}/messages/{message}` + * @type int $page_size + * Optional. The maximum number of reactions returned. The service can return + * fewer reactions than this value. If unspecified, the default value is 25. + * The maximum value is 200; values above 200 are changed to 200. + * @type string $page_token + * Optional. (If resuming from a previous query.) + * A page token received from a previous list reactions call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * @type string $filter + * Optional. A query filter. + * You can filter reactions by + * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) + * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * (`user.name`). + * To filter reactions for multiple emojis or users, join similar fields + * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = + * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. + * To filter reactions by emoji and user, use the `AND` operator, such as + * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. + * If your query uses both `AND` and `OR`, group them with parentheses. + * For example, the following queries are valid: + * ``` + * user.name = "users/{user}" + * emoji.unicode = "🙂" + * emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR emoji.unicode = "👍" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" AND user.name = "users/{user}" + * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") + * AND user.name = "users/{user}" + * ``` + * The following queries are invalid: + * ``` + * emoji.unicode = "🙂" AND emoji.unicode = "👍" + * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR + * user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * AND user.name = "users/{user}" + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Required. The message users reacted to. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The message users reacted to. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of reactions returned. The service can return + * fewer reactions than this value. If unspecified, the default value is 25. + * The maximum value is 200; values above 200 are changed to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of reactions returned. The service can return + * fewer reactions than this value. If unspecified, the default value is 25. + * The maximum value is 200; values above 200 are changed to 200. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. (If resuming from a previous query.) + * A page token received from a previous list reactions call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. (If resuming from a previous query.) + * A page token received from a previous list reactions call. Provide this + * to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A query filter. + * You can filter reactions by + * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) + * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * (`user.name`). + * To filter reactions for multiple emojis or users, join similar fields + * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = + * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. + * To filter reactions by emoji and user, use the `AND` operator, such as + * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. + * If your query uses both `AND` and `OR`, group them with parentheses. + * For example, the following queries are valid: + * ``` + * user.name = "users/{user}" + * emoji.unicode = "🙂" + * emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR emoji.unicode = "👍" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" AND user.name = "users/{user}" + * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") + * AND user.name = "users/{user}" + * ``` + * The following queries are invalid: + * ``` + * emoji.unicode = "🙂" AND emoji.unicode = "👍" + * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR + * user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * AND user.name = "users/{user}" + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A query filter. + * You can filter reactions by + * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) + * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * (`user.name`). + * To filter reactions for multiple emojis or users, join similar fields + * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = + * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. + * To filter reactions by emoji and user, use the `AND` operator, such as + * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. + * If your query uses both `AND` and `OR`, group them with parentheses. + * For example, the following queries are valid: + * ``` + * user.name = "users/{user}" + * emoji.unicode = "🙂" + * emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR emoji.unicode = "👍" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" AND user.name = "users/{user}" + * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") + * AND user.name = "users/{user}" + * ``` + * The following queries are invalid: + * ``` + * emoji.unicode = "🙂" AND emoji.unicode = "👍" + * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" + * emoji.unicode = "🙂" OR user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR + * user.name = "users/{user}" + * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" + * AND user.name = "users/{user}" + * ``` + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php new file mode 100644 index 000000000000..d1a622d43642 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php @@ -0,0 +1,105 @@ +google.chat.v1.ListReactionsResponse + */ +class ListReactionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of reactions in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; + */ + private $reactions; + /** + * Continuation token to retrieve the next page of results. It's empty + * for the last page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Reaction[] $reactions + * List of reactions in the requested (or first) page. + * @type string $next_page_token + * Continuation token to retrieve the next page of results. It's empty + * for the last page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * List of reactions in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\Reaction> + */ + public function getReactions() + { + return $this->reactions; + } + + /** + * List of reactions in the requested (or first) page. + * + * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; + * @param \Google\Apps\Chat\V1\Reaction[] $var + * @return $this + */ + public function setReactions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Reaction::class); + $this->reactions = $arr; + + return $this; + } + + /** + * Continuation token to retrieve the next page of results. It's empty + * for the last page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Continuation token to retrieve the next page of results. It's empty + * for the last page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php new file mode 100644 index 000000000000..06e3d986cdee --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php @@ -0,0 +1,258 @@ +google.chat.v1.ListSectionItemsRequest + */ +class ListSectionItemsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which is the section resource name that owns this + * collection of section items. Only supports listing section items for the + * calling user. + * When you're filtering by space, use the wildcard `-` to search across all + * sections. For example, `users/{user}/sections/-`. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of section items to return. The service may + * return fewer than this value. + * If unspecified, at most 10 section items will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous list section items call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A query filter. + * Currently only supports filtering by space. + * For example, `space = spaces/{space}`. + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent, which is the section resource name that owns this + * collection of section items. Only supports listing section items for the + * calling user. + * + * When you're filtering by space, use the wildcard `-` to search across all + * sections. For example, `users/{user}/sections/-`. + * + * Format: `users/{user}/sections/{section}` + * Please see {@see ChatServiceClient::sectionName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\ListSectionItemsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which is the section resource name that owns this + * collection of section items. Only supports listing section items for the + * calling user. + * When you're filtering by space, use the wildcard `-` to search across all + * sections. For example, `users/{user}/sections/-`. + * Format: `users/{user}/sections/{section}` + * @type int $page_size + * Optional. The maximum number of section items to return. The service may + * return fewer than this value. + * If unspecified, at most 10 section items will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * @type string $page_token + * Optional. A page token, received from a previous list section items call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * @type string $filter + * Optional. A query filter. + * Currently only supports filtering by space. + * For example, `space = spaces/{space}`. + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which is the section resource name that owns this + * collection of section items. Only supports listing section items for the + * calling user. + * When you're filtering by space, use the wildcard `-` to search across all + * sections. For example, `users/{user}/sections/-`. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which is the section resource name that owns this + * collection of section items. Only supports listing section items for the + * calling user. + * When you're filtering by space, use the wildcard `-` to search across all + * sections. For example, `users/{user}/sections/-`. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of section items to return. The service may + * return fewer than this value. + * If unspecified, at most 10 section items will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of section items to return. The service may + * return fewer than this value. + * If unspecified, at most 10 section items will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous list section items call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous list section items call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A query filter. + * Currently only supports filtering by space. + * For example, `space = spaces/{space}`. + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A query filter. + * Currently only supports filtering by space. + * For example, `space = spaces/{space}`. + * Invalid queries are rejected with an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php new file mode 100644 index 000000000000..595da317a092 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php @@ -0,0 +1,105 @@ +google.chat.v1.ListSectionItemsResponse + */ +class ListSectionItemsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The section items from the specified section. + * + * Generated from protobuf field repeated .google.chat.v1.SectionItem section_items = 1; + */ + private $section_items; + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\SectionItem[] $section_items + * The section items from the specified section. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * The section items from the specified section. + * + * Generated from protobuf field repeated .google.chat.v1.SectionItem section_items = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\SectionItem> + */ + public function getSectionItems() + { + return $this->section_items; + } + + /** + * The section items from the specified section. + * + * Generated from protobuf field repeated .google.chat.v1.SectionItem section_items = 1; + * @param \Google\Apps\Chat\V1\SectionItem[] $var + * @return $this + */ + public function setSectionItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SectionItem::class); + $this->section_items = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php new file mode 100644 index 000000000000..20f71225986c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php @@ -0,0 +1,219 @@ +google.chat.v1.ListSectionsRequest + */ +class ListSectionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which is the user resource name that owns this + * collection of sections. Only supports listing sections for the calling + * user. To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me`. + * - Their Workspace email address. For example, `users/user\@example.com`. + * - Their user id. For example, `users/123456789`. + * Format: `users/{user}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of sections to return. The service may return + * fewer than this value. + * If unspecified, at most 10 sections will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous list sections call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent, which is the user resource name that owns this + * collection of sections. Only supports listing sections for the calling + * user. To refer to the calling user, set one of the following: + * + * - The `me` alias. For example, `users/me`. + * + * - Their Workspace email address. For example, `users/user@example.com`. + * + * - Their user id. For example, `users/123456789`. + * + * Format: `users/{user}` + * Please see {@see ChatServiceClient::userName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\ListSectionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which is the user resource name that owns this + * collection of sections. Only supports listing sections for the calling + * user. To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me`. + * - Their Workspace email address. For example, `users/user\@example.com`. + * - Their user id. For example, `users/123456789`. + * Format: `users/{user}` + * @type int $page_size + * Optional. The maximum number of sections to return. The service may return + * fewer than this value. + * If unspecified, at most 10 sections will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * @type string $page_token + * Optional. A page token, received from a previous list sections call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which is the user resource name that owns this + * collection of sections. Only supports listing sections for the calling + * user. To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me`. + * - Their Workspace email address. For example, `users/user\@example.com`. + * - Their user id. For example, `users/123456789`. + * Format: `users/{user}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which is the user resource name that owns this + * collection of sections. Only supports listing sections for the calling + * user. To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me`. + * - Their Workspace email address. For example, `users/user\@example.com`. + * - Their user id. For example, `users/123456789`. + * Format: `users/{user}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of sections to return. The service may return + * fewer than this value. + * If unspecified, at most 10 sections will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of sections to return. The service may return + * fewer than this value. + * If unspecified, at most 10 sections will be returned. + * The maximum value is 100. If you use a value more than 100, it's + * automatically changed to 100. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous list sections call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous list sections call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php new file mode 100644 index 000000000000..ae2a032b1665 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php @@ -0,0 +1,105 @@ +google.chat.v1.ListSectionsResponse + */ +class ListSectionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The sections from the specified user. + * + * Generated from protobuf field repeated .google.chat.v1.Section sections = 1; + */ + private $sections; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Section[] $sections + * The sections from the specified user. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * The sections from the specified user. + * + * Generated from protobuf field repeated .google.chat.v1.Section sections = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\Section> + */ + public function getSections() + { + return $this->sections; + } + + /** + * The sections from the specified user. + * + * Generated from protobuf field repeated .google.chat.v1.Section sections = 1; + * @param \Google\Apps\Chat\V1\Section[] $var + * @return $this + */ + public function setSections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Section::class); + $this->sections = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php new file mode 100644 index 000000000000..a56287bbe8f3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php @@ -0,0 +1,444 @@ +google.chat.v1.ListSpaceEventsRequest + */ +class ListSpaceEventsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the [Google Chat + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * where the events occurred. + * Format: `spaces/{space}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of space events returned. The service might + * return fewer than this value. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous list space events call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to list space events must + * match the call that provided the page token. Passing different values to + * the other parameters might lead to unexpected results. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Required. A query filter. + * You must specify at least one event type (`event_type`) + * using the has `:` operator. To filter by multiple event types, use the `OR` + * operator. Omit batch event types in your filter. The request automatically + * returns any related batch events. For example, if you filter by new + * reactions + * (`google.workspace.chat.reaction.v1.created`), the server also returns + * batch new reactions events + * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported + * event types, see the [`SpaceEvents` reference + * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + * Optionally, you can also filter by start time (`start_time`) and + * end time (`end_time`): + * * `start_time`: Exclusive timestamp from which to start listing space + * events. + * You can list events that occurred up to 28 days ago. If unspecified, lists + * space events from the past 28 days. + * * `end_time`: Inclusive timestamp until which space events are listed. + * If unspecified, lists events up to the time of the request. + * To specify a start or end time, use the equals `=` operator and format in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both + * `start_time` and `end_time`, use the `AND` operator. + * For example, the following queries are valid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * (event_types:"google.workspace.chat.space.v1.updated" OR + * event_types:"google.workspace.chat.message.v1.created") + * ``` + * The following queries are invalid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" OR + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * event_types:"google.workspace.chat.space.v1.updated" AND + * event_types:"google.workspace.chat.message.v1.created" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Resource name of the [Google Chat + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * where the events occurred. + * + * Format: `spaces/{space}`. Please see + * {@see ChatServiceClient::spaceName()} for help formatting this field. + * @param string $filter Required. A query filter. + * + * You must specify at least one event type (`event_type`) + * using the has `:` operator. To filter by multiple event types, use the `OR` + * operator. Omit batch event types in your filter. The request automatically + * returns any related batch events. For example, if you filter by new + * reactions + * (`google.workspace.chat.reaction.v1.created`), the server also returns + * batch new reactions events + * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported + * event types, see the [`SpaceEvents` reference + * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + * + * Optionally, you can also filter by start time (`start_time`) and + * end time (`end_time`): + * + * * `start_time`: Exclusive timestamp from which to start listing space + * events. + * You can list events that occurred up to 28 days ago. If unspecified, lists + * space events from the past 28 days. + * * `end_time`: Inclusive timestamp until which space events are listed. + * If unspecified, lists events up to the time of the request. + * + * To specify a start or end time, use the equals `=` operator and format in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both + * `start_time` and `end_time`, use the `AND` operator. + * + * For example, the following queries are valid: + * + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * (event_types:"google.workspace.chat.space.v1.updated" OR + * event_types:"google.workspace.chat.message.v1.created") + * ``` + * + * The following queries are invalid: + * + * ``` + * start_time="2023-08-23T19:20:33+00:00" OR + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * event_types:"google.workspace.chat.space.v1.updated" AND + * event_types:"google.workspace.chat.message.v1.created" + * ``` + * + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * @return \Google\Apps\Chat\V1\ListSpaceEventsRequest + * + * @experimental + */ + public static function build(string $parent, string $filter): self + { + return (new self()) + ->setParent($parent) + ->setFilter($filter); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the [Google Chat + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * where the events occurred. + * Format: `spaces/{space}`. + * @type int $page_size + * Optional. The maximum number of space events returned. The service might + * return fewer than this value. + * Negative values return an `INVALID_ARGUMENT` error. + * @type string $page_token + * Optional. A page token, received from a previous list space events call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to list space events must + * match the call that provided the page token. Passing different values to + * the other parameters might lead to unexpected results. + * @type string $filter + * Required. A query filter. + * You must specify at least one event type (`event_type`) + * using the has `:` operator. To filter by multiple event types, use the `OR` + * operator. Omit batch event types in your filter. The request automatically + * returns any related batch events. For example, if you filter by new + * reactions + * (`google.workspace.chat.reaction.v1.created`), the server also returns + * batch new reactions events + * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported + * event types, see the [`SpaceEvents` reference + * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + * Optionally, you can also filter by start time (`start_time`) and + * end time (`end_time`): + * * `start_time`: Exclusive timestamp from which to start listing space + * events. + * You can list events that occurred up to 28 days ago. If unspecified, lists + * space events from the past 28 days. + * * `end_time`: Inclusive timestamp until which space events are listed. + * If unspecified, lists events up to the time of the request. + * To specify a start or end time, use the equals `=` operator and format in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both + * `start_time` and `end_time`, use the `AND` operator. + * For example, the following queries are valid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * (event_types:"google.workspace.chat.space.v1.updated" OR + * event_types:"google.workspace.chat.message.v1.created") + * ``` + * The following queries are invalid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" OR + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * event_types:"google.workspace.chat.space.v1.updated" AND + * event_types:"google.workspace.chat.message.v1.created" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the [Google Chat + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * where the events occurred. + * Format: `spaces/{space}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the [Google Chat + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * where the events occurred. + * Format: `spaces/{space}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of space events returned. The service might + * return fewer than this value. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of space events returned. The service might + * return fewer than this value. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous list space events call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to list space events must + * match the call that provided the page token. Passing different values to + * the other parameters might lead to unexpected results. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous list space events call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to list space events must + * match the call that provided the page token. Passing different values to + * the other parameters might lead to unexpected results. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Required. A query filter. + * You must specify at least one event type (`event_type`) + * using the has `:` operator. To filter by multiple event types, use the `OR` + * operator. Omit batch event types in your filter. The request automatically + * returns any related batch events. For example, if you filter by new + * reactions + * (`google.workspace.chat.reaction.v1.created`), the server also returns + * batch new reactions events + * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported + * event types, see the [`SpaceEvents` reference + * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + * Optionally, you can also filter by start time (`start_time`) and + * end time (`end_time`): + * * `start_time`: Exclusive timestamp from which to start listing space + * events. + * You can list events that occurred up to 28 days ago. If unspecified, lists + * space events from the past 28 days. + * * `end_time`: Inclusive timestamp until which space events are listed. + * If unspecified, lists events up to the time of the request. + * To specify a start or end time, use the equals `=` operator and format in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both + * `start_time` and `end_time`, use the `AND` operator. + * For example, the following queries are valid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * (event_types:"google.workspace.chat.space.v1.updated" OR + * event_types:"google.workspace.chat.message.v1.created") + * ``` + * The following queries are invalid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" OR + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * event_types:"google.workspace.chat.space.v1.updated" AND + * event_types:"google.workspace.chat.message.v1.created" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Required. A query filter. + * You must specify at least one event type (`event_type`) + * using the has `:` operator. To filter by multiple event types, use the `OR` + * operator. Omit batch event types in your filter. The request automatically + * returns any related batch events. For example, if you filter by new + * reactions + * (`google.workspace.chat.reaction.v1.created`), the server also returns + * batch new reactions events + * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported + * event types, see the [`SpaceEvents` reference + * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + * Optionally, you can also filter by start time (`start_time`) and + * end time (`end_time`): + * * `start_time`: Exclusive timestamp from which to start listing space + * events. + * You can list events that occurred up to 28 days ago. If unspecified, lists + * space events from the past 28 days. + * * `end_time`: Inclusive timestamp until which space events are listed. + * If unspecified, lists events up to the time of the request. + * To specify a start or end time, use the equals `=` operator and format in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both + * `start_time` and `end_time`, use the `AND` operator. + * For example, the following queries are valid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * start_time="2023-08-23T19:20:33+00:00" AND + * (event_types:"google.workspace.chat.space.v1.updated" OR + * event_types:"google.workspace.chat.message.v1.created") + * ``` + * The following queries are invalid: + * ``` + * start_time="2023-08-23T19:20:33+00:00" OR + * end_time="2023-08-23T19:21:54+00:00" + * ``` + * ``` + * event_types:"google.workspace.chat.space.v1.updated" AND + * event_types:"google.workspace.chat.message.v1.created" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php new file mode 100644 index 000000000000..3b1eff626317 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php @@ -0,0 +1,113 @@ +google.chat.v1.ListSpaceEventsResponse + */ +class ListSpaceEventsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Results are returned in chronological order (oldest event first). + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * + * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + private $space_events; + /** + * Continuation token used to fetch more events. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\SpaceEvent[] $space_events + * Results are returned in chronological order (oldest event first). + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * @type string $next_page_token + * Continuation token used to fetch more events. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); + parent::__construct($data); + } + + /** + * Results are returned in chronological order (oldest event first). + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * + * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\SpaceEvent> + */ + public function getSpaceEvents() + { + return $this->space_events; + } + + /** + * Results are returned in chronological order (oldest event first). + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * + * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; + * @param \Google\Apps\Chat\V1\SpaceEvent[] $var + * @return $this + */ + public function setSpaceEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SpaceEvent::class); + $this->space_events = $arr; + + return $this; + } + + /** + * Continuation token used to fetch more events. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Continuation token used to fetch more events. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php new file mode 100644 index 000000000000..52a2fd834089 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php @@ -0,0 +1,219 @@ +google.chat.v1.ListSpacesRequest + */ +class ListSpacesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous list spaces call. + * Provide this parameter to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value may lead to unexpected results. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A query filter. + * You can filter spaces by the space type + * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). + * To filter by space type, you must specify valid enum value, such as + * `SPACE` or `GROUP_CHAT` (the `space_type` can't be + * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` + * operator. + * For example, the following queries are valid: + * ``` + * space_type = "SPACE" + * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $page_size + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * @type string $page_token + * Optional. A page token, received from a previous list spaces call. + * Provide this parameter to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value may lead to unexpected results. + * @type string $filter + * Optional. A query filter. + * You can filter spaces by the space type + * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). + * To filter by space type, you must specify valid enum value, such as + * `SPACE` or `GROUP_CHAT` (the `space_type` can't be + * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` + * operator. + * For example, the following queries are valid: + * ``` + * space_type = "SPACE" + * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of spaces to return. The service might return + * fewer than this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * Negative values return an `INVALID_ARGUMENT` error. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous list spaces call. + * Provide this parameter to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value may lead to unexpected results. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous list spaces call. + * Provide this parameter to retrieve the subsequent page. + * When paginating, the filter value should match the call that provided the + * page token. Passing a different value may lead to unexpected results. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A query filter. + * You can filter spaces by the space type + * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). + * To filter by space type, you must specify valid enum value, such as + * `SPACE` or `GROUP_CHAT` (the `space_type` can't be + * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` + * operator. + * For example, the following queries are valid: + * ``` + * space_type = "SPACE" + * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A query filter. + * You can filter spaces by the space type + * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). + * To filter by space type, you must specify valid enum value, such as + * `SPACE` or `GROUP_CHAT` (the `space_type` can't be + * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` + * operator. + * For example, the following queries are valid: + * ``` + * space_type = "SPACE" + * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" + * ``` + * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + * error. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php new file mode 100644 index 000000000000..4e59bba9752f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php @@ -0,0 +1,113 @@ +google.chat.v1.ListSpacesResponse + */ +class ListSpacesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of spaces in the requested (or first) page. + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + */ + private $spaces; + /** + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space[] $spaces + * List of spaces in the requested (or first) page. + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * @type string $next_page_token + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * List of spaces in the requested (or first) page. + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\Space> + */ + public function getSpaces() + { + return $this->spaces; + } + + /** + * List of spaces in the requested (or first) page. + * Note: The `permissionSettings` field is not returned in the Space + * object for list requests. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + * @param \Google\Apps\Chat\V1\Space[] $var + * @return $this + */ + public function setSpaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); + $this->spaces = $arr; + + return $this; + } + + /** + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * You can send a token as `pageToken` to retrieve the next page of + * results. If empty, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php new file mode 100644 index 000000000000..24122d4aa89d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php @@ -0,0 +1,69 @@ +google.chat.v1.MatchedUrl + */ +class MatchedUrl extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The URL that was matched. + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * Output only. The URL that was matched. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\MatchedUrl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The URL that was matched. + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Output only. The URL that was matched. + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php new file mode 100644 index 000000000000..788c31d6fbf5 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php @@ -0,0 +1,139 @@ +google.chat.v1.MeetSpaceLinkData + */ +class MeetSpaceLinkData extends \Google\Protobuf\Internal\Message +{ + /** + * Meeting code of the linked Meet space. + * + * Generated from protobuf field string meeting_code = 1; + */ + protected $meeting_code = ''; + /** + * Indicates the type of the Meet space. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.Type type = 2; + */ + protected $type = 0; + /** + * Optional. Output only. If the Meet is a Huddle, indicates the status of the + * huddle. Otherwise, this is unset. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.HuddleStatus huddle_status = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $huddle_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $meeting_code + * Meeting code of the linked Meet space. + * @type int $type + * Indicates the type of the Meet space. + * @type int $huddle_status + * Optional. Output only. If the Meet is a Huddle, indicates the status of the + * huddle. Otherwise, this is unset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * Meeting code of the linked Meet space. + * + * Generated from protobuf field string meeting_code = 1; + * @return string + */ + public function getMeetingCode() + { + return $this->meeting_code; + } + + /** + * Meeting code of the linked Meet space. + * + * Generated from protobuf field string meeting_code = 1; + * @param string $var + * @return $this + */ + public function setMeetingCode($var) + { + GPBUtil::checkString($var, True); + $this->meeting_code = $var; + + return $this; + } + + /** + * Indicates the type of the Meet space. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.Type type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Indicates the type of the Meet space. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.Type type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\MeetSpaceLinkData\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. Output only. If the Meet is a Huddle, indicates the status of the + * huddle. Otherwise, this is unset. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.HuddleStatus huddle_status = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getHuddleStatus() + { + return $this->huddle_status; + } + + /** + * Optional. Output only. If the Meet is a Huddle, indicates the status of the + * huddle. Otherwise, this is unset. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.HuddleStatus huddle_status = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setHuddleStatus($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\MeetSpaceLinkData\HuddleStatus::class); + $this->huddle_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php new file mode 100644 index 000000000000..11f5bf866bfd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php @@ -0,0 +1,70 @@ +google.chat.v1.MeetSpaceLinkData.HuddleStatus + */ +class HuddleStatus +{ + /** + * Default value for the enum. Don't use. + * + * Generated from protobuf enum HUDDLE_STATUS_UNSPECIFIED = 0; + */ + const HUDDLE_STATUS_UNSPECIFIED = 0; + /** + * The huddle has started. + * + * Generated from protobuf enum STARTED = 1; + */ + const STARTED = 1; + /** + * The huddle has ended. In this case the Meet space URI and identifiers + * will no longer be valid. + * + * Generated from protobuf enum ENDED = 2; + */ + const ENDED = 2; + /** + * The huddle has been missed. In this case the Meet space URI and + * identifiers will no longer be valid. + * + * Generated from protobuf enum MISSED = 3; + */ + const MISSED = 3; + + private static $valueToName = [ + self::HUDDLE_STATUS_UNSPECIFIED => 'HUDDLE_STATUS_UNSPECIFIED', + self::STARTED => 'STARTED', + self::ENDED => 'ENDED', + self::MISSED => 'MISSED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php new file mode 100644 index 000000000000..50bf557f180c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php @@ -0,0 +1,61 @@ +google.chat.v1.MeetSpaceLinkData.Type + */ +class Type +{ + /** + * Default value for the enum. Don't use. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * The Meet space is a meeting. + * + * Generated from protobuf enum MEETING = 1; + */ + const MEETING = 1; + /** + * The Meet space is a huddle. + * + * Generated from protobuf enum HUDDLE = 2; + */ + const HUDDLE = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::MEETING => 'MEETING', + self::HUDDLE => 'HUDDLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php new file mode 100644 index 000000000000..c4505ba1a76a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php @@ -0,0 +1,348 @@ +google.chat.v1.Membership + */ +class Membership extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the membership, assigned by the server. + * Format: `spaces/{space}/members/{member}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. State of the membership. + * + * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Optional. User's role within a Chat space, which determines their permitted + * actions in the space. + * This field can only be used as input in `UpdateMembership`. + * + * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $role = 0; + /** + * Optional. Immutable. The creation time of the membership, such as when a + * member joined or was invited to join a space. This field is output only, + * except when used to import historical memberships in import mode spaces. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $create_time = null; + /** + * Optional. Immutable. The deletion time of the membership, such as when a + * member left or was removed from a space. This field is output only, except + * when used to import historical memberships in import mode spaces. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $delete_time = null; + protected $memberType; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the membership, assigned by the server. + * Format: `spaces/{space}/members/{member}` + * @type int $state + * Output only. State of the membership. + * @type int $role + * Optional. User's role within a Chat space, which determines their permitted + * actions in the space. + * This field can only be used as input in `UpdateMembership`. + * @type \Google\Apps\Chat\V1\User $member + * Optional. The Google Chat user or app the membership corresponds to. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output populates the + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * `name` and `type`. + * @type \Google\Apps\Chat\V1\Group $group_member + * Optional. The Google Group the membership corresponds to. + * Reading or mutating memberships for Google Groups requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * @type \Google\Protobuf\Timestamp $create_time + * Optional. Immutable. The creation time of the membership, such as when a + * member joined or was invited to join a space. This field is output only, + * except when used to import historical memberships in import mode spaces. + * @type \Google\Protobuf\Timestamp $delete_time + * Optional. Immutable. The deletion time of the membership, such as when a + * member left or was removed from a space. This field is output only, except + * when used to import historical memberships in import mode spaces. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the membership, assigned by the server. + * Format: `spaces/{space}/members/{member}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the membership, assigned by the server. + * Format: `spaces/{space}/members/{member}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. State of the membership. + * + * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the membership. + * + * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Membership\MembershipState::class); + $this->state = $var; + + return $this; + } + + /** + * Optional. User's role within a Chat space, which determines their permitted + * actions in the space. + * This field can only be used as input in `UpdateMembership`. + * + * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getRole() + { + return $this->role; + } + + /** + * Optional. User's role within a Chat space, which determines their permitted + * actions in the space. + * This field can only be used as input in `UpdateMembership`. + * + * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Membership\MembershipRole::class); + $this->role = $var; + + return $this; + } + + /** + * Optional. The Google Chat user or app the membership corresponds to. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output populates the + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * `name` and `type`. + * + * Generated from protobuf field .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\User|null + */ + public function getMember() + { + return $this->readOneof(3); + } + + public function hasMember() + { + return $this->hasOneof(3); + } + + /** + * Optional. The Google Chat user or app the membership corresponds to. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output populates the + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * `name` and `type`. + * + * Generated from protobuf field .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\User $var + * @return $this + */ + public function setMember($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Optional. The Google Group the membership corresponds to. + * Reading or mutating memberships for Google Groups requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Group|null + */ + public function getGroupMember() + { + return $this->readOneof(5); + } + + public function hasGroupMember() + { + return $this->hasOneof(5); + } + + /** + * Optional. The Google Group the membership corresponds to. + * Reading or mutating memberships for Google Groups requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Group $var + * @return $this + */ + public function setGroupMember($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Group::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Optional. Immutable. The creation time of the membership, such as when a + * member joined or was invited to join a space. This field is output only, + * except when used to import historical memberships in import mode spaces. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Optional. Immutable. The creation time of the membership, such as when a + * member joined or was invited to join a space. This field is output only, + * except when used to import historical memberships in import mode spaces. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Optional. Immutable. The deletion time of the membership, such as when a + * member left or was removed from a space. This field is output only, except + * when used to import historical memberships in import mode spaces. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Optional. Immutable. The deletion time of the membership, such as when a + * member left or was removed from a space. This field is output only, except + * when used to import historical memberships in import mode spaces. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getMemberType() + { + return $this->whichOneof("memberType"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php new file mode 100644 index 000000000000..f8e4a2ecc899 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php @@ -0,0 +1,111 @@ +google.chat.v1.Membership.MembershipRole + */ +class MembershipRole +{ + /** + * Default value. For [users][google.chat.v1.Membership.member]: they + * aren't a member of the space, but can be invited. For + * [Google Groups][google.chat.v1.Membership.group_member]: they're always + * assigned this role (other enum values might be used in the future). + * + * Generated from protobuf enum MEMBERSHIP_ROLE_UNSPECIFIED = 0; + */ + const MEMBERSHIP_ROLE_UNSPECIFIED = 0; + /** + * A member of the space. In the Chat UI, this role is called Member. + * The user has basic permissions, like sending + * messages to the space. + * Managers and owners can grant members additional permissions in a space, + * including: + * - Add or remove members. + * - Modify space details. + * - Turn history on or off. + * - Mention everyone in the space with `\@all`. + * - Manage Chat apps and webhooks installed in the space. + * In direct messages and unnamed group conversations, everyone + * has this role. + * + * Generated from protobuf enum ROLE_MEMBER = 1; + */ + const ROLE_MEMBER = 1; + /** + * A space owner. In the Chat UI, this role is called Owner. + * The user has the complete set of space permissions to manage the space, + * including: + * - Change the role of other members in the space to member, manager, or + * owner. + * - Delete the space. + * Only supported in + * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces). + * To learn more, see + * [Learn more about your role as a space + * owner or manager](https://support.google.com/chat/answer/11833441). + * + * Generated from protobuf enum ROLE_MANAGER = 2; + */ + const ROLE_MANAGER = 2; + /** + * A space manager. In the Chat UI, this role is called Manager. + * The user has all basic permissions of `ROLE_MEMBER`, + * and can be granted a subset of administrative permissions by an owner. + * By default, managers have all the permissions of an owner except for the + * ability to: + * - Delete the space. + * - Make another space member an owner. + * - Change an owner's role. + * By default, managers permissions include but aren't limited to: + * - Make another member a manager. + * - Delete messages in the space. + * - Manage space permissions. + * - Receive notifications for requests to join the space if the manager + * has the "manage members" permission in the space settings. + * - Make a space discoverable. + * Only supported in + * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces). + * To learn more, see + * [Manage space settings](https://support.google.com/chat/answer/13340792). + * + * Generated from protobuf enum ROLE_ASSISTANT_MANAGER = 4; + */ + const ROLE_ASSISTANT_MANAGER = 4; + + private static $valueToName = [ + self::MEMBERSHIP_ROLE_UNSPECIFIED => 'MEMBERSHIP_ROLE_UNSPECIFIED', + self::ROLE_MEMBER => 'ROLE_MEMBER', + self::ROLE_MANAGER => 'ROLE_MANAGER', + self::ROLE_ASSISTANT_MANAGER => 'ROLE_ASSISTANT_MANAGER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php new file mode 100644 index 000000000000..ad6401332073 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php @@ -0,0 +1,70 @@ +google.chat.v1.Membership.MembershipState + */ +class MembershipState +{ + /** + * Default value. Don't use. + * + * Generated from protobuf enum MEMBERSHIP_STATE_UNSPECIFIED = 0; + */ + const MEMBERSHIP_STATE_UNSPECIFIED = 0; + /** + * The user is added to the space, and can participate in the space. + * + * Generated from protobuf enum JOINED = 1; + */ + const JOINED = 1; + /** + * The user is invited to join the space, but hasn't joined it. + * + * Generated from protobuf enum INVITED = 2; + */ + const INVITED = 2; + /** + * The user doesn't belong to the space and doesn't have a pending + * invitation to join the space. + * + * Generated from protobuf enum NOT_A_MEMBER = 3; + */ + const NOT_A_MEMBER = 3; + + private static $valueToName = [ + self::MEMBERSHIP_STATE_UNSPECIFIED => 'MEMBERSHIP_STATE_UNSPECIFIED', + self::JOINED => 'JOINED', + self::INVITED => 'INVITED', + self::NOT_A_MEMBER => 'NOT_A_MEMBER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php new file mode 100644 index 000000000000..7cdb63426d47 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.MembershipBatchCreatedEventData + */ +class MembershipBatchCreatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of new memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + private $memberships; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\MembershipCreatedEventData[] $memberships + * A list of new memberships. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of new memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\MembershipCreatedEventData> + */ + public function getMemberships() + { + return $this->memberships; + } + + /** + * A list of new memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + * @param \Google\Apps\Chat\V1\MembershipCreatedEventData[] $var + * @return $this + */ + public function setMemberships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipCreatedEventData::class); + $this->memberships = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php new file mode 100644 index 000000000000..6d22d6e44ef3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.MembershipBatchDeletedEventData + */ +class MembershipBatchDeletedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of deleted memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + private $memberships; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\MembershipDeletedEventData[] $memberships + * A list of deleted memberships. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of deleted memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\MembershipDeletedEventData> + */ + public function getMemberships() + { + return $this->memberships; + } + + /** + * A list of deleted memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + * @param \Google\Apps\Chat\V1\MembershipDeletedEventData[] $var + * @return $this + */ + public function setMemberships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipDeletedEventData::class); + $this->memberships = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php new file mode 100644 index 000000000000..3e7cd30d32d3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.MembershipBatchUpdatedEventData + */ +class MembershipBatchUpdatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of updated memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + private $memberships; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\MembershipUpdatedEventData[] $memberships + * A list of updated memberships. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of updated memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\MembershipUpdatedEventData> + */ + public function getMemberships() + { + return $this->memberships; + } + + /** + * A list of updated memberships. + * + * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + * @param \Google\Apps\Chat\V1\MembershipUpdatedEventData[] $var + * @return $this + */ + public function setMemberships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipUpdatedEventData::class); + $this->memberships = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php new file mode 100644 index 000000000000..746df9b20b3f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.MembershipCreatedEventData + */ +class MembershipCreatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The new membership. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + */ + protected $membership = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Membership $membership + * The new membership. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The new membership. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + * @return \Google\Apps\Chat\V1\Membership|null + */ + public function getMembership() + { + return $this->membership; + } + + public function hasMembership() + { + return isset($this->membership); + } + + public function clearMembership() + { + unset($this->membership); + } + + /** + * The new membership. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + * @param \Google\Apps\Chat\V1\Membership $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); + $this->membership = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php new file mode 100644 index 000000000000..5da8374bb5d7 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.MembershipDeletedEventData + */ +class MembershipDeletedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The deleted membership. Only the `name` and `state` fields are populated. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + */ + protected $membership = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Membership $membership + * The deleted membership. Only the `name` and `state` fields are populated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The deleted membership. Only the `name` and `state` fields are populated. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + * @return \Google\Apps\Chat\V1\Membership|null + */ + public function getMembership() + { + return $this->membership; + } + + public function hasMembership() + { + return isset($this->membership); + } + + public function clearMembership() + { + unset($this->membership); + } + + /** + * The deleted membership. Only the `name` and `state` fields are populated. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + * @param \Google\Apps\Chat\V1\Membership $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); + $this->membership = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php new file mode 100644 index 000000000000..1a0d040b13c4 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.MembershipUpdatedEventData + */ +class MembershipUpdatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The updated membership. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + */ + protected $membership = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Membership $membership + * The updated membership. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The updated membership. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + * @return \Google\Apps\Chat\V1\Membership|null + */ + public function getMembership() + { + return $this->membership; + } + + public function hasMembership() + { + return isset($this->membership); + } + + public function clearMembership() + { + unset($this->membership); + } + + /** + * The updated membership. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1; + * @param \Google\Apps\Chat\V1\Membership $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); + $this->membership = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php new file mode 100644 index 000000000000..79d378591d46 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php @@ -0,0 +1,1496 @@ +google.chat.v1.Message + */ +class Message extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * Where `{space}` is the ID of the space where the message is posted and + * `{message}` is a system-assigned ID for the message. For example, + * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. + * If you set a custom ID when you create a message, you can use this ID to + * specify the message in a request by replacing `{message}` with the value + * from the `clientAssignedMessageId` field. For example, + * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name + * a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The user who created the message. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output populates the + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * `name` and `type`. + * + * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sender = null; + /** + * Optional. Immutable. For spaces created in Chat, the time at which the + * message was created. This field is output only, except when used in import + * mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the message was created in the source in order to preserve the original + * creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $create_time = null; + /** + * Output only. The time at which the message was last edited by a user. If + * the message has never been edited, this field is empty. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_update_time = null; + /** + * Output only. The time at which the message was deleted in + * Google Chat. If the message is never deleted, this field is empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_time = null; + /** + * Optional. Plain-text body of the message. The first link to an image, + * video, or web page generates a [preview + * chip](https://developers.google.com/workspace/chat/preview-links). You can + * also [\@mention a Google Chat + * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), + * or everyone in the space. + * To learn about creating text messages, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * + * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $text = ''; + /** + * Output only. Contains the message `text` with markups added to communicate + * formatting. This field might not capture all formatting visible in the UI, + * but includes the following: + * * [Markup + * syntax](https://developers.google.com/workspace/chat/format-messages) + * for bold, italic, strikethrough, monospace, monospace block, and bulleted + * list. + * * [User + * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) + * using the format ``. + * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the + * first string is the URL and the second is the rendered text—for example, + * ``. + * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. + * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning + * face emoji. + * * Bullet list items using asterisks (`*`)—for example, `* item`. + * For more information, see [View text formatting sent in a + * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) + * + * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $formatted_text = ''; + /** + * Deprecated: Use `cards_v2` instead. + * Rich, formatted, and interactive cards that you can use to display UI + * elements such as: formatted texts, buttons, and clickable images. Cards are + * normally displayed below the plain-text body of the message. `cards` and + * `cards_v2` can have a maximum size of 32 KB. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; + * @deprecated + */ + private $cards; + /** + * Optional. An array of + * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). + * Only Chat apps can create cards. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the messages can't contain cards. + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * [Card builder](https://addons.gsuite.google.com/uikit/builder) + * + * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $cards_v2; + /** + * Output only. Annotations can be associated with the plain-text body of the + * message or with chips that link to Google Workspace resources like Google + * Docs or Sheets with `start_index` and `length` of 0. + * + * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $annotations; + /** + * The thread the message belongs to. For example usage, see + * [Start or reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * + * Generated from protobuf field .google.chat.v1.Thread thread = 11; + */ + protected $thread = null; + /** + * Output only. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output only populates the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * `name`. + * + * Generated from protobuf field .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $space = null; + /** + * Optional. A plain-text description of the message's cards, used when the + * actual cards can't be displayed—for example, mobile notifications. + * + * Generated from protobuf field string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fallback_text = ''; + /** + * Input only. Parameters that a Chat app can use to configure how its + * response is posted. + * + * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $action_response = null; + /** + * Output only. Plain-text body of the message with all Chat app mentions + * stripped out. + * + * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $argument_text = ''; + /** + * Output only. Slash command information, if applicable. + * + * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $slash_command = null; + /** + * Optional. User-uploaded attachment. + * + * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $attachment; + /** + * Output only. A URL in `spaces.messages.text` that matches a link preview + * pattern. For more information, see [Preview + * links](https://developers.google.com/workspace/chat/preview-links). + * + * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $matched_url = null; + /** + * Output only. When `true`, the message is a response in a reply thread. When + * `false`, the message is visible in the space's top-level conversation as + * either the first message of a thread or a message with no threaded replies. + * If the space doesn't support reply in threads, this field is always + * `false`. + * + * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $thread_reply = false; + /** + * Output only. Whether this is a silent message. Silent messages are messages + * where Chat suppresses push notifications for recipients. + * + * Generated from protobuf field bool silent = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $silent = false; + /** + * Optional. A custom ID for the message. You can use field to identify a + * message, or to get, delete, or update a message. To set a custom ID, + * specify the + * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) + * field when you create the message. For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $client_assigned_message_id = ''; + /** + * Output only. The list of emoji reaction summaries on the message. + * + * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $emoji_reaction_summaries; + /** + * Optional. Immutable. Input for creating a message, otherwise output only. + * The user that can view the message. When set, the message is private and + * only visible to the specified user and the Chat app. To include this field + * in your request, you must call the Chat API using [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and omit the following: + * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) + * For details, see [Send a message + * privately](https://developers.google.com/workspace/chat/create-messages#private). + * + * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $private_message_viewer = null; + /** + * Output only. Information about a deleted message. A message is deleted when + * `delete_time` is set. + * + * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deletion_metadata = null; + /** + * Optional. Information about a message that another message quotes. + * When you create a message, you can quote messages within the same + * thread, or quote a root message to create a new root message. + * However, you can't quote a message reply from a different thread. + * When you update a message, you can't add or replace the + * `quotedMessageMetadata` field, but you can remove it. + * For example usage, see [Quote another + * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). + * + * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $quoted_message_metadata = null; + /** + * Output only. GIF images that are attached to the message. + * + * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $attached_gifs; + /** + * Optional. One or more interactive widgets that appear at the bottom of a + * message. You can add accessory widgets to messages that contain text, + * cards, or both text and cards. Not supported for messages that contain + * dialogs. For details, see [Add interactive widgets at the bottom of a + * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). + * Creating a message with accessory widgets requires [app + * authentication] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $accessory_widgets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * Where `{space}` is the ID of the space where the message is posted and + * `{message}` is a system-assigned ID for the message. For example, + * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. + * If you set a custom ID when you create a message, you can use this ID to + * specify the message in a request by replacing `{message}` with the value + * from the `clientAssignedMessageId` field. For example, + * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name + * a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * @type \Google\Apps\Chat\V1\User $sender + * Output only. The user who created the message. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output populates the + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * `name` and `type`. + * @type \Google\Protobuf\Timestamp $create_time + * Optional. Immutable. For spaces created in Chat, the time at which the + * message was created. This field is output only, except when used in import + * mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the message was created in the source in order to preserve the original + * creation time. + * @type \Google\Protobuf\Timestamp $last_update_time + * Output only. The time at which the message was last edited by a user. If + * the message has never been edited, this field is empty. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. The time at which the message was deleted in + * Google Chat. If the message is never deleted, this field is empty. + * @type string $text + * Optional. Plain-text body of the message. The first link to an image, + * video, or web page generates a [preview + * chip](https://developers.google.com/workspace/chat/preview-links). You can + * also [\@mention a Google Chat + * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), + * or everyone in the space. + * To learn about creating text messages, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * @type string $formatted_text + * Output only. Contains the message `text` with markups added to communicate + * formatting. This field might not capture all formatting visible in the UI, + * but includes the following: + * * [Markup + * syntax](https://developers.google.com/workspace/chat/format-messages) + * for bold, italic, strikethrough, monospace, monospace block, and bulleted + * list. + * * [User + * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) + * using the format ``. + * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the + * first string is the URL and the second is the rendered text—for example, + * ``. + * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. + * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning + * face emoji. + * * Bullet list items using asterisks (`*`)—for example, `* item`. + * For more information, see [View text formatting sent in a + * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) + * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card[] $cards + * Deprecated: Use `cards_v2` instead. + * Rich, formatted, and interactive cards that you can use to display UI + * elements such as: formatted texts, buttons, and clickable images. Cards are + * normally displayed below the plain-text body of the message. `cards` and + * `cards_v2` can have a maximum size of 32 KB. + * @type \Google\Apps\Chat\V1\CardWithId[] $cards_v2 + * Optional. An array of + * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). + * Only Chat apps can create cards. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the messages can't contain cards. + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * [Card builder](https://addons.gsuite.google.com/uikit/builder) + * @type \Google\Apps\Chat\V1\Annotation[] $annotations + * Output only. Annotations can be associated with the plain-text body of the + * message or with chips that link to Google Workspace resources like Google + * Docs or Sheets with `start_index` and `length` of 0. + * @type \Google\Apps\Chat\V1\Thread $thread + * The thread the message belongs to. For example usage, see + * [Start or reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * @type \Google\Apps\Chat\V1\Space $space + * Output only. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output only populates the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * `name`. + * @type string $fallback_text + * Optional. A plain-text description of the message's cards, used when the + * actual cards can't be displayed—for example, mobile notifications. + * @type \Google\Apps\Chat\V1\ActionResponse $action_response + * Input only. Parameters that a Chat app can use to configure how its + * response is posted. + * @type string $argument_text + * Output only. Plain-text body of the message with all Chat app mentions + * stripped out. + * @type \Google\Apps\Chat\V1\SlashCommand $slash_command + * Output only. Slash command information, if applicable. + * @type \Google\Apps\Chat\V1\Attachment[] $attachment + * Optional. User-uploaded attachment. + * @type \Google\Apps\Chat\V1\MatchedUrl $matched_url + * Output only. A URL in `spaces.messages.text` that matches a link preview + * pattern. For more information, see [Preview + * links](https://developers.google.com/workspace/chat/preview-links). + * @type bool $thread_reply + * Output only. When `true`, the message is a response in a reply thread. When + * `false`, the message is visible in the space's top-level conversation as + * either the first message of a thread or a message with no threaded replies. + * If the space doesn't support reply in threads, this field is always + * `false`. + * @type bool $silent + * Output only. Whether this is a silent message. Silent messages are messages + * where Chat suppresses push notifications for recipients. + * @type string $client_assigned_message_id + * Optional. A custom ID for the message. You can use field to identify a + * message, or to get, delete, or update a message. To set a custom ID, + * specify the + * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) + * field when you create the message. For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * @type \Google\Apps\Chat\V1\EmojiReactionSummary[] $emoji_reaction_summaries + * Output only. The list of emoji reaction summaries on the message. + * @type \Google\Apps\Chat\V1\User $private_message_viewer + * Optional. Immutable. Input for creating a message, otherwise output only. + * The user that can view the message. When set, the message is private and + * only visible to the specified user and the Chat app. To include this field + * in your request, you must call the Chat API using [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and omit the following: + * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) + * For details, see [Send a message + * privately](https://developers.google.com/workspace/chat/create-messages#private). + * @type \Google\Apps\Chat\V1\DeletionMetadata $deletion_metadata + * Output only. Information about a deleted message. A message is deleted when + * `delete_time` is set. + * @type \Google\Apps\Chat\V1\QuotedMessageMetadata $quoted_message_metadata + * Optional. Information about a message that another message quotes. + * When you create a message, you can quote messages within the same + * thread, or quote a root message to create a new root message. + * However, you can't quote a message reply from a different thread. + * When you update a message, you can't add or replace the + * `quotedMessageMetadata` field, but you can remove it. + * For example usage, see [Quote another + * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). + * @type \Google\Apps\Chat\V1\AttachedGif[] $attached_gifs + * Output only. GIF images that are attached to the message. + * @type \Google\Apps\Chat\V1\AccessoryWidget[] $accessory_widgets + * Optional. One or more interactive widgets that appear at the bottom of a + * message. You can add accessory widgets to messages that contain text, + * cards, or both text and cards. Not supported for messages that contain + * dialogs. For details, see [Add interactive widgets at the bottom of a + * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). + * Creating a message with accessory widgets requires [app + * authentication] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * Where `{space}` is the ID of the space where the message is posted and + * `{message}` is a system-assigned ID for the message. For example, + * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. + * If you set a custom ID when you create a message, you can use this ID to + * specify the message in a request by replacing `{message}` with the value + * from the `clientAssignedMessageId` field. For example, + * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name + * a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the message. + * Format: `spaces/{space}/messages/{message}` + * Where `{space}` is the ID of the space where the message is posted and + * `{message}` is a system-assigned ID for the message. For example, + * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. + * If you set a custom ID when you create a message, you can use this ID to + * specify the message in a request by replacing `{message}` with the value + * from the `clientAssignedMessageId` field. For example, + * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name + * a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The user who created the message. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output populates the + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * `name` and `type`. + * + * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\User|null + */ + public function getSender() + { + return $this->sender; + } + + public function hasSender() + { + return isset($this->sender); + } + + public function clearSender() + { + unset($this->sender); + } + + /** + * Output only. The user who created the message. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output populates the + * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) + * `name` and `type`. + * + * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\User $var + * @return $this + */ + public function setSender($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); + $this->sender = $var; + + return $this; + } + + /** + * Optional. Immutable. For spaces created in Chat, the time at which the + * message was created. This field is output only, except when used in import + * mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the message was created in the source in order to preserve the original + * creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Optional. Immutable. For spaces created in Chat, the time at which the + * message was created. This field is output only, except when used in import + * mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the message was created in the source in order to preserve the original + * creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time at which the message was last edited by a user. If + * the message has never been edited, this field is empty. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUpdateTime() + { + return $this->last_update_time; + } + + public function hasLastUpdateTime() + { + return isset($this->last_update_time); + } + + public function clearLastUpdateTime() + { + unset($this->last_update_time); + } + + /** + * Output only. The time at which the message was last edited by a user. If + * the message has never been edited, this field is empty. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_update_time = $var; + + return $this; + } + + /** + * Output only. The time at which the message was deleted in + * Google Chat. If the message is never deleted, this field is empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. The time at which the message was deleted in + * Google Chat. If the message is never deleted, this field is empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Optional. Plain-text body of the message. The first link to an image, + * video, or web page generates a [preview + * chip](https://developers.google.com/workspace/chat/preview-links). You can + * also [\@mention a Google Chat + * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), + * or everyone in the space. + * To learn about creating text messages, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * + * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Optional. Plain-text body of the message. The first link to an image, + * video, or web page generates a [preview + * chip](https://developers.google.com/workspace/chat/preview-links). You can + * also [\@mention a Google Chat + * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), + * or everyone in the space. + * To learn about creating text messages, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * + * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * Output only. Contains the message `text` with markups added to communicate + * formatting. This field might not capture all formatting visible in the UI, + * but includes the following: + * * [Markup + * syntax](https://developers.google.com/workspace/chat/format-messages) + * for bold, italic, strikethrough, monospace, monospace block, and bulleted + * list. + * * [User + * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) + * using the format ``. + * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the + * first string is the URL and the second is the rendered text—for example, + * ``. + * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. + * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning + * face emoji. + * * Bullet list items using asterisks (`*`)—for example, `* item`. + * For more information, see [View text formatting sent in a + * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) + * + * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFormattedText() + { + return $this->formatted_text; + } + + /** + * Output only. Contains the message `text` with markups added to communicate + * formatting. This field might not capture all formatting visible in the UI, + * but includes the following: + * * [Markup + * syntax](https://developers.google.com/workspace/chat/format-messages) + * for bold, italic, strikethrough, monospace, monospace block, and bulleted + * list. + * * [User + * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) + * using the format ``. + * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the + * first string is the URL and the second is the rendered text—for example, + * ``. + * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. + * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning + * face emoji. + * * Bullet list items using asterisks (`*`)—for example, `* item`. + * For more information, see [View text formatting sent in a + * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) + * + * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFormattedText($var) + { + GPBUtil::checkString($var, True); + $this->formatted_text = $var; + + return $this; + } + + /** + * Deprecated: Use `cards_v2` instead. + * Rich, formatted, and interactive cards that you can use to display UI + * elements such as: formatted texts, buttons, and clickable images. Cards are + * normally displayed below the plain-text body of the message. `cards` and + * `cards_v2` can have a maximum size of 32 KB. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; + * @return RepeatedField<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card> + * @deprecated + */ + public function getCards() + { + if ($this->cards->count() !== 0) { + @trigger_error('cards is deprecated.', E_USER_DEPRECATED); + } + return $this->cards; + } + + /** + * Deprecated: Use `cards_v2` instead. + * Rich, formatted, and interactive cards that you can use to display UI + * elements such as: formatted texts, buttons, and clickable images. Cards are + * normally displayed below the plain-text body of the message. `cards` and + * `cards_v2` can have a maximum size of 32 KB. + * + * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; + * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card[] $var + * @return $this + * @deprecated + */ + public function setCards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card::class); + if ($arr->count() !== 0) { + @trigger_error('cards is deprecated.', E_USER_DEPRECATED); + } + $this->cards = $arr; + + return $this; + } + + /** + * Optional. An array of + * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). + * Only Chat apps can create cards. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the messages can't contain cards. + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * [Card builder](https://addons.gsuite.google.com/uikit/builder) + * + * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Apps\Chat\V1\CardWithId> + */ + public function getCardsV2() + { + return $this->cards_v2; + } + + /** + * Optional. An array of + * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). + * Only Chat apps can create cards. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the messages can't contain cards. + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * [Card builder](https://addons.gsuite.google.com/uikit/builder) + * + * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\CardWithId[] $var + * @return $this + */ + public function setCardsV2($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\CardWithId::class); + $this->cards_v2 = $arr; + + return $this; + } + + /** + * Output only. Annotations can be associated with the plain-text body of the + * message or with chips that link to Google Workspace resources like Google + * Docs or Sheets with `start_index` and `length` of 0. + * + * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Apps\Chat\V1\Annotation> + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Output only. Annotations can be associated with the plain-text body of the + * message or with chips that link to Google Workspace resources like Google + * Docs or Sheets with `start_index` and `length` of 0. + * + * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Annotation[] $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Annotation::class); + $this->annotations = $arr; + + return $this; + } + + /** + * The thread the message belongs to. For example usage, see + * [Start or reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * + * Generated from protobuf field .google.chat.v1.Thread thread = 11; + * @return \Google\Apps\Chat\V1\Thread|null + */ + public function getThread() + { + return $this->thread; + } + + public function hasThread() + { + return isset($this->thread); + } + + public function clearThread() + { + unset($this->thread); + } + + /** + * The thread the message belongs to. For example usage, see + * [Start or reply to a message + * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). + * + * Generated from protobuf field .google.chat.v1.Thread thread = 11; + * @param \Google\Apps\Chat\V1\Thread $var + * @return $this + */ + public function setThread($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Thread::class); + $this->thread = $var; + + return $this; + } + + /** + * Output only. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output only populates the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * `name`. + * + * Generated from protobuf field .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\Space|null + */ + public function getSpace() + { + return $this->space; + } + + public function hasSpace() + { + return isset($this->space); + } + + public function clearSpace() + { + unset($this->space); + } + + /** + * Output only. If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * the output only populates the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + * `name`. + * + * Generated from protobuf field .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Space $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); + $this->space = $var; + + return $this; + } + + /** + * Optional. A plain-text description of the message's cards, used when the + * actual cards can't be displayed—for example, mobile notifications. + * + * Generated from protobuf field string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFallbackText() + { + return $this->fallback_text; + } + + /** + * Optional. A plain-text description of the message's cards, used when the + * actual cards can't be displayed—for example, mobile notifications. + * + * Generated from protobuf field string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFallbackText($var) + { + GPBUtil::checkString($var, True); + $this->fallback_text = $var; + + return $this; + } + + /** + * Input only. Parameters that a Chat app can use to configure how its + * response is posted. + * + * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Apps\Chat\V1\ActionResponse|null + */ + public function getActionResponse() + { + return $this->action_response; + } + + public function hasActionResponse() + { + return isset($this->action_response); + } + + public function clearActionResponse() + { + unset($this->action_response); + } + + /** + * Input only. Parameters that a Chat app can use to configure how its + * response is posted. + * + * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Apps\Chat\V1\ActionResponse $var + * @return $this + */ + public function setActionResponse($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse::class); + $this->action_response = $var; + + return $this; + } + + /** + * Output only. Plain-text body of the message with all Chat app mentions + * stripped out. + * + * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getArgumentText() + { + return $this->argument_text; + } + + /** + * Output only. Plain-text body of the message with all Chat app mentions + * stripped out. + * + * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setArgumentText($var) + { + GPBUtil::checkString($var, True); + $this->argument_text = $var; + + return $this; + } + + /** + * Output only. Slash command information, if applicable. + * + * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\SlashCommand|null + */ + public function getSlashCommand() + { + return $this->slash_command; + } + + public function hasSlashCommand() + { + return isset($this->slash_command); + } + + public function clearSlashCommand() + { + unset($this->slash_command); + } + + /** + * Output only. Slash command information, if applicable. + * + * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\SlashCommand $var + * @return $this + */ + public function setSlashCommand($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SlashCommand::class); + $this->slash_command = $var; + + return $this; + } + + /** + * Optional. User-uploaded attachment. + * + * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Apps\Chat\V1\Attachment> + */ + public function getAttachment() + { + return $this->attachment; + } + + /** + * Optional. User-uploaded attachment. + * + * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Attachment[] $var + * @return $this + */ + public function setAttachment($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Attachment::class); + $this->attachment = $arr; + + return $this; + } + + /** + * Output only. A URL in `spaces.messages.text` that matches a link preview + * pattern. For more information, see [Preview + * links](https://developers.google.com/workspace/chat/preview-links). + * + * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\MatchedUrl|null + */ + public function getMatchedUrl() + { + return $this->matched_url; + } + + public function hasMatchedUrl() + { + return isset($this->matched_url); + } + + public function clearMatchedUrl() + { + unset($this->matched_url); + } + + /** + * Output only. A URL in `spaces.messages.text` that matches a link preview + * pattern. For more information, see [Preview + * links](https://developers.google.com/workspace/chat/preview-links). + * + * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\MatchedUrl $var + * @return $this + */ + public function setMatchedUrl($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MatchedUrl::class); + $this->matched_url = $var; + + return $this; + } + + /** + * Output only. When `true`, the message is a response in a reply thread. When + * `false`, the message is visible in the space's top-level conversation as + * either the first message of a thread or a message with no threaded replies. + * If the space doesn't support reply in threads, this field is always + * `false`. + * + * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getThreadReply() + { + return $this->thread_reply; + } + + /** + * Output only. When `true`, the message is a response in a reply thread. When + * `false`, the message is visible in the space's top-level conversation as + * either the first message of a thread or a message with no threaded replies. + * If the space doesn't support reply in threads, this field is always + * `false`. + * + * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setThreadReply($var) + { + GPBUtil::checkBool($var); + $this->thread_reply = $var; + + return $this; + } + + /** + * Output only. Whether this is a silent message. Silent messages are messages + * where Chat suppresses push notifications for recipients. + * + * Generated from protobuf field bool silent = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getSilent() + { + return $this->silent; + } + + /** + * Output only. Whether this is a silent message. Silent messages are messages + * where Chat suppresses push notifications for recipients. + * + * Generated from protobuf field bool silent = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSilent($var) + { + GPBUtil::checkBool($var); + $this->silent = $var; + + return $this; + } + + /** + * Optional. A custom ID for the message. You can use field to identify a + * message, or to get, delete, or update a message. To set a custom ID, + * specify the + * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) + * field when you create the message. For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getClientAssignedMessageId() + { + return $this->client_assigned_message_id; + } + + /** + * Optional. A custom ID for the message. You can use field to identify a + * message, or to get, delete, or update a message. To set a custom ID, + * specify the + * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) + * field when you create the message. For details, see [Name a + * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). + * + * Generated from protobuf field string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setClientAssignedMessageId($var) + { + GPBUtil::checkString($var, True); + $this->client_assigned_message_id = $var; + + return $this; + } + + /** + * Output only. The list of emoji reaction summaries on the message. + * + * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Apps\Chat\V1\EmojiReactionSummary> + */ + public function getEmojiReactionSummaries() + { + return $this->emoji_reaction_summaries; + } + + /** + * Output only. The list of emoji reaction summaries on the message. + * + * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\EmojiReactionSummary[] $var + * @return $this + */ + public function setEmojiReactionSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\EmojiReactionSummary::class); + $this->emoji_reaction_summaries = $arr; + + return $this; + } + + /** + * Optional. Immutable. Input for creating a message, otherwise output only. + * The user that can view the message. When set, the message is private and + * only visible to the specified user and the Chat app. To include this field + * in your request, you must call the Chat API using [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and omit the following: + * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) + * For details, see [Send a message + * privately](https://developers.google.com/workspace/chat/create-messages#private). + * + * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\User|null + */ + public function getPrivateMessageViewer() + { + return $this->private_message_viewer; + } + + public function hasPrivateMessageViewer() + { + return isset($this->private_message_viewer); + } + + public function clearPrivateMessageViewer() + { + unset($this->private_message_viewer); + } + + /** + * Optional. Immutable. Input for creating a message, otherwise output only. + * The user that can view the message. When set, the message is private and + * only visible to the specified user and the Chat app. To include this field + * in your request, you must call the Chat API using [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and omit the following: + * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) + * For details, see [Send a message + * privately](https://developers.google.com/workspace/chat/create-messages#private). + * + * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\User $var + * @return $this + */ + public function setPrivateMessageViewer($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); + $this->private_message_viewer = $var; + + return $this; + } + + /** + * Output only. Information about a deleted message. A message is deleted when + * `delete_time` is set. + * + * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\DeletionMetadata|null + */ + public function getDeletionMetadata() + { + return $this->deletion_metadata; + } + + public function hasDeletionMetadata() + { + return isset($this->deletion_metadata); + } + + public function clearDeletionMetadata() + { + unset($this->deletion_metadata); + } + + /** + * Output only. Information about a deleted message. A message is deleted when + * `delete_time` is set. + * + * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\DeletionMetadata $var + * @return $this + */ + public function setDeletionMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DeletionMetadata::class); + $this->deletion_metadata = $var; + + return $this; + } + + /** + * Optional. Information about a message that another message quotes. + * When you create a message, you can quote messages within the same + * thread, or quote a root message to create a new root message. + * However, you can't quote a message reply from a different thread. + * When you update a message, you can't add or replace the + * `quotedMessageMetadata` field, but you can remove it. + * For example usage, see [Quote another + * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). + * + * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\QuotedMessageMetadata|null + */ + public function getQuotedMessageMetadata() + { + return $this->quoted_message_metadata; + } + + public function hasQuotedMessageMetadata() + { + return isset($this->quoted_message_metadata); + } + + public function clearQuotedMessageMetadata() + { + unset($this->quoted_message_metadata); + } + + /** + * Optional. Information about a message that another message quotes. + * When you create a message, you can quote messages within the same + * thread, or quote a root message to create a new root message. + * However, you can't quote a message reply from a different thread. + * When you update a message, you can't add or replace the + * `quotedMessageMetadata` field, but you can remove it. + * For example usage, see [Quote another + * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). + * + * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\QuotedMessageMetadata $var + * @return $this + */ + public function setQuotedMessageMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\QuotedMessageMetadata::class); + $this->quoted_message_metadata = $var; + + return $this; + } + + /** + * Output only. GIF images that are attached to the message. + * + * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Apps\Chat\V1\AttachedGif> + */ + public function getAttachedGifs() + { + return $this->attached_gifs; + } + + /** + * Output only. GIF images that are attached to the message. + * + * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\AttachedGif[] $var + * @return $this + */ + public function setAttachedGifs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\AttachedGif::class); + $this->attached_gifs = $arr; + + return $this; + } + + /** + * Optional. One or more interactive widgets that appear at the bottom of a + * message. You can add accessory widgets to messages that contain text, + * cards, or both text and cards. Not supported for messages that contain + * dialogs. For details, see [Add interactive widgets at the bottom of a + * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). + * Creating a message with accessory widgets requires [app + * authentication] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Apps\Chat\V1\AccessoryWidget> + */ + public function getAccessoryWidgets() + { + return $this->accessory_widgets; + } + + /** + * Optional. One or more interactive widgets that appear at the bottom of a + * message. You can add accessory widgets to messages that contain text, + * cards, or both text and cards. Not supported for messages that contain + * dialogs. For details, see [Add interactive widgets at the bottom of a + * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). + * Creating a message with accessory widgets requires [app + * authentication] + * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\AccessoryWidget[] $var + * @return $this + */ + public function setAccessoryWidgets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\AccessoryWidget::class); + $this->accessory_widgets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php new file mode 100644 index 000000000000..fe05c979f922 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.MessageBatchCreatedEventData + */ +class MessageBatchCreatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of new messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + private $messages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\MessageCreatedEventData[] $messages + * A list of new messages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of new messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\MessageCreatedEventData> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * A list of new messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; + * @param \Google\Apps\Chat\V1\MessageCreatedEventData[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageCreatedEventData::class); + $this->messages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php new file mode 100644 index 000000000000..a5cd28961d9e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.MessageBatchDeletedEventData + */ +class MessageBatchDeletedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of deleted messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + private $messages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\MessageDeletedEventData[] $messages + * A list of deleted messages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of deleted messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\MessageDeletedEventData> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * A list of deleted messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; + * @param \Google\Apps\Chat\V1\MessageDeletedEventData[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageDeletedEventData::class); + $this->messages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php new file mode 100644 index 000000000000..6cb4f93fa61d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.MessageBatchUpdatedEventData + */ +class MessageBatchUpdatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of updated messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + private $messages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\MessageUpdatedEventData[] $messages + * A list of updated messages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of updated messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\MessageUpdatedEventData> + */ + public function getMessages() + { + return $this->messages; + } + + /** + * A list of updated messages. + * + * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + * @param \Google\Apps\Chat\V1\MessageUpdatedEventData[] $var + * @return $this + */ + public function setMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageUpdatedEventData::class); + $this->messages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php new file mode 100644 index 000000000000..8e7d67f224a6 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.MessageCreatedEventData + */ +class MessageCreatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The new message. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + */ + protected $message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Message $message + * The new message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The new message. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + * @return \Google\Apps\Chat\V1\Message|null + */ + public function getMessage() + { + return $this->message; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * The new message. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + * @param \Google\Apps\Chat\V1\Message $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php new file mode 100644 index 000000000000..78b1cdc33d5f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php @@ -0,0 +1,82 @@ +google.chat.v1.MessageDeletedEventData + */ +class MessageDeletedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The deleted message. Only the `name`, `createTime`, and + * `deletionMetadata` fields are populated. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + */ + protected $message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Message $message + * The deleted message. Only the `name`, `createTime`, and + * `deletionMetadata` fields are populated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The deleted message. Only the `name`, `createTime`, and + * `deletionMetadata` fields are populated. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + * @return \Google\Apps\Chat\V1\Message|null + */ + public function getMessage() + { + return $this->message; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * The deleted message. Only the `name`, `createTime`, and + * `deletionMetadata` fields are populated. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + * @param \Google\Apps\Chat\V1\Message $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php new file mode 100644 index 000000000000..a1807b4c31b3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.MessageUpdatedEventData + */ +class MessageUpdatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The updated message. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + */ + protected $message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Message $message + * The updated message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The updated message. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + * @return \Google\Apps\Chat\V1\Message|null + */ + public function getMessage() + { + return $this->message; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * The updated message. + * + * Generated from protobuf field .google.chat.v1.Message message = 1; + * @param \Google\Apps\Chat\V1\Message $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php new file mode 100644 index 000000000000..83c7121ef7cc --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php @@ -0,0 +1,130 @@ +google.chat.v1.MoveSectionItemRequest + */ +class MoveSectionItemRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the section item to move. + * Format: `users/{user}/sections/{section}/items/{item}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The resource name of the section to move the section item to. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $target_section = ''; + + /** + * @param string $name Required. The resource name of the section item to move. + * + * Format: `users/{user}/sections/{section}/items/{item}` + * Please see {@see ChatServiceClient::sectionItemName()} for help formatting this field. + * @param string $targetSection Required. The resource name of the section to move the section item to. + * + * Format: `users/{user}/sections/{section}` + * Please see {@see ChatServiceClient::sectionName()} for help formatting this field. + * + * @return \Google\Apps\Chat\V1\MoveSectionItemRequest + * + * @experimental + */ + public static function build(string $name, string $targetSection): self + { + return (new self()) + ->setName($name) + ->setTargetSection($targetSection); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the section item to move. + * Format: `users/{user}/sections/{section}/items/{item}` + * @type string $target_section + * Required. The resource name of the section to move the section item to. + * Format: `users/{user}/sections/{section}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the section item to move. + * Format: `users/{user}/sections/{section}/items/{item}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the section item to move. + * Format: `users/{user}/sections/{section}/items/{item}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The resource name of the section to move the section item to. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTargetSection() + { + return $this->target_section; + } + + /** + * Required. The resource name of the section to move the section item to. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTargetSection($var) + { + GPBUtil::checkString($var, True); + $this->target_section = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php new file mode 100644 index 000000000000..e48dd4f05c9b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php @@ -0,0 +1,77 @@ +google.chat.v1.MoveSectionItemResponse + */ +class MoveSectionItemResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The updated section item. + * + * Generated from protobuf field .google.chat.v1.SectionItem section_item = 1; + */ + protected $section_item = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\SectionItem $section_item + * The updated section item. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * The updated section item. + * + * Generated from protobuf field .google.chat.v1.SectionItem section_item = 1; + * @return \Google\Apps\Chat\V1\SectionItem|null + */ + public function getSectionItem() + { + return $this->section_item; + } + + public function hasSectionItem() + { + return isset($this->section_item); + } + + public function clearSectionItem() + { + unset($this->section_item); + } + + /** + * The updated section item. + * + * Generated from protobuf field .google.chat.v1.SectionItem section_item = 1; + * @param \Google\Apps\Chat\V1\SectionItem $var + * @return $this + */ + public function setSectionItem($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SectionItem::class); + $this->section_item = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php new file mode 100644 index 000000000000..37fcb51cc69b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php @@ -0,0 +1,161 @@ +google.chat.v1.PositionSectionRequest + */ +class PositionSectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the section to position. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + protected $position; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the section to position. + * Format: `users/{user}/sections/{section}` + * @type int $sort_order + * Optional. The absolute position of the section in the list of sections. + * The position must be greater than 0. If the position is greater than the + * number of sections, the section will be appended to the end of the list. + * This operation inserts the section at the given position and shifts the + * original section at that position, and those below it, to the next + * position. + * @type int $relative_position + * Optional. The relative position of the section in the list of sections. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the section to position. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the section to position. + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The absolute position of the section in the list of sections. + * The position must be greater than 0. If the position is greater than the + * number of sections, the section will be appended to the end of the list. + * This operation inserts the section at the given position and shifts the + * original section at that position, and those below it, to the next + * position. + * + * Generated from protobuf field int32 sort_order = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSortOrder() + { + return $this->readOneof(2); + } + + public function hasSortOrder() + { + return $this->hasOneof(2); + } + + /** + * Optional. The absolute position of the section in the list of sections. + * The position must be greater than 0. If the position is greater than the + * number of sections, the section will be appended to the end of the list. + * This operation inserts the section at the given position and shifts the + * original section at that position, and those below it, to the next + * position. + * + * Generated from protobuf field int32 sort_order = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSortOrder($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. The relative position of the section in the list of sections. + * + * Generated from protobuf field .google.chat.v1.PositionSectionRequest.Position relative_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getRelativePosition() + { + return $this->readOneof(3); + } + + public function hasRelativePosition() + { + return $this->hasOneof(3); + } + + /** + * Optional. The relative position of the section in the list of sections. + * + * Generated from protobuf field .google.chat.v1.PositionSectionRequest.Position relative_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setRelativePosition($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\PositionSectionRequest\Position::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getPosition() + { + return $this->whichOneof("position"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php new file mode 100644 index 000000000000..4a371ea3fa5d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php @@ -0,0 +1,61 @@ +google.chat.v1.PositionSectionRequest.Position + */ +class Position +{ + /** + * Unspecified position. + * + * Generated from protobuf enum POSITION_UNSPECIFIED = 0; + */ + const POSITION_UNSPECIFIED = 0; + /** + * Start of the list of sections. + * + * Generated from protobuf enum START = 1; + */ + const START = 1; + /** + * End of the list of sections. + * + * Generated from protobuf enum END = 2; + */ + const END = 2; + + private static $valueToName = [ + self::POSITION_UNSPECIFIED => 'POSITION_UNSPECIFIED', + self::START => 'START', + self::END => 'END', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php new file mode 100644 index 000000000000..101c1cb0cddc --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php @@ -0,0 +1,77 @@ +google.chat.v1.PositionSectionResponse + */ +class PositionSectionResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The updated section. + * + * Generated from protobuf field .google.chat.v1.Section section = 1; + */ + protected $section = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Section $section + * The updated section. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * The updated section. + * + * Generated from protobuf field .google.chat.v1.Section section = 1; + * @return \Google\Apps\Chat\V1\Section|null + */ + public function getSection() + { + return $this->section; + } + + public function hasSection() + { + return isset($this->section); + } + + public function clearSection() + { + unset($this->section); + } + + /** + * The updated section. + * + * Generated from protobuf field .google.chat.v1.Section section = 1; + * @param \Google\Apps\Chat\V1\Section $var + * @return $this + */ + public function setSection($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Section::class); + $this->section = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php new file mode 100644 index 000000000000..1d39ce930f7b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php @@ -0,0 +1,269 @@ +google.chat.v1.QuotedMessageMetadata + */ +class QuotedMessageMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the message that is quoted. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The timestamp when the quoted message was created or when the + * quoted message was last updated. + * If the message was edited, use this field, `last_update_time`. + * If the message was never edited, use `create_time`. + * If `last_update_time` doesn't match the latest version of the quoted + * message, the request fails. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $last_update_time = null; + /** + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + * + * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $quote_type = 0; + /** + * Output only. A snapshot of the quoted message's content. + * + * Generated from protobuf field .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $quoted_message_snapshot = null; + /** + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $forwarded_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the message that is quoted. + * Format: `spaces/{space}/messages/{message}` + * @type \Google\Protobuf\Timestamp $last_update_time + * Required. The timestamp when the quoted message was created or when the + * quoted message was last updated. + * If the message was edited, use this field, `last_update_time`. + * If the message was never edited, use `create_time`. + * If `last_update_time` doesn't match the latest version of the quoted + * message, the request fails. + * @type int $quote_type + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + * @type \Google\Apps\Chat\V1\QuotedMessageSnapshot $quoted_message_snapshot + * Output only. A snapshot of the quoted message's content. + * @type \Google\Apps\Chat\V1\ForwardedMetadata $forwarded_metadata + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the message that is quoted. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the message that is quoted. + * Format: `spaces/{space}/messages/{message}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The timestamp when the quoted message was created or when the + * quoted message was last updated. + * If the message was edited, use this field, `last_update_time`. + * If the message was never edited, use `create_time`. + * If `last_update_time` doesn't match the latest version of the quoted + * message, the request fails. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUpdateTime() + { + return $this->last_update_time; + } + + public function hasLastUpdateTime() + { + return isset($this->last_update_time); + } + + public function clearLastUpdateTime() + { + unset($this->last_update_time); + } + + /** + * Required. The timestamp when the quoted message was created or when the + * quoted message was last updated. + * If the message was edited, use this field, `last_update_time`. + * If the message was never edited, use `create_time`. + * If `last_update_time` doesn't match the latest version of the quoted + * message, the request fails. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_update_time = $var; + + return $this; + } + + /** + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + * + * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getQuoteType() + { + return $this->quote_type; + } + + /** + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + * + * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setQuoteType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\QuotedMessageMetadata\QuoteType::class); + $this->quote_type = $var; + + return $this; + } + + /** + * Output only. A snapshot of the quoted message's content. + * + * Generated from protobuf field .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\QuotedMessageSnapshot|null + */ + public function getQuotedMessageSnapshot() + { + return $this->quoted_message_snapshot; + } + + public function hasQuotedMessageSnapshot() + { + return isset($this->quoted_message_snapshot); + } + + public function clearQuotedMessageSnapshot() + { + unset($this->quoted_message_snapshot); + } + + /** + * Output only. A snapshot of the quoted message's content. + * + * Generated from protobuf field .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\QuotedMessageSnapshot $var + * @return $this + */ + public function setQuotedMessageSnapshot($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\QuotedMessageSnapshot::class); + $this->quoted_message_snapshot = $var; + + return $this; + } + + /** + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\ForwardedMetadata|null + */ + public function getForwardedMetadata() + { + return $this->forwarded_metadata; + } + + public function hasForwardedMetadata() + { + return isset($this->forwarded_metadata); + } + + public function clearForwardedMetadata() + { + unset($this->forwarded_metadata); + } + + /** + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\ForwardedMetadata $var + * @return $this + */ + public function setForwardedMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ForwardedMetadata::class); + $this->forwarded_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php new file mode 100644 index 000000000000..8eec514fd54f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php @@ -0,0 +1,67 @@ +google.chat.v1.QuotedMessageMetadata.QuoteType + */ +class QuoteType +{ + /** + * Reserved. This value is unused. + * + * Generated from protobuf enum QUOTE_TYPE_UNSPECIFIED = 0; + */ + const QUOTE_TYPE_UNSPECIFIED = 0; + /** + * When `quote_type` is `REPLY`, you can do the following: + * * If you're replying in a thread, you can quote another message in that + * thread. + * * If you're creating a root message, you can quote another root message + * in that space. + * + * Generated from protobuf enum REPLY = 1; + */ + const REPLY = 1; + /** + * When `quote_type` is `FORWARD`, you can quote a: + * * Message from a different space. + * * Message reply from a different thread in the same space. + * + * Generated from protobuf enum FORWARD = 2; + */ + const FORWARD = 2; + + private static $valueToName = [ + self::QUOTE_TYPE_UNSPECIFIED => 'QUOTE_TYPE_UNSPECIFIED', + self::REPLY => 'REPLY', + self::FORWARD => 'FORWARD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php new file mode 100644 index 000000000000..67ec5972a9b7 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php @@ -0,0 +1,228 @@ +google.chat.v1.QuotedMessageSnapshot + */ +class QuotedMessageSnapshot extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + * + * Generated from protobuf field string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sender = ''; + /** + * Output only. Snapshot of the quoted message's text content. + * + * Generated from protobuf field string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $text = ''; + /** + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $formatted_text = ''; + /** + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $annotations; + /** + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + * + * Generated from protobuf field repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $attachments; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sender + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + * @type string $text + * Output only. Snapshot of the quoted message's text content. + * @type string $formatted_text + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + * @type \Google\Apps\Chat\V1\Annotation[] $annotations + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + * @type \Google\Apps\Chat\V1\Attachment[] $attachments + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + * + * Generated from protobuf field string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSender() + { + return $this->sender; + } + + /** + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + * + * Generated from protobuf field string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSender($var) + { + GPBUtil::checkString($var, True); + $this->sender = $var; + + return $this; + } + + /** + * Output only. Snapshot of the quoted message's text content. + * + * Generated from protobuf field string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Output only. Snapshot of the quoted message's text content. + * + * Generated from protobuf field string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFormattedText() + { + return $this->formatted_text; + } + + /** + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFormattedText($var) + { + GPBUtil::checkString($var, True); + $this->formatted_text = $var; + + return $this; + } + + /** + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Apps\Chat\V1\Annotation> + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + * + * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Annotation[] $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Annotation::class); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + * + * Generated from protobuf field repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Apps\Chat\V1\Attachment> + */ + public function getAttachments() + { + return $this->attachments; + } + + /** + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + * + * Generated from protobuf field repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Attachment[] $var + * @return $this + */ + public function setAttachments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Attachment::class); + $this->attachments = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php new file mode 100644 index 000000000000..44f945c50b0f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php @@ -0,0 +1,159 @@ +google.chat.v1.Reaction + */ +class Reaction extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the reaction. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The user who created the reaction. + * + * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $user = null; + /** + * Required. The emoji used in the reaction. + * + * Generated from protobuf field .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $emoji = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the reaction. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * @type \Google\Apps\Chat\V1\User $user + * Output only. The user who created the reaction. + * @type \Google\Apps\Chat\V1\Emoji $emoji + * Required. The emoji used in the reaction. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the reaction. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the reaction. + * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The user who created the reaction. + * + * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\User|null + */ + public function getUser() + { + return $this->user; + } + + public function hasUser() + { + return isset($this->user); + } + + public function clearUser() + { + unset($this->user); + } + + /** + * Output only. The user who created the reaction. + * + * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\User $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); + $this->user = $var; + + return $this; + } + + /** + * Required. The emoji used in the reaction. + * + * Generated from protobuf field .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Emoji|null + */ + public function getEmoji() + { + return $this->emoji; + } + + public function hasEmoji() + { + return isset($this->emoji); + } + + public function clearEmoji() + { + unset($this->emoji); + } + + /** + * Required. The emoji used in the reaction. + * + * Generated from protobuf field .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Emoji $var + * @return $this + */ + public function setEmoji($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Emoji::class); + $this->emoji = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php new file mode 100644 index 000000000000..044909cb5404 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.ReactionBatchCreatedEventData + */ +class ReactionBatchCreatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of new reactions. + * + * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + private $reactions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\ReactionCreatedEventData[] $reactions + * A list of new reactions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of new reactions. + * + * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\ReactionCreatedEventData> + */ + public function getReactions() + { + return $this->reactions; + } + + /** + * A list of new reactions. + * + * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + * @param \Google\Apps\Chat\V1\ReactionCreatedEventData[] $var + * @return $this + */ + public function setReactions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ReactionCreatedEventData::class); + $this->reactions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php new file mode 100644 index 000000000000..1cefb1b9b3c9 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.ReactionBatchDeletedEventData + */ +class ReactionBatchDeletedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of deleted reactions. + * + * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + private $reactions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\ReactionDeletedEventData[] $reactions + * A list of deleted reactions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of deleted reactions. + * + * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\ReactionDeletedEventData> + */ + public function getReactions() + { + return $this->reactions; + } + + /** + * A list of deleted reactions. + * + * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + * @param \Google\Apps\Chat\V1\ReactionDeletedEventData[] $var + * @return $this + */ + public function setReactions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ReactionDeletedEventData::class); + $this->reactions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php new file mode 100644 index 000000000000..802b10b5d239 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.ReactionCreatedEventData + */ +class ReactionCreatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The new reaction. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; + */ + protected $reaction = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Reaction $reaction + * The new reaction. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The new reaction. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; + * @return \Google\Apps\Chat\V1\Reaction|null + */ + public function getReaction() + { + return $this->reaction; + } + + public function hasReaction() + { + return isset($this->reaction); + } + + public function clearReaction() + { + unset($this->reaction); + } + + /** + * The new reaction. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; + * @param \Google\Apps\Chat\V1\Reaction $var + * @return $this + */ + public function setReaction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); + $this->reaction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php new file mode 100644 index 000000000000..440139f51fef --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.ReactionDeletedEventData + */ +class ReactionDeletedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The deleted reaction. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; + */ + protected $reaction = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Reaction $reaction + * The deleted reaction. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The deleted reaction. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; + * @return \Google\Apps\Chat\V1\Reaction|null + */ + public function getReaction() + { + return $this->reaction; + } + + public function hasReaction() + { + return isset($this->reaction); + } + + public function clearReaction() + { + unset($this->reaction); + } + + /** + * The deleted reaction. + * + * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; + * @param \Google\Apps\Chat\V1\Reaction $var + * @return $this + */ + public function setReaction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); + $this->reaction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php new file mode 100644 index 000000000000..5d70614425c3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php @@ -0,0 +1,245 @@ +google.chat.v1.RichLinkMetadata + */ +class RichLinkMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The URI of this link. + * + * Generated from protobuf field string uri = 1; + */ + protected $uri = ''; + /** + * The rich link type. + * + * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; + */ + protected $rich_link_type = 0; + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * The URI of this link. + * @type int $rich_link_type + * The rich link type. + * @type \Google\Apps\Chat\V1\DriveLinkData $drive_link_data + * Data for a drive link. + * @type \Google\Apps\Chat\V1\ChatSpaceLinkData $chat_space_link_data + * Data for a chat space link. + * @type \Google\Apps\Chat\V1\MeetSpaceLinkData $meet_space_link_data + * Data for a Meet space link. + * @type \Google\Apps\Chat\V1\CalendarEventLinkData $calendar_event_link_data + * Data for a Calendar event link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * The URI of this link. + * + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * The URI of this link. + * + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * The rich link type. + * + * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; + * @return int + */ + public function getRichLinkType() + { + return $this->rich_link_type; + } + + /** + * The rich link type. + * + * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; + * @param int $var + * @return $this + */ + public function setRichLinkType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\RichLinkMetadata\RichLinkType::class); + $this->rich_link_type = $var; + + return $this; + } + + /** + * Data for a drive link. + * + * Generated from protobuf field .google.chat.v1.DriveLinkData drive_link_data = 3; + * @return \Google\Apps\Chat\V1\DriveLinkData|null + */ + public function getDriveLinkData() + { + return $this->readOneof(3); + } + + public function hasDriveLinkData() + { + return $this->hasOneof(3); + } + + /** + * Data for a drive link. + * + * Generated from protobuf field .google.chat.v1.DriveLinkData drive_link_data = 3; + * @param \Google\Apps\Chat\V1\DriveLinkData $var + * @return $this + */ + public function setDriveLinkData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveLinkData::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Data for a chat space link. + * + * Generated from protobuf field .google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4; + * @return \Google\Apps\Chat\V1\ChatSpaceLinkData|null + */ + public function getChatSpaceLinkData() + { + return $this->readOneof(4); + } + + public function hasChatSpaceLinkData() + { + return $this->hasOneof(4); + } + + /** + * Data for a chat space link. + * + * Generated from protobuf field .google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4; + * @param \Google\Apps\Chat\V1\ChatSpaceLinkData $var + * @return $this + */ + public function setChatSpaceLinkData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ChatSpaceLinkData::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Data for a Meet space link. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData meet_space_link_data = 5; + * @return \Google\Apps\Chat\V1\MeetSpaceLinkData|null + */ + public function getMeetSpaceLinkData() + { + return $this->readOneof(5); + } + + public function hasMeetSpaceLinkData() + { + return $this->hasOneof(5); + } + + /** + * Data for a Meet space link. + * + * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData meet_space_link_data = 5; + * @param \Google\Apps\Chat\V1\MeetSpaceLinkData $var + * @return $this + */ + public function setMeetSpaceLinkData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MeetSpaceLinkData::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Data for a Calendar event link. + * + * Generated from protobuf field .google.chat.v1.CalendarEventLinkData calendar_event_link_data = 6; + * @return \Google\Apps\Chat\V1\CalendarEventLinkData|null + */ + public function getCalendarEventLinkData() + { + return $this->readOneof(6); + } + + public function hasCalendarEventLinkData() + { + return $this->hasOneof(6); + } + + /** + * Data for a Calendar event link. + * + * Generated from protobuf field .google.chat.v1.CalendarEventLinkData calendar_event_link_data = 6; + * @param \Google\Apps\Chat\V1\CalendarEventLinkData $var + * @return $this + */ + public function setCalendarEventLinkData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CalendarEventLinkData::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php new file mode 100644 index 000000000000..e4ba6a36fdf8 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php @@ -0,0 +1,84 @@ +google.chat.v1.RichLinkMetadata.RichLinkType + */ +class RichLinkType +{ + /** + * Default value for the enum. Don't use. + * + * Generated from protobuf enum RICH_LINK_TYPE_UNSPECIFIED = 0; + */ + const RICH_LINK_TYPE_UNSPECIFIED = 0; + /** + * A Google Drive rich link type. + * + * Generated from protobuf enum DRIVE_FILE = 1; + */ + const DRIVE_FILE = 1; + /** + * A Chat space rich link type. For example, a space smart chip. + * + * Generated from protobuf enum CHAT_SPACE = 2; + */ + const CHAT_SPACE = 2; + /** + * A Gmail message rich link type. Specifically, a Gmail chip from [Share to + * Chat](https://support.google.com/chat?p=chat_gmail). The API only + * supports reading messages with GMAIL_MESSAGE rich links. + * + * Generated from protobuf enum GMAIL_MESSAGE = 3; + */ + const GMAIL_MESSAGE = 3; + /** + * A Meet message rich link type. For example, a Meet chip. + * + * Generated from protobuf enum MEET_SPACE = 4; + */ + const MEET_SPACE = 4; + /** + * A Calendar message rich link type. For example, a Calendar chip. + * + * Generated from protobuf enum CALENDAR_EVENT = 5; + */ + const CALENDAR_EVENT = 5; + + private static $valueToName = [ + self::RICH_LINK_TYPE_UNSPECIFIED => 'RICH_LINK_TYPE_UNSPECIFIED', + self::DRIVE_FILE => 'DRIVE_FILE', + self::CHAT_SPACE => 'CHAT_SPACE', + self::GMAIL_MESSAGE => 'GMAIL_MESSAGE', + self::MEET_SPACE => 'MEET_SPACE', + self::CALENDAR_EVENT => 'CALENDAR_EVENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php new file mode 100644 index 000000000000..543b166b97ff --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php @@ -0,0 +1,539 @@ +google.chat.v1.SearchSpacesRequest + */ +class SearchSpacesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` + * [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * This method currently only supports admin access, thus only `true` is + * accepted for this field. + * + * Generated from protobuf field bool use_admin_access = 1; + */ + protected $use_admin_access = false; + /** + * The maximum number of spaces to return. The service may return fewer than + * this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A token, received from the previous search spaces call. Provide this + * parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Required. A search query. + * You can search by using the following parameters: + * - `create_time` + * - `customer` + * - `display_name` + * - `external_user_allowed` + * - `last_active_time` + * - `space_history_state` + * - `space_type` + * `create_time` and `last_active_time` accept a timestamp in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported + * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. + * `customer` is required and is used to indicate which customer + * to fetch spaces from. `customers/my_customer` is the only supported value. + * `display_name` only accepts the `HAS` (`:`) operator. The text to + * match is first tokenized into tokens and each token is prefix-matched + * case-insensitively and independently as a substring anywhere in the space's + * `display_name`. For example, `Fun Eve` matches `Fun event` or `The + * evening was fun`, but not `notFun event` or `even`. + * `external_user_allowed` accepts either `true` or `false`. + * `space_history_state` only accepts values from the [`historyState`] + * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) + * field of a `space` resource. + * `space_type` is required and the only valid value is `SPACE`. + * Across different fields, only `AND` operators are supported. A valid + * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid + * example is `space_type = "SPACE" OR display_name:"Hello"`. + * Among the same field, + * `space_type` doesn't support `AND` or `OR` operators. + * `display_name`, 'space_history_state', and 'external_user_allowed' only + * support `OR` operators. + * `last_active_time` and `create_time` support both `AND` and `OR` operators. + * `AND` can only be used to represent an interval, such as `last_active_time + * < "2022-01-01T00:00:00+00:00" AND last_active_time > + * "2023-01-01T00:00:00+00:00"`. + * The following example queries are valid: + * ``` + * customer = "customers/my_customer" AND space_type = "SPACE" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * display_name:"Hello World" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (display_name:"Hello World" OR display_name:"Fun event") AND + * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < + * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND + * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") + * ``` + * + * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Optional. How the list of spaces is ordered. + * Supported attributes to order by are: + * - `membership_count.joined_direct_human_user_count` — Denotes the count of + * human users that have directly joined a space. + * - `last_active_time` — Denotes the time when last eligible item is added to + * any topic of this space. + * - `create_time` — Denotes the time of the space creation. + * Valid ordering operation values are: + * - `ASC` for ascending. Default value. + * - `DESC` for descending. + * The supported syntax are: + * - `membership_count.joined_direct_human_user_count DESC` + * - `membership_count.joined_direct_human_user_count ASC` + * - `last_active_time DESC` + * - `last_active_time ASC` + * - `create_time DESC` + * - `create_time ASC` + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $use_admin_access + * When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` + * [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * This method currently only supports admin access, thus only `true` is + * accepted for this field. + * @type int $page_size + * The maximum number of spaces to return. The service may return fewer than + * this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * @type string $page_token + * A token, received from the previous search spaces call. Provide this + * parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * @type string $query + * Required. A search query. + * You can search by using the following parameters: + * - `create_time` + * - `customer` + * - `display_name` + * - `external_user_allowed` + * - `last_active_time` + * - `space_history_state` + * - `space_type` + * `create_time` and `last_active_time` accept a timestamp in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported + * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. + * `customer` is required and is used to indicate which customer + * to fetch spaces from. `customers/my_customer` is the only supported value. + * `display_name` only accepts the `HAS` (`:`) operator. The text to + * match is first tokenized into tokens and each token is prefix-matched + * case-insensitively and independently as a substring anywhere in the space's + * `display_name`. For example, `Fun Eve` matches `Fun event` or `The + * evening was fun`, but not `notFun event` or `even`. + * `external_user_allowed` accepts either `true` or `false`. + * `space_history_state` only accepts values from the [`historyState`] + * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) + * field of a `space` resource. + * `space_type` is required and the only valid value is `SPACE`. + * Across different fields, only `AND` operators are supported. A valid + * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid + * example is `space_type = "SPACE" OR display_name:"Hello"`. + * Among the same field, + * `space_type` doesn't support `AND` or `OR` operators. + * `display_name`, 'space_history_state', and 'external_user_allowed' only + * support `OR` operators. + * `last_active_time` and `create_time` support both `AND` and `OR` operators. + * `AND` can only be used to represent an interval, such as `last_active_time + * < "2022-01-01T00:00:00+00:00" AND last_active_time > + * "2023-01-01T00:00:00+00:00"`. + * The following example queries are valid: + * ``` + * customer = "customers/my_customer" AND space_type = "SPACE" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * display_name:"Hello World" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (display_name:"Hello World" OR display_name:"Fun event") AND + * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < + * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND + * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") + * ``` + * @type string $order_by + * Optional. How the list of spaces is ordered. + * Supported attributes to order by are: + * - `membership_count.joined_direct_human_user_count` — Denotes the count of + * human users that have directly joined a space. + * - `last_active_time` — Denotes the time when last eligible item is added to + * any topic of this space. + * - `create_time` — Denotes the time of the space creation. + * Valid ordering operation values are: + * - `ASC` for ascending. Default value. + * - `DESC` for descending. + * The supported syntax are: + * - `membership_count.joined_direct_human_user_count DESC` + * - `membership_count.joined_direct_human_user_count ASC` + * - `last_active_time DESC` + * - `last_active_time ASC` + * - `create_time DESC` + * - `create_time ASC` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` + * [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * This method currently only supports admin access, thus only `true` is + * accepted for this field. + * + * Generated from protobuf field bool use_admin_access = 1; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` + * [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * This method currently only supports admin access, thus only `true` is + * accepted for this field. + * + * Generated from protobuf field bool use_admin_access = 1; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + + /** + * The maximum number of spaces to return. The service may return fewer than + * this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of spaces to return. The service may return fewer than + * this value. + * If unspecified, at most 100 spaces are returned. + * The maximum value is 1000. If you use a value more than 1000, it's + * automatically changed to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A token, received from the previous search spaces call. Provide this + * parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A token, received from the previous search spaces call. Provide this + * parameter to retrieve the subsequent page. + * When paginating, all other parameters provided should match the call that + * provided the page token. Passing different values to the other parameters + * might lead to unexpected results. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Required. A search query. + * You can search by using the following parameters: + * - `create_time` + * - `customer` + * - `display_name` + * - `external_user_allowed` + * - `last_active_time` + * - `space_history_state` + * - `space_type` + * `create_time` and `last_active_time` accept a timestamp in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported + * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. + * `customer` is required and is used to indicate which customer + * to fetch spaces from. `customers/my_customer` is the only supported value. + * `display_name` only accepts the `HAS` (`:`) operator. The text to + * match is first tokenized into tokens and each token is prefix-matched + * case-insensitively and independently as a substring anywhere in the space's + * `display_name`. For example, `Fun Eve` matches `Fun event` or `The + * evening was fun`, but not `notFun event` or `even`. + * `external_user_allowed` accepts either `true` or `false`. + * `space_history_state` only accepts values from the [`historyState`] + * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) + * field of a `space` resource. + * `space_type` is required and the only valid value is `SPACE`. + * Across different fields, only `AND` operators are supported. A valid + * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid + * example is `space_type = "SPACE" OR display_name:"Hello"`. + * Among the same field, + * `space_type` doesn't support `AND` or `OR` operators. + * `display_name`, 'space_history_state', and 'external_user_allowed' only + * support `OR` operators. + * `last_active_time` and `create_time` support both `AND` and `OR` operators. + * `AND` can only be used to represent an interval, such as `last_active_time + * < "2022-01-01T00:00:00+00:00" AND last_active_time > + * "2023-01-01T00:00:00+00:00"`. + * The following example queries are valid: + * ``` + * customer = "customers/my_customer" AND space_type = "SPACE" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * display_name:"Hello World" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (display_name:"Hello World" OR display_name:"Fun event") AND + * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < + * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND + * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") + * ``` + * + * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. A search query. + * You can search by using the following parameters: + * - `create_time` + * - `customer` + * - `display_name` + * - `external_user_allowed` + * - `last_active_time` + * - `space_history_state` + * - `space_type` + * `create_time` and `last_active_time` accept a timestamp in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported + * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. + * `customer` is required and is used to indicate which customer + * to fetch spaces from. `customers/my_customer` is the only supported value. + * `display_name` only accepts the `HAS` (`:`) operator. The text to + * match is first tokenized into tokens and each token is prefix-matched + * case-insensitively and independently as a substring anywhere in the space's + * `display_name`. For example, `Fun Eve` matches `Fun event` or `The + * evening was fun`, but not `notFun event` or `even`. + * `external_user_allowed` accepts either `true` or `false`. + * `space_history_state` only accepts values from the [`historyState`] + * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) + * field of a `space` resource. + * `space_type` is required and the only valid value is `SPACE`. + * Across different fields, only `AND` operators are supported. A valid + * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid + * example is `space_type = "SPACE" OR display_name:"Hello"`. + * Among the same field, + * `space_type` doesn't support `AND` or `OR` operators. + * `display_name`, 'space_history_state', and 'external_user_allowed' only + * support `OR` operators. + * `last_active_time` and `create_time` support both `AND` and `OR` operators. + * `AND` can only be used to represent an interval, such as `last_active_time + * < "2022-01-01T00:00:00+00:00" AND last_active_time > + * "2023-01-01T00:00:00+00:00"`. + * The following example queries are valid: + * ``` + * customer = "customers/my_customer" AND space_type = "SPACE" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * display_name:"Hello World" + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (display_name:"Hello World" OR display_name:"Fun event") AND + * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < + * "2022-01-01T00:00:00+00:00") + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < + * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND + * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") + * ``` + * + * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Optional. How the list of spaces is ordered. + * Supported attributes to order by are: + * - `membership_count.joined_direct_human_user_count` — Denotes the count of + * human users that have directly joined a space. + * - `last_active_time` — Denotes the time when last eligible item is added to + * any topic of this space. + * - `create_time` — Denotes the time of the space creation. + * Valid ordering operation values are: + * - `ASC` for ascending. Default value. + * - `DESC` for descending. + * The supported syntax are: + * - `membership_count.joined_direct_human_user_count DESC` + * - `membership_count.joined_direct_human_user_count ASC` + * - `last_active_time DESC` + * - `last_active_time ASC` + * - `create_time DESC` + * - `create_time ASC` + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. How the list of spaces is ordered. + * Supported attributes to order by are: + * - `membership_count.joined_direct_human_user_count` — Denotes the count of + * human users that have directly joined a space. + * - `last_active_time` — Denotes the time when last eligible item is added to + * any topic of this space. + * - `create_time` — Denotes the time of the space creation. + * Valid ordering operation values are: + * - `ASC` for ascending. Default value. + * - `DESC` for descending. + * The supported syntax are: + * - `membership_count.joined_direct_human_user_count DESC` + * - `membership_count.joined_direct_human_user_count ASC` + * - `last_active_time DESC` + * - `last_active_time ASC` + * - `create_time DESC` + * - `create_time ASC` + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php new file mode 100644 index 000000000000..1661763cd368 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php @@ -0,0 +1,143 @@ +google.chat.v1.SearchSpacesResponse + */ +class SearchSpacesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A page of the requested spaces. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + */ + private $spaces; + /** + * A token that can be used to retrieve the next page. If this field is empty, + * there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * The total number of spaces that match the query, across all pages. If the + * result is over 10,000 spaces, this value is an estimate. + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space[] $spaces + * A page of the requested spaces. + * @type string $next_page_token + * A token that can be used to retrieve the next page. If this field is empty, + * there are no subsequent pages. + * @type int $total_size + * The total number of spaces that match the query, across all pages. If the + * result is over 10,000 spaces, this value is an estimate. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * A page of the requested spaces. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\Space> + */ + public function getSpaces() + { + return $this->spaces; + } + + /** + * A page of the requested spaces. + * + * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; + * @param \Google\Apps\Chat\V1\Space[] $var + * @return $this + */ + public function setSpaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); + $this->spaces = $arr; + + return $this; + } + + /** + * A token that can be used to retrieve the next page. If this field is empty, + * there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be used to retrieve the next page. If this field is empty, + * there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * The total number of spaces that match the query, across all pages. If the + * result is over 10,000 spaces, this value is an estimate. + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * The total number of spaces that match the query, across all pages. If the + * result is over 10,000 spaces, this value is an estimate. + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php new file mode 100644 index 000000000000..0aceb64eb557 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php @@ -0,0 +1,218 @@ +google.chat.v1.Section + */ +class Section extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the section. + * For system sections, the section ID is a constant string: + * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` + * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` + * - DEFAULT_APPS: `users/{user}/sections/default-apps` + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The section's display name. Only populated for sections of type + * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a + * `CUSTOM_SECTION`. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. The order of the section in relation to other sections. + * Sections with a lower `sort_order` value appear before sections with a + * higher value. + * + * Generated from protobuf field int32 sort_order = 3; + */ + protected $sort_order = 0; + /** + * Required. The type of the section. + * + * Generated from protobuf field .google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the section. + * For system sections, the section ID is a constant string: + * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` + * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` + * - DEFAULT_APPS: `users/{user}/sections/default-apps` + * Format: `users/{user}/sections/{section}` + * @type string $display_name + * Optional. The section's display name. Only populated for sections of type + * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a + * `CUSTOM_SECTION`. + * @type int $sort_order + * Output only. The order of the section in relation to other sections. + * Sections with a lower `sort_order` value appear before sections with a + * higher value. + * @type int $type + * Required. The type of the section. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the section. + * For system sections, the section ID is a constant string: + * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` + * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` + * - DEFAULT_APPS: `users/{user}/sections/default-apps` + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the section. + * For system sections, the section ID is a constant string: + * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` + * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` + * - DEFAULT_APPS: `users/{user}/sections/default-apps` + * Format: `users/{user}/sections/{section}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The section's display name. Only populated for sections of type + * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a + * `CUSTOM_SECTION`. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The section's display name. Only populated for sections of type + * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a + * `CUSTOM_SECTION`. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The order of the section in relation to other sections. + * Sections with a lower `sort_order` value appear before sections with a + * higher value. + * + * Generated from protobuf field int32 sort_order = 3; + * @return int + */ + public function getSortOrder() + { + return $this->sort_order; + } + + /** + * Output only. The order of the section in relation to other sections. + * Sections with a lower `sort_order` value appear before sections with a + * higher value. + * + * Generated from protobuf field int32 sort_order = 3; + * @param int $var + * @return $this + */ + public function setSortOrder($var) + { + GPBUtil::checkInt32($var); + $this->sort_order = $var; + + return $this; + } + + /** + * Required. The type of the section. + * + * Generated from protobuf field .google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of the section. + * + * Generated from protobuf field .google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Section\SectionType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php new file mode 100644 index 000000000000..be8391de500e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php @@ -0,0 +1,79 @@ +google.chat.v1.Section.SectionType + */ +class SectionType +{ + /** + * Unspecified section type. + * + * Generated from protobuf enum SECTION_TYPE_UNSPECIFIED = 0; + */ + const SECTION_TYPE_UNSPECIFIED = 0; + /** + * Custom section. + * + * Generated from protobuf enum CUSTOM_SECTION = 1; + */ + const CUSTOM_SECTION = 1; + /** + * Default section containing + * [DIRECT_MESSAGE](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype) + * between two human users or + * [GROUP_CHAT](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype) + * spaces that don't belong to any custom section. + * + * Generated from protobuf enum DEFAULT_DIRECT_MESSAGES = 2; + */ + const DEFAULT_DIRECT_MESSAGES = 2; + /** + * Default spaces that don't belong to any custom section. + * + * Generated from protobuf enum DEFAULT_SPACES = 3; + */ + const DEFAULT_SPACES = 3; + /** + * Default section containing a user's installed apps. + * + * Generated from protobuf enum DEFAULT_APPS = 6; + */ + const DEFAULT_APPS = 6; + + private static $valueToName = [ + self::SECTION_TYPE_UNSPECIFIED => 'SECTION_TYPE_UNSPECIFIED', + self::CUSTOM_SECTION => 'CUSTOM_SECTION', + self::DEFAULT_DIRECT_MESSAGES => 'DEFAULT_DIRECT_MESSAGES', + self::DEFAULT_SPACES => 'DEFAULT_SPACES', + self::DEFAULT_APPS => 'DEFAULT_APPS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php new file mode 100644 index 000000000000..14a12a3688d1 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php @@ -0,0 +1,117 @@ +google.chat.v1.SectionItem + */ +class SectionItem extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the section item. + * Format: `users/{user}/sections/{section}/items/{item}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + protected $item; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the section item. + * Format: `users/{user}/sections/{section}/items/{item}` + * @type string $space + * Optional. The space resource name. + * Format: `spaces/{space}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the section item. + * Format: `users/{user}/sections/{section}/items/{item}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the section item. + * Format: `users/{user}/sections/{section}/items/{item}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The space resource name. + * Format: `spaces/{space}` + * + * Generated from protobuf field string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getSpace() + { + return $this->readOneof(2); + } + + public function hasSpace() + { + return $this->hasOneof(2); + } + + /** + * Optional. The space resource name. + * Format: `spaces/{space}` + * + * Generated from protobuf field string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getItem() + { + return $this->whichOneof("item"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php new file mode 100644 index 000000000000..51a61c7dc580 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php @@ -0,0 +1,317 @@ +google.chat.v1.SetUpSpaceRequest + */ +class SetUpSpaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Space.spaceType` field is required. + * To create a space, set `Space.spaceType` to `SPACE` and set + * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when + * setting up a space, try a different `displayName`. An existing space + * within the Google Workspace organization might already use this display + * name. + * To create a group chat, set `Space.spaceType` to + * `GROUP_CHAT`. Don't set `Space.displayName`. + * To create a 1:1 conversation between humans, + * set `Space.spaceType` to `DIRECT_MESSAGE` and set + * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * To create an 1:1 conversation between a human and the calling Chat app, set + * `Space.spaceType` to `DIRECT_MESSAGE` and + * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * If a `DIRECT_MESSAGE` space already exists, that space is returned instead + * of creating a new space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $space = null; + /** + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. The Google Chat users or groups to invite to join the space. Omit + * the calling user, as they are added automatically. + * The set currently allows up to 49 memberships (in addition to the caller). + * For human membership, the `Membership.member` field must contain a `user` + * with `name` populated (format: `users/{user}`) and `type` set to + * `User.Type.HUMAN`. You can only add human users when setting up a space + * (adding Chat apps is only supported for direct message setup with the + * calling app). You can also add members using the user's email as an alias + * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. + * To invite Gmail users or users from external Google Workspace domains, + * user's email must be used for `{user}`. + * For Google group membership, the `Membership.group_member` field must + * contain a `group` with `name` populated (format `groups/{group}`). You + * can only add Google groups when setting `Space.spaceType` to `SPACE`. + * Optional when setting `Space.spaceType` to `SPACE`. + * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at + * least two memberships. + * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human + * user, along with exactly one membership. + * Must be empty when creating a 1:1 conversation between a human and the + * calling Chat app (when setting `Space.spaceType` to + * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). + * + * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $memberships; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space $space + * Required. The `Space.spaceType` field is required. + * To create a space, set `Space.spaceType` to `SPACE` and set + * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when + * setting up a space, try a different `displayName`. An existing space + * within the Google Workspace organization might already use this display + * name. + * To create a group chat, set `Space.spaceType` to + * `GROUP_CHAT`. Don't set `Space.displayName`. + * To create a 1:1 conversation between humans, + * set `Space.spaceType` to `DIRECT_MESSAGE` and set + * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * To create an 1:1 conversation between a human and the calling Chat app, set + * `Space.spaceType` to `DIRECT_MESSAGE` and + * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * If a `DIRECT_MESSAGE` space already exists, that space is returned instead + * of creating a new space. + * @type string $request_id + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * @type \Google\Apps\Chat\V1\Membership[] $memberships + * Optional. The Google Chat users or groups to invite to join the space. Omit + * the calling user, as they are added automatically. + * The set currently allows up to 49 memberships (in addition to the caller). + * For human membership, the `Membership.member` field must contain a `user` + * with `name` populated (format: `users/{user}`) and `type` set to + * `User.Type.HUMAN`. You can only add human users when setting up a space + * (adding Chat apps is only supported for direct message setup with the + * calling app). You can also add members using the user's email as an alias + * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. + * To invite Gmail users or users from external Google Workspace domains, + * user's email must be used for `{user}`. + * For Google group membership, the `Membership.group_member` field must + * contain a `group` with `name` populated (format `groups/{group}`). You + * can only add Google groups when setting `Space.spaceType` to `SPACE`. + * Optional when setting `Space.spaceType` to `SPACE`. + * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at + * least two memberships. + * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human + * user, along with exactly one membership. + * Must be empty when creating a 1:1 conversation between a human and the + * calling Chat app (when setting `Space.spaceType` to + * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceSetup::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Space.spaceType` field is required. + * To create a space, set `Space.spaceType` to `SPACE` and set + * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when + * setting up a space, try a different `displayName`. An existing space + * within the Google Workspace organization might already use this display + * name. + * To create a group chat, set `Space.spaceType` to + * `GROUP_CHAT`. Don't set `Space.displayName`. + * To create a 1:1 conversation between humans, + * set `Space.spaceType` to `DIRECT_MESSAGE` and set + * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * To create an 1:1 conversation between a human and the calling Chat app, set + * `Space.spaceType` to `DIRECT_MESSAGE` and + * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * If a `DIRECT_MESSAGE` space already exists, that space is returned instead + * of creating a new space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Space|null + */ + public function getSpace() + { + return $this->space; + } + + public function hasSpace() + { + return isset($this->space); + } + + public function clearSpace() + { + unset($this->space); + } + + /** + * Required. The `Space.spaceType` field is required. + * To create a space, set `Space.spaceType` to `SPACE` and set + * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when + * setting up a space, try a different `displayName`. An existing space + * within the Google Workspace organization might already use this display + * name. + * To create a group chat, set `Space.spaceType` to + * `GROUP_CHAT`. Don't set `Space.displayName`. + * To create a 1:1 conversation between humans, + * set `Space.spaceType` to `DIRECT_MESSAGE` and set + * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * To create an 1:1 conversation between a human and the calling Chat app, set + * `Space.spaceType` to `DIRECT_MESSAGE` and + * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or + * `Space.spaceDetails`. + * If a `DIRECT_MESSAGE` space already exists, that space is returned instead + * of creating a new space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Space $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); + $this->space = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. + * A random UUID is recommended. + * Specifying an existing request ID returns the space created with that ID + * instead of creating a new space. + * Specifying an existing request ID from the same Chat app with a different + * authenticated user returns an error. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. The Google Chat users or groups to invite to join the space. Omit + * the calling user, as they are added automatically. + * The set currently allows up to 49 memberships (in addition to the caller). + * For human membership, the `Membership.member` field must contain a `user` + * with `name` populated (format: `users/{user}`) and `type` set to + * `User.Type.HUMAN`. You can only add human users when setting up a space + * (adding Chat apps is only supported for direct message setup with the + * calling app). You can also add members using the user's email as an alias + * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. + * To invite Gmail users or users from external Google Workspace domains, + * user's email must be used for `{user}`. + * For Google group membership, the `Membership.group_member` field must + * contain a `group` with `name` populated (format `groups/{group}`). You + * can only add Google groups when setting `Space.spaceType` to `SPACE`. + * Optional when setting `Space.spaceType` to `SPACE`. + * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at + * least two memberships. + * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human + * user, along with exactly one membership. + * Must be empty when creating a 1:1 conversation between a human and the + * calling Chat app (when setting `Space.spaceType` to + * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). + * + * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Apps\Chat\V1\Membership> + */ + public function getMemberships() + { + return $this->memberships; + } + + /** + * Optional. The Google Chat users or groups to invite to join the space. Omit + * the calling user, as they are added automatically. + * The set currently allows up to 49 memberships (in addition to the caller). + * For human membership, the `Membership.member` field must contain a `user` + * with `name` populated (format: `users/{user}`) and `type` set to + * `User.Type.HUMAN`. You can only add human users when setting up a space + * (adding Chat apps is only supported for direct message setup with the + * calling app). You can also add members using the user's email as an alias + * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. + * To invite Gmail users or users from external Google Workspace domains, + * user's email must be used for `{user}`. + * For Google group membership, the `Membership.group_member` field must + * contain a `group` with `name` populated (format `groups/{group}`). You + * can only add Google groups when setting `Space.spaceType` to `SPACE`. + * Optional when setting `Space.spaceType` to `SPACE`. + * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at + * least two memberships. + * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human + * user, along with exactly one membership. + * Must be empty when creating a 1:1 conversation between a human and the + * calling Chat app (when setting `Space.spaceType` to + * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). + * + * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Membership[] $var + * @return $this + */ + public function setMemberships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Membership::class); + $this->memberships = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php new file mode 100644 index 000000000000..43ab4bf3fc94 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php @@ -0,0 +1,69 @@ +google.chat.v1.SlashCommand + */ +class SlashCommand extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the slash command. + * + * Generated from protobuf field int64 command_id = 1; + */ + protected $command_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $command_id + * The ID of the slash command. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SlashCommand::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the slash command. + * + * Generated from protobuf field int64 command_id = 1; + * @return int|string + */ + public function getCommandId() + { + return $this->command_id; + } + + /** + * The ID of the slash command. + * + * Generated from protobuf field int64 command_id = 1; + * @param int|string $var + * @return $this + */ + public function setCommandId($var) + { + GPBUtil::checkInt64($var); + $this->command_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php new file mode 100644 index 000000000000..d0f656c9113f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php @@ -0,0 +1,213 @@ +google.chat.v1.SlashCommandMetadata + */ +class SlashCommandMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The Chat app whose command was invoked. + * + * Generated from protobuf field .google.chat.v1.User bot = 1; + */ + protected $bot = null; + /** + * The type of slash command. + * + * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; + */ + protected $type = 0; + /** + * The name of the invoked slash command. + * + * Generated from protobuf field string command_name = 3; + */ + protected $command_name = ''; + /** + * The command ID of the invoked slash command. + * + * Generated from protobuf field int64 command_id = 4; + */ + protected $command_id = 0; + /** + * Indicates whether the slash command is for a dialog. + * + * Generated from protobuf field bool triggers_dialog = 5; + */ + protected $triggers_dialog = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\User $bot + * The Chat app whose command was invoked. + * @type int $type + * The type of slash command. + * @type string $command_name + * The name of the invoked slash command. + * @type int|string $command_id + * The command ID of the invoked slash command. + * @type bool $triggers_dialog + * Indicates whether the slash command is for a dialog. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * The Chat app whose command was invoked. + * + * Generated from protobuf field .google.chat.v1.User bot = 1; + * @return \Google\Apps\Chat\V1\User|null + */ + public function getBot() + { + return $this->bot; + } + + public function hasBot() + { + return isset($this->bot); + } + + public function clearBot() + { + unset($this->bot); + } + + /** + * The Chat app whose command was invoked. + * + * Generated from protobuf field .google.chat.v1.User bot = 1; + * @param \Google\Apps\Chat\V1\User $var + * @return $this + */ + public function setBot($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); + $this->bot = $var; + + return $this; + } + + /** + * The type of slash command. + * + * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of slash command. + * + * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SlashCommandMetadata\Type::class); + $this->type = $var; + + return $this; + } + + /** + * The name of the invoked slash command. + * + * Generated from protobuf field string command_name = 3; + * @return string + */ + public function getCommandName() + { + return $this->command_name; + } + + /** + * The name of the invoked slash command. + * + * Generated from protobuf field string command_name = 3; + * @param string $var + * @return $this + */ + public function setCommandName($var) + { + GPBUtil::checkString($var, True); + $this->command_name = $var; + + return $this; + } + + /** + * The command ID of the invoked slash command. + * + * Generated from protobuf field int64 command_id = 4; + * @return int|string + */ + public function getCommandId() + { + return $this->command_id; + } + + /** + * The command ID of the invoked slash command. + * + * Generated from protobuf field int64 command_id = 4; + * @param int|string $var + * @return $this + */ + public function setCommandId($var) + { + GPBUtil::checkInt64($var); + $this->command_id = $var; + + return $this; + } + + /** + * Indicates whether the slash command is for a dialog. + * + * Generated from protobuf field bool triggers_dialog = 5; + * @return bool + */ + public function getTriggersDialog() + { + return $this->triggers_dialog; + } + + /** + * Indicates whether the slash command is for a dialog. + * + * Generated from protobuf field bool triggers_dialog = 5; + * @param bool $var + * @return $this + */ + public function setTriggersDialog($var) + { + GPBUtil::checkBool($var); + $this->triggers_dialog = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php new file mode 100644 index 000000000000..13732632bc89 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php @@ -0,0 +1,59 @@ +google.chat.v1.SlashCommandMetadata.Type + */ +class Type +{ + /** + * Default value for the enum. Don't use. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Add Chat app to space. + * + * Generated from protobuf enum ADD = 1; + */ + const ADD = 1; + /** + * Invoke slash command in space. + * + * Generated from protobuf enum INVOKE = 2; + */ + const INVOKE = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::ADD => 'ADD', + self::INVOKE => 'INVOKE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php new file mode 100644 index 000000000000..a8ed562dde7b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php @@ -0,0 +1,1125 @@ +google.chat.v1.Space + */ +class Space extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the space. + * Format: `spaces/{space}` + * Where `{space}` represents the system-assigned ID for the space. You can + * obtain the space ID by calling the + * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) + * method or from the space URL. For example, if the space URL + * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID + * is `AAAAAAAAA`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Deprecated: Use `space_type` instead. + * The type of a space. + * + * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated + */ + protected $type = 0; + /** + * Optional. The type of space. Required when creating a space or updating the + * space type of a space. Output only for other usage. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $space_type = 0; + /** + * Optional. Whether the space is a DM between a Chat app and a single + * human. + * + * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $single_user_bot_dm = false; + /** + * Output only. Deprecated: Use `spaceThreadingState` instead. + * Whether messages are threaded in this space. + * + * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated + */ + protected $threaded = false; + /** + * Optional. The space's display name. Required when [creating a + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) + * with a `spaceType` of `SPACE`. If you receive the error message + * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a + * different `displayName`. An existing space within the Google Workspace + * organization might already use this display name. + * For direct messages, this field might be empty. + * Supports up to 128 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Immutable. Whether this space permits any Google Chat user as a + * member. Input when creating a space in a Google Workspace organization. + * Omit this field when creating spaces in the following conditions: + * * The authenticated user uses a consumer account (unmanaged user + * account). By default, a space created by a consumer account permits any + * Google Chat user. + * For existing spaces, this field is output only. + * + * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $external_user_allowed = false; + /** + * Output only. The threading state in the Chat space. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $space_threading_state = 0; + /** + * Optional. Details about the space including description and rules. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $space_details = null; + /** + * Optional. The message history state for messages and threads in this space. + * + * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $space_history_state = 0; + /** + * Optional. Whether this space is created in `Import Mode` as part of a data + * migration into Google Workspace. While spaces are being imported, they + * aren't visible to users until the import is complete. + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $import_mode = false; + /** + * Optional. Immutable. For spaces created in Chat, the time the space was + * created. This field is output only, except when used in import mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the space was created in the source in order to preserve the original + * creation time. + * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $create_time = null; + /** + * Output only. Timestamp of the last message in the space. + * + * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_active_time = null; + /** + * Output only. For direct message (DM) spaces with a Chat app, whether the + * space was created by a Google Workspace administrator. Administrators can + * install and set up a direct message with a Chat app on behalf of users in + * their organization. + * To support admin install, your Chat app must feature direct messaging. + * + * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $admin_installed = false; + /** + * Output only. The count of joined memberships grouped by member type. + * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or + * `GROUP_CHAT`. + * + * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $membership_count = null; + /** + * Optional. Specifies the [access + * setting](https://support.google.com/chat/answer/11971020) of the space. + * Only populated when the `space_type` is `SPACE`. + * + * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $access_settings = null; + /** + * Optional. Immutable. The customer id of the domain of the space. + * Required only when creating a space with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and `SpaceType` is `SPACE`, otherwise should not be set. + * In the format `customers/{customer}`, where `customer` is the `id` from the + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * Private apps can also use the `customers/my_customer` alias to create + * the space in the same Google Workspace organization as the app. + * This field isn't populated for direct messages (DMs) or when the space is + * created by non-Google Workspace users. + * + * Generated from protobuf field optional string customer = 24 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $customer = null; + /** + * Output only. The URI for a user to access the space. + * + * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $space_uri = ''; + /** + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. + * + * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $import_mode_expire_time = null; + protected $space_permission_settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the space. + * Format: `spaces/{space}` + * Where `{space}` represents the system-assigned ID for the space. You can + * obtain the space ID by calling the + * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) + * method or from the space URL. For example, if the space URL + * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID + * is `AAAAAAAAA`. + * @type int $type + * Output only. Deprecated: Use `space_type` instead. + * The type of a space. + * @type int $space_type + * Optional. The type of space. Required when creating a space or updating the + * space type of a space. Output only for other usage. + * @type bool $single_user_bot_dm + * Optional. Whether the space is a DM between a Chat app and a single + * human. + * @type bool $threaded + * Output only. Deprecated: Use `spaceThreadingState` instead. + * Whether messages are threaded in this space. + * @type string $display_name + * Optional. The space's display name. Required when [creating a + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) + * with a `spaceType` of `SPACE`. If you receive the error message + * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a + * different `displayName`. An existing space within the Google Workspace + * organization might already use this display name. + * For direct messages, this field might be empty. + * Supports up to 128 characters. + * @type bool $external_user_allowed + * Optional. Immutable. Whether this space permits any Google Chat user as a + * member. Input when creating a space in a Google Workspace organization. + * Omit this field when creating spaces in the following conditions: + * * The authenticated user uses a consumer account (unmanaged user + * account). By default, a space created by a consumer account permits any + * Google Chat user. + * For existing spaces, this field is output only. + * @type int $space_threading_state + * Output only. The threading state in the Chat space. + * @type \Google\Apps\Chat\V1\Space\SpaceDetails $space_details + * Optional. Details about the space including description and rules. + * @type int $space_history_state + * Optional. The message history state for messages and threads in this space. + * @type bool $import_mode + * Optional. Whether this space is created in `Import Mode` as part of a data + * migration into Google Workspace. While spaces are being imported, they + * aren't visible to users until the import is complete. + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * @type \Google\Protobuf\Timestamp $create_time + * Optional. Immutable. For spaces created in Chat, the time the space was + * created. This field is output only, except when used in import mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the space was created in the source in order to preserve the original + * creation time. + * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. + * @type \Google\Protobuf\Timestamp $last_active_time + * Output only. Timestamp of the last message in the space. + * @type bool $admin_installed + * Output only. For direct message (DM) spaces with a Chat app, whether the + * space was created by a Google Workspace administrator. Administrators can + * install and set up a direct message with a Chat app on behalf of users in + * their organization. + * To support admin install, your Chat app must feature direct messaging. + * @type \Google\Apps\Chat\V1\Space\MembershipCount $membership_count + * Output only. The count of joined memberships grouped by member type. + * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or + * `GROUP_CHAT`. + * @type \Google\Apps\Chat\V1\Space\AccessSettings $access_settings + * Optional. Specifies the [access + * setting](https://support.google.com/chat/answer/11971020) of the space. + * Only populated when the `space_type` is `SPACE`. + * @type string $customer + * Optional. Immutable. The customer id of the domain of the space. + * Required only when creating a space with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and `SpaceType` is `SPACE`, otherwise should not be set. + * In the format `customers/{customer}`, where `customer` is the `id` from the + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * Private apps can also use the `customers/my_customer` alias to create + * the space in the same Google Workspace organization as the app. + * This field isn't populated for direct messages (DMs) or when the space is + * created by non-Google Workspace users. + * @type string $space_uri + * Output only. The URI for a user to access the space. + * @type int $predefined_permission_settings + * Optional. Input only. Predefined space permission settings, input only + * when creating a space. If the field is not set, a collaboration space is + * created. After you create the space, settings are populated in the + * `PermissionSettings` field. + * Setting predefined permission settings supports: + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) with the + * `chat.app.spaces` or `chat.app.spaces.create` scopes. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * @type \Google\Apps\Chat\V1\Space\PermissionSettings $permission_settings + * Optional. Space permission settings for existing spaces. Input for + * updating exact space permission settings, where existing permission + * settings are replaced. Output lists current permission settings. + * Reading and updating permission settings supports: + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) with the + * `chat.app.spaces` scope. Only populated and settable when the Chat app + * created the space. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * @type \Google\Protobuf\Timestamp $import_mode_expire_time + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the space. + * Format: `spaces/{space}` + * Where `{space}` represents the system-assigned ID for the space. You can + * obtain the space ID by calling the + * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) + * method or from the space URL. For example, if the space URL + * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID + * is `AAAAAAAAA`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the space. + * Format: `spaces/{space}` + * Where `{space}` represents the system-assigned ID for the space. You can + * obtain the space ID by calling the + * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) + * method or from the space URL. For example, if the space URL + * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID + * is `AAAAAAAAA`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Deprecated: Use `space_type` instead. + * The type of a space. + * + * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + * @deprecated + */ + public function getType() + { + if ($this->type !== 0) { + @trigger_error('type is deprecated.', E_USER_DEPRECATED); + } + return $this->type; + } + + /** + * Output only. Deprecated: Use `space_type` instead. + * The type of a space. + * + * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + * @deprecated + */ + public function setType($var) + { + @trigger_error('type is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. The type of space. Required when creating a space or updating the + * space type of a space. Output only for other usage. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSpaceType() + { + return $this->space_type; + } + + /** + * Optional. The type of space. Required when creating a space or updating the + * space type of a space. Output only for other usage. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSpaceType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\SpaceType::class); + $this->space_type = $var; + + return $this; + } + + /** + * Optional. Whether the space is a DM between a Chat app and a single + * human. + * + * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSingleUserBotDm() + { + return $this->single_user_bot_dm; + } + + /** + * Optional. Whether the space is a DM between a Chat app and a single + * human. + * + * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSingleUserBotDm($var) + { + GPBUtil::checkBool($var); + $this->single_user_bot_dm = $var; + + return $this; + } + + /** + * Output only. Deprecated: Use `spaceThreadingState` instead. + * Whether messages are threaded in this space. + * + * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + * @deprecated + */ + public function getThreaded() + { + if ($this->threaded !== false) { + @trigger_error('threaded is deprecated.', E_USER_DEPRECATED); + } + return $this->threaded; + } + + /** + * Output only. Deprecated: Use `spaceThreadingState` instead. + * Whether messages are threaded in this space. + * + * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setThreaded($var) + { + @trigger_error('threaded is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->threaded = $var; + + return $this; + } + + /** + * Optional. The space's display name. Required when [creating a + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) + * with a `spaceType` of `SPACE`. If you receive the error message + * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a + * different `displayName`. An existing space within the Google Workspace + * organization might already use this display name. + * For direct messages, this field might be empty. + * Supports up to 128 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The space's display name. Required when [creating a + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) + * with a `spaceType` of `SPACE`. If you receive the error message + * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a + * different `displayName`. An existing space within the Google Workspace + * organization might already use this display name. + * For direct messages, this field might be empty. + * Supports up to 128 characters. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Immutable. Whether this space permits any Google Chat user as a + * member. Input when creating a space in a Google Workspace organization. + * Omit this field when creating spaces in the following conditions: + * * The authenticated user uses a consumer account (unmanaged user + * account). By default, a space created by a consumer account permits any + * Google Chat user. + * For existing spaces, this field is output only. + * + * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getExternalUserAllowed() + { + return $this->external_user_allowed; + } + + /** + * Optional. Immutable. Whether this space permits any Google Chat user as a + * member. Input when creating a space in a Google Workspace organization. + * Omit this field when creating spaces in the following conditions: + * * The authenticated user uses a consumer account (unmanaged user + * account). By default, a space created by a consumer account permits any + * Google Chat user. + * For existing spaces, this field is output only. + * + * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setExternalUserAllowed($var) + { + GPBUtil::checkBool($var); + $this->external_user_allowed = $var; + + return $this; + } + + /** + * Output only. The threading state in the Chat space. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSpaceThreadingState() + { + return $this->space_threading_state; + } + + /** + * Output only. The threading state in the Chat space. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSpaceThreadingState($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\SpaceThreadingState::class); + $this->space_threading_state = $var; + + return $this; + } + + /** + * Optional. Details about the space including description and rules. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\SpaceDetails|null + */ + public function getSpaceDetails() + { + return $this->space_details; + } + + public function hasSpaceDetails() + { + return isset($this->space_details); + } + + public function clearSpaceDetails() + { + unset($this->space_details); + } + + /** + * Optional. Details about the space including description and rules. + * + * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\SpaceDetails $var + * @return $this + */ + public function setSpaceDetails($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\SpaceDetails::class); + $this->space_details = $var; + + return $this; + } + + /** + * Optional. The message history state for messages and threads in this space. + * + * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSpaceHistoryState() + { + return $this->space_history_state; + } + + /** + * Optional. The message history state for messages and threads in this space. + * + * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSpaceHistoryState($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\HistoryState::class); + $this->space_history_state = $var; + + return $this; + } + + /** + * Optional. Whether this space is created in `Import Mode` as part of a data + * migration into Google Workspace. While spaces are being imported, they + * aren't visible to users until the import is complete. + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getImportMode() + { + return $this->import_mode; + } + + /** + * Optional. Whether this space is created in `Import Mode` as part of a data + * migration into Google Workspace. While spaces are being imported, they + * aren't visible to users until the import is complete. + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setImportMode($var) + { + GPBUtil::checkBool($var); + $this->import_mode = $var; + + return $this; + } + + /** + * Optional. Immutable. For spaces created in Chat, the time the space was + * created. This field is output only, except when used in import mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the space was created in the source in order to preserve the original + * creation time. + * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Optional. Immutable. For spaces created in Chat, the time the space was + * created. This field is output only, except when used in import mode spaces. + * For import mode spaces, set this field to the historical timestamp at which + * the space was created in the source in order to preserve the original + * creation time. + * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp of the last message in the space. + * + * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastActiveTime() + { + return $this->last_active_time; + } + + public function hasLastActiveTime() + { + return isset($this->last_active_time); + } + + public function clearLastActiveTime() + { + unset($this->last_active_time); + } + + /** + * Output only. Timestamp of the last message in the space. + * + * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastActiveTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_active_time = $var; + + return $this; + } + + /** + * Output only. For direct message (DM) spaces with a Chat app, whether the + * space was created by a Google Workspace administrator. Administrators can + * install and set up a direct message with a Chat app on behalf of users in + * their organization. + * To support admin install, your Chat app must feature direct messaging. + * + * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getAdminInstalled() + { + return $this->admin_installed; + } + + /** + * Output only. For direct message (DM) spaces with a Chat app, whether the + * space was created by a Google Workspace administrator. Administrators can + * install and set up a direct message with a Chat app on behalf of users in + * their organization. + * To support admin install, your Chat app must feature direct messaging. + * + * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setAdminInstalled($var) + { + GPBUtil::checkBool($var); + $this->admin_installed = $var; + + return $this; + } + + /** + * Output only. The count of joined memberships grouped by member type. + * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or + * `GROUP_CHAT`. + * + * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\Space\MembershipCount|null + */ + public function getMembershipCount() + { + return $this->membership_count; + } + + public function hasMembershipCount() + { + return isset($this->membership_count); + } + + public function clearMembershipCount() + { + unset($this->membership_count); + } + + /** + * Output only. The count of joined memberships grouped by member type. + * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or + * `GROUP_CHAT`. + * + * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Space\MembershipCount $var + * @return $this + */ + public function setMembershipCount($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\MembershipCount::class); + $this->membership_count = $var; + + return $this; + } + + /** + * Optional. Specifies the [access + * setting](https://support.google.com/chat/answer/11971020) of the space. + * Only populated when the `space_type` is `SPACE`. + * + * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\AccessSettings|null + */ + public function getAccessSettings() + { + return $this->access_settings; + } + + public function hasAccessSettings() + { + return isset($this->access_settings); + } + + public function clearAccessSettings() + { + unset($this->access_settings); + } + + /** + * Optional. Specifies the [access + * setting](https://support.google.com/chat/answer/11971020) of the space. + * Only populated when the `space_type` is `SPACE`. + * + * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\AccessSettings $var + * @return $this + */ + public function setAccessSettings($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\AccessSettings::class); + $this->access_settings = $var; + + return $this; + } + + /** + * Optional. Immutable. The customer id of the domain of the space. + * Required only when creating a space with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and `SpaceType` is `SPACE`, otherwise should not be set. + * In the format `customers/{customer}`, where `customer` is the `id` from the + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * Private apps can also use the `customers/my_customer` alias to create + * the space in the same Google Workspace organization as the app. + * This field isn't populated for direct messages (DMs) or when the space is + * created by non-Google Workspace users. + * + * Generated from protobuf field optional string customer = 24 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCustomer() + { + return isset($this->customer) ? $this->customer : ''; + } + + public function hasCustomer() + { + return isset($this->customer); + } + + public function clearCustomer() + { + unset($this->customer); + } + + /** + * Optional. Immutable. The customer id of the domain of the space. + * Required only when creating a space with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and `SpaceType` is `SPACE`, otherwise should not be set. + * In the format `customers/{customer}`, where `customer` is the `id` from the + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * Private apps can also use the `customers/my_customer` alias to create + * the space in the same Google Workspace organization as the app. + * This field isn't populated for direct messages (DMs) or when the space is + * created by non-Google Workspace users. + * + * Generated from protobuf field optional string customer = 24 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCustomer($var) + { + GPBUtil::checkString($var, True); + $this->customer = $var; + + return $this; + } + + /** + * Output only. The URI for a user to access the space. + * + * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSpaceUri() + { + return $this->space_uri; + } + + /** + * Output only. The URI for a user to access the space. + * + * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSpaceUri($var) + { + GPBUtil::checkString($var, True); + $this->space_uri = $var; + + return $this; + } + + /** + * Optional. Input only. Predefined space permission settings, input only + * when creating a space. If the field is not set, a collaboration space is + * created. After you create the space, settings are populated in the + * `PermissionSettings` field. + * Setting predefined permission settings supports: + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) with the + * `chat.app.spaces` or `chat.app.spaces.create` scopes. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * Generated from protobuf field .google.chat.v1.Space.PredefinedPermissionSettings predefined_permission_settings = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPredefinedPermissionSettings() + { + return $this->readOneof(26); + } + + public function hasPredefinedPermissionSettings() + { + return $this->hasOneof(26); + } + + /** + * Optional. Input only. Predefined space permission settings, input only + * when creating a space. If the field is not set, a collaboration space is + * created. After you create the space, settings are populated in the + * `PermissionSettings` field. + * Setting predefined permission settings supports: + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) with the + * `chat.app.spaces` or `chat.app.spaces.create` scopes. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * Generated from protobuf field .google.chat.v1.Space.PredefinedPermissionSettings predefined_permission_settings = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPredefinedPermissionSettings($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\PredefinedPermissionSettings::class); + $this->writeOneof(26, $var); + + return $this; + } + + /** + * Optional. Space permission settings for existing spaces. Input for + * updating exact space permission settings, where existing permission + * settings are replaced. Output lists current permission settings. + * Reading and updating permission settings supports: + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) with the + * `chat.app.spaces` scope. Only populated and settable when the Chat app + * created the space. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * Generated from protobuf field .google.chat.v1.Space.PermissionSettings permission_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSettings|null + */ + public function getPermissionSettings() + { + return $this->readOneof(27); + } + + public function hasPermissionSettings() + { + return $this->hasOneof(27); + } + + /** + * Optional. Space permission settings for existing spaces. Input for + * updating exact space permission settings, where existing permission + * settings are replaced. Output lists current permission settings. + * Reading and updating permission settings supports: + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) with the + * `chat.app.spaces` scope. Only populated and settable when the Chat app + * created the space. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * Generated from protobuf field .google.chat.v1.Space.PermissionSettings permission_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSettings $var + * @return $this + */ + public function setPermissionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSettings::class); + $this->writeOneof(27, $var); + + return $this; + } + + /** + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. + * + * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getImportModeExpireTime() + { + return $this->import_mode_expire_time; + } + + public function hasImportModeExpireTime() + { + return isset($this->import_mode_expire_time); + } + + public function clearImportModeExpireTime() + { + unset($this->import_mode_expire_time); + } + + /** + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. + * + * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setImportModeExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->import_mode_expire_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getSpacePermissionSettings() + { + return $this->whichOneof("space_permission_settings"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php new file mode 100644 index 000000000000..e32b5a5ce3d2 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php @@ -0,0 +1,186 @@ +google.chat.v1.Space.AccessSettings + */ +class AccessSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Indicates the access state of the space. + * + * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access_state = 0; + /** + * Optional. The resource name of the [target + * audience](https://support.google.com/a/answer/9934697) who can discover + * the space, join the space, and preview the messages in the space. If + * unset, only users or Google Groups who have been individually invited or + * added to the space can access it. For details, see [Make a space + * discoverable to a target + * audience](https://developers.google.com/workspace/chat/space-target-audience). + * Format: `audiences/{audience}` + * To use the default target audience for the Google Workspace organization, + * set to `audiences/default`. + * Reading the target audience supports: + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope. + * This field is not populated when using the `chat.bot` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $audience = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $access_state + * Output only. Indicates the access state of the space. + * @type string $audience + * Optional. The resource name of the [target + * audience](https://support.google.com/a/answer/9934697) who can discover + * the space, join the space, and preview the messages in the space. If + * unset, only users or Google Groups who have been individually invited or + * added to the space can access it. For details, see [Make a space + * discoverable to a target + * audience](https://developers.google.com/workspace/chat/space-target-audience). + * Format: `audiences/{audience}` + * To use the default target audience for the Google Workspace organization, + * set to `audiences/default`. + * Reading the target audience supports: + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope. + * This field is not populated when using the `chat.bot` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Indicates the access state of the space. + * + * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAccessState() + { + return $this->access_state; + } + + /** + * Output only. Indicates the access state of the space. + * + * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAccessState($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\AccessSettings\AccessState::class); + $this->access_state = $var; + + return $this; + } + + /** + * Optional. The resource name of the [target + * audience](https://support.google.com/a/answer/9934697) who can discover + * the space, join the space, and preview the messages in the space. If + * unset, only users or Google Groups who have been individually invited or + * added to the space can access it. For details, see [Make a space + * discoverable to a target + * audience](https://developers.google.com/workspace/chat/space-target-audience). + * Format: `audiences/{audience}` + * To use the default target audience for the Google Workspace organization, + * set to `audiences/default`. + * Reading the target audience supports: + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope. + * This field is not populated when using the `chat.bot` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAudience() + { + return $this->audience; + } + + /** + * Optional. The resource name of the [target + * audience](https://support.google.com/a/answer/9934697) who can discover + * the space, join the space, and preview the messages in the space. If + * unset, only users or Google Groups who have been individually invited or + * added to the space can access it. For details, see [Make a space + * discoverable to a target + * audience](https://developers.google.com/workspace/chat/space-target-audience). + * Format: `audiences/{audience}` + * To use the default target audience for the Google Workspace organization, + * set to `audiences/default`. + * Reading the target audience supports: + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope. + * This field is not populated when using the `chat.bot` scope with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAudience($var) + { + GPBUtil::checkString($var, True); + $this->audience = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php new file mode 100644 index 000000000000..b6ce16ad380e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php @@ -0,0 +1,73 @@ +google.chat.v1.Space.AccessSettings.AccessState + */ +class AccessState +{ + /** + * Access state is unknown or not supported in this API. + * + * Generated from protobuf enum ACCESS_STATE_UNSPECIFIED = 0; + */ + const ACCESS_STATE_UNSPECIFIED = 0; + /** + * Only users or Google Groups that have been individually added or + * invited by other users or Google Workspace administrators can discover + * and access the space. + * + * Generated from protobuf enum PRIVATE = 1; + */ + const PBPRIVATE = 1; + /** + * A space manager has granted a target audience access to + * the space. Users or Google Groups that have been individually added or + * invited to the space can also discover and access the space. To learn + * more, see [Make a space discoverable to specific + * users](https://developers.google.com/workspace/chat/space-target-audience). + * Creating discoverable spaces requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + * Generated from protobuf enum DISCOVERABLE = 2; + */ + const DISCOVERABLE = 2; + + private static $valueToName = [ + self::ACCESS_STATE_UNSPECIFIED => 'ACCESS_STATE_UNSPECIFIED', + self::PBPRIVATE => 'PRIVATE', + self::DISCOVERABLE => 'DISCOVERABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php new file mode 100644 index 000000000000..ddab8a9a536f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php @@ -0,0 +1,105 @@ +google.chat.v1.Space.MembershipCount + */ +class MembershipCount extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Count of human users that have directly joined the space, + * not counting users joined by having membership in a joined group. + * + * Generated from protobuf field int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $joined_direct_human_user_count = 0; + /** + * Output only. Count of all groups that have directly joined the space. + * + * Generated from protobuf field int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $joined_group_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $joined_direct_human_user_count + * Output only. Count of human users that have directly joined the space, + * not counting users joined by having membership in a joined group. + * @type int $joined_group_count + * Output only. Count of all groups that have directly joined the space. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Count of human users that have directly joined the space, + * not counting users joined by having membership in a joined group. + * + * Generated from protobuf field int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getJoinedDirectHumanUserCount() + { + return $this->joined_direct_human_user_count; + } + + /** + * Output only. Count of human users that have directly joined the space, + * not counting users joined by having membership in a joined group. + * + * Generated from protobuf field int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setJoinedDirectHumanUserCount($var) + { + GPBUtil::checkInt32($var); + $this->joined_direct_human_user_count = $var; + + return $this; + } + + /** + * Output only. Count of all groups that have directly joined the space. + * + * Generated from protobuf field int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getJoinedGroupCount() + { + return $this->joined_group_count; + } + + /** + * Output only. Count of all groups that have directly joined the space. + * + * Generated from protobuf field int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setJoinedGroupCount($var) + { + GPBUtil::checkInt32($var); + $this->joined_group_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php new file mode 100644 index 000000000000..8987cd6676dd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php @@ -0,0 +1,169 @@ +google.chat.v1.Space.PermissionSetting + */ +class PermissionSetting extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether space owners + * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) + * have this permission. + * + * Generated from protobuf field bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $managers_allowed = false; + /** + * Optional. Whether space managers + * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) + * have this permission. + * + * Generated from protobuf field optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $assistant_managers_allowed = null; + /** + * Optional. Whether basic space members + * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) + * have this permission. + * + * Generated from protobuf field bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $members_allowed = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $managers_allowed + * Optional. Whether space owners + * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) + * have this permission. + * @type bool $assistant_managers_allowed + * Optional. Whether space managers + * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) + * have this permission. + * @type bool $members_allowed + * Optional. Whether basic space members + * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) + * have this permission. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether space owners + * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) + * have this permission. + * + * Generated from protobuf field bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getManagersAllowed() + { + return $this->managers_allowed; + } + + /** + * Optional. Whether space owners + * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) + * have this permission. + * + * Generated from protobuf field bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setManagersAllowed($var) + { + GPBUtil::checkBool($var); + $this->managers_allowed = $var; + + return $this; + } + + /** + * Optional. Whether space managers + * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) + * have this permission. + * + * Generated from protobuf field optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAssistantManagersAllowed() + { + return isset($this->assistant_managers_allowed) ? $this->assistant_managers_allowed : false; + } + + public function hasAssistantManagersAllowed() + { + return isset($this->assistant_managers_allowed); + } + + public function clearAssistantManagersAllowed() + { + unset($this->assistant_managers_allowed); + } + + /** + * Optional. Whether space managers + * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) + * have this permission. + * + * Generated from protobuf field optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAssistantManagersAllowed($var) + { + GPBUtil::checkBool($var); + $this->assistant_managers_allowed = $var; + + return $this; + } + + /** + * Optional. Whether basic space members + * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) + * have this permission. + * + * Generated from protobuf field bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getMembersAllowed() + { + return $this->members_allowed; + } + + /** + * Optional. Whether basic space members + * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) + * have this permission. + * + * Generated from protobuf field bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setMembersAllowed($var) + { + GPBUtil::checkBool($var); + $this->members_allowed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php new file mode 100644 index 000000000000..5208bb5b2713 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php @@ -0,0 +1,392 @@ +google.chat.v1.Space.PermissionSettings + */ +class PermissionSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Setting for managing members and groups in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $manage_members_and_groups = null; + /** + * Optional. Setting for updating space name, avatar, description and + * guidelines. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $modify_space_details = null; + /** + * Optional. Setting for toggling space history on and off. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $toggle_history = null; + /** + * Optional. Setting for using \@all in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_at_mention_all = null; + /** + * Optional. Setting for managing apps in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $manage_apps = null; + /** + * Optional. Setting for managing webhooks in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $manage_webhooks = null; + /** + * Output only. Setting for posting messages in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $post_messages = null; + /** + * Optional. Setting for replying to messages in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $reply_messages = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_members_and_groups + * Optional. Setting for managing members and groups in a space. + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $modify_space_details + * Optional. Setting for updating space name, avatar, description and + * guidelines. + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $toggle_history + * Optional. Setting for toggling space history on and off. + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $use_at_mention_all + * Optional. Setting for using \@all in a space. + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_apps + * Optional. Setting for managing apps in a space. + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_webhooks + * Optional. Setting for managing webhooks in a space. + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $post_messages + * Output only. Setting for posting messages in a space. + * @type \Google\Apps\Chat\V1\Space\PermissionSetting $reply_messages + * Optional. Setting for replying to messages in a space. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Setting for managing members and groups in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getManageMembersAndGroups() + { + return $this->manage_members_and_groups; + } + + public function hasManageMembersAndGroups() + { + return isset($this->manage_members_and_groups); + } + + public function clearManageMembersAndGroups() + { + unset($this->manage_members_and_groups); + } + + /** + * Optional. Setting for managing members and groups in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setManageMembersAndGroups($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->manage_members_and_groups = $var; + + return $this; + } + + /** + * Optional. Setting for updating space name, avatar, description and + * guidelines. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getModifySpaceDetails() + { + return $this->modify_space_details; + } + + public function hasModifySpaceDetails() + { + return isset($this->modify_space_details); + } + + public function clearModifySpaceDetails() + { + unset($this->modify_space_details); + } + + /** + * Optional. Setting for updating space name, avatar, description and + * guidelines. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setModifySpaceDetails($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->modify_space_details = $var; + + return $this; + } + + /** + * Optional. Setting for toggling space history on and off. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getToggleHistory() + { + return $this->toggle_history; + } + + public function hasToggleHistory() + { + return isset($this->toggle_history); + } + + public function clearToggleHistory() + { + unset($this->toggle_history); + } + + /** + * Optional. Setting for toggling space history on and off. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setToggleHistory($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->toggle_history = $var; + + return $this; + } + + /** + * Optional. Setting for using \@all in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getUseAtMentionAll() + { + return $this->use_at_mention_all; + } + + public function hasUseAtMentionAll() + { + return isset($this->use_at_mention_all); + } + + public function clearUseAtMentionAll() + { + unset($this->use_at_mention_all); + } + + /** + * Optional. Setting for using \@all in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setUseAtMentionAll($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->use_at_mention_all = $var; + + return $this; + } + + /** + * Optional. Setting for managing apps in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getManageApps() + { + return $this->manage_apps; + } + + public function hasManageApps() + { + return isset($this->manage_apps); + } + + public function clearManageApps() + { + unset($this->manage_apps); + } + + /** + * Optional. Setting for managing apps in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setManageApps($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->manage_apps = $var; + + return $this; + } + + /** + * Optional. Setting for managing webhooks in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getManageWebhooks() + { + return $this->manage_webhooks; + } + + public function hasManageWebhooks() + { + return isset($this->manage_webhooks); + } + + public function clearManageWebhooks() + { + unset($this->manage_webhooks); + } + + /** + * Optional. Setting for managing webhooks in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setManageWebhooks($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->manage_webhooks = $var; + + return $this; + } + + /** + * Output only. Setting for posting messages in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getPostMessages() + { + return $this->post_messages; + } + + public function hasPostMessages() + { + return isset($this->post_messages); + } + + public function clearPostMessages() + { + unset($this->post_messages); + } + + /** + * Output only. Setting for posting messages in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setPostMessages($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->post_messages = $var; + + return $this; + } + + /** + * Optional. Setting for replying to messages in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null + */ + public function getReplyMessages() + { + return $this->reply_messages; + } + + public function hasReplyMessages() + { + return isset($this->reply_messages); + } + + public function clearReplyMessages() + { + unset($this->reply_messages); + } + + /** + * Optional. Setting for replying to messages in a space. + * + * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var + * @return $this + */ + public function setReplyMessages($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); + $this->reply_messages = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php new file mode 100644 index 000000000000..c3efd829b589 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php @@ -0,0 +1,66 @@ +google.chat.v1.Space.PredefinedPermissionSettings + */ +class PredefinedPermissionSettings +{ + /** + * Unspecified. Don't use. + * + * Generated from protobuf enum PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0; + */ + const PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0; + /** + * Setting to make the space a collaboration space where all members can + * post messages. + * + * Generated from protobuf enum COLLABORATION_SPACE = 1; + */ + const COLLABORATION_SPACE = 1; + /** + * Setting to make the space an announcement space where only space managers + * can post messages. + * + * Generated from protobuf enum ANNOUNCEMENT_SPACE = 2; + */ + const ANNOUNCEMENT_SPACE = 2; + + private static $valueToName = [ + self::PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED => 'PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED', + self::COLLABORATION_SPACE => 'COLLABORATION_SPACE', + self::ANNOUNCEMENT_SPACE => 'ANNOUNCEMENT_SPACE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php new file mode 100644 index 000000000000..503011006553 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php @@ -0,0 +1,113 @@ +google.chat.v1.Space.SpaceDetails + */ +class SpaceDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A description of the space. For example, describe the space's + * discussion topic, functional purpose, or participants. + * Supports up to 150 characters. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. The space's rules, expectations, and etiquette. + * Supports up to 5,000 characters. + * + * Generated from protobuf field string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $guidelines = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Optional. A description of the space. For example, describe the space's + * discussion topic, functional purpose, or participants. + * Supports up to 150 characters. + * @type string $guidelines + * Optional. The space's rules, expectations, and etiquette. + * Supports up to 5,000 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A description of the space. For example, describe the space's + * discussion topic, functional purpose, or participants. + * Supports up to 150 characters. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A description of the space. For example, describe the space's + * discussion topic, functional purpose, or participants. + * Supports up to 150 characters. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. The space's rules, expectations, and etiquette. + * Supports up to 5,000 characters. + * + * Generated from protobuf field string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGuidelines() + { + return $this->guidelines; + } + + /** + * Optional. The space's rules, expectations, and etiquette. + * Supports up to 5,000 characters. + * + * Generated from protobuf field string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGuidelines($var) + { + GPBUtil::checkString($var, True); + $this->guidelines = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php new file mode 100644 index 000000000000..21245bdae2bd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php @@ -0,0 +1,72 @@ +google.chat.v1.Space.SpaceThreadingState + */ +class SpaceThreadingState +{ + /** + * Reserved. + * + * Generated from protobuf enum SPACE_THREADING_STATE_UNSPECIFIED = 0; + */ + const SPACE_THREADING_STATE_UNSPECIFIED = 0; + /** + * Named spaces that support message threads. When users respond to a + * message, they can reply in-thread, which keeps their response in the + * context of the original message. + * + * Generated from protobuf enum THREADED_MESSAGES = 2; + */ + const THREADED_MESSAGES = 2; + /** + * Named spaces where the conversation is organized by topic. Topics and + * their replies are grouped together. + * + * Generated from protobuf enum GROUPED_MESSAGES = 3; + */ + const GROUPED_MESSAGES = 3; + /** + * Direct messages (DMs) between two people and group conversations between + * 3 or more people. + * + * Generated from protobuf enum UNTHREADED_MESSAGES = 4; + */ + const UNTHREADED_MESSAGES = 4; + + private static $valueToName = [ + self::SPACE_THREADING_STATE_UNSPECIFIED => 'SPACE_THREADING_STATE_UNSPECIFIED', + self::THREADED_MESSAGES => 'THREADED_MESSAGES', + self::GROUPED_MESSAGES => 'GROUPED_MESSAGES', + self::UNTHREADED_MESSAGES => 'UNTHREADED_MESSAGES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php new file mode 100644 index 000000000000..a008a9e62ddc --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php @@ -0,0 +1,71 @@ +google.chat.v1.Space.SpaceType + */ +class SpaceType +{ + /** + * Reserved. + * + * Generated from protobuf enum SPACE_TYPE_UNSPECIFIED = 0; + */ + const SPACE_TYPE_UNSPECIFIED = 0; + /** + * A place where people send messages, share files, and collaborate. + * A `SPACE` can include Chat apps. + * + * Generated from protobuf enum SPACE = 1; + */ + const SPACE = 1; + /** + * Group conversations between 3 or more people. + * A `GROUP_CHAT` can include Chat apps. + * + * Generated from protobuf enum GROUP_CHAT = 2; + */ + const GROUP_CHAT = 2; + /** + * 1:1 messages between two humans or a human and a Chat app. + * + * Generated from protobuf enum DIRECT_MESSAGE = 3; + */ + const DIRECT_MESSAGE = 3; + + private static $valueToName = [ + self::SPACE_TYPE_UNSPECIFIED => 'SPACE_TYPE_UNSPECIFIED', + self::SPACE => 'SPACE', + self::GROUP_CHAT => 'GROUP_CHAT', + self::DIRECT_MESSAGE => 'DIRECT_MESSAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php new file mode 100644 index 000000000000..873463ee07c2 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php @@ -0,0 +1,62 @@ +google.chat.v1.Space.Type + */ +class Type +{ + /** + * Reserved. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Conversations between two or more humans. + * + * Generated from protobuf enum ROOM = 1; + */ + const ROOM = 1; + /** + * 1:1 Direct Message between a human and a Chat app, where all messages are + * flat. Note that this doesn't include direct messages between two humans. + * + * Generated from protobuf enum DM = 2; + */ + const DM = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::ROOM => 'ROOM', + self::DM => 'DM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php new file mode 100644 index 000000000000..b42c28bf60ad --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php @@ -0,0 +1,68 @@ +google.chat.v1.SpaceBatchUpdatedEventData + */ +class SpaceBatchUpdatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * A list of updated spaces. + * + * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + private $spaces; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\SpaceUpdatedEventData[] $spaces + * A list of updated spaces. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * A list of updated spaces. + * + * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + * @return RepeatedField<\Google\Apps\Chat\V1\SpaceUpdatedEventData> + */ + public function getSpaces() + { + return $this->spaces; + } + + /** + * A list of updated spaces. + * + * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + * @param \Google\Apps\Chat\V1\SpaceUpdatedEventData[] $var + * @return $this + */ + public function setSpaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SpaceUpdatedEventData::class); + $this->spaces = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php new file mode 100644 index 000000000000..1f5d95a05726 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php @@ -0,0 +1,956 @@ +google.chat.v1.SpaceEvent + */ +class SpaceEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Time when the event occurred. + * + * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; + */ + protected $event_time = null; + /** + * Type of space event. Each event type has a batch version, which + * represents multiple instances of the event type that occur in a short + * period of time. For `spaceEvents.list()` requests, omit batch event types + * in your query filter. By default, the server returns both event type and + * its batch version. + * Supported event types for + * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): + * * New message: `google.workspace.chat.message.v1.created` + * * Updated message: `google.workspace.chat.message.v1.updated` + * * Deleted message: `google.workspace.chat.message.v1.deleted` + * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` + * * Multiple updated messages: + * `google.workspace.chat.message.v1.batchUpdated` + * * Multiple deleted messages: + * `google.workspace.chat.message.v1.batchDeleted` + * Supported event types for + * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): + * * New membership: `google.workspace.chat.membership.v1.created` + * * Updated membership: `google.workspace.chat.membership.v1.updated` + * * Deleted membership: `google.workspace.chat.membership.v1.deleted` + * * Multiple new memberships: + * `google.workspace.chat.membership.v1.batchCreated` + * * Multiple updated memberships: + * `google.workspace.chat.membership.v1.batchUpdated` + * * Multiple deleted memberships: + * `google.workspace.chat.membership.v1.batchDeleted` + * Supported event types for + * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): + * * New reaction: `google.workspace.chat.reaction.v1.created` + * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` + * * Multiple new reactions: + * `google.workspace.chat.reaction.v1.batchCreated` + * * Multiple deleted reactions: + * `google.workspace.chat.reaction.v1.batchDeleted` + * Supported event types about the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): + * * Updated space: `google.workspace.chat.space.v1.updated` + * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` + * + * Generated from protobuf field string event_type = 6; + */ + protected $event_type = ''; + protected $payload; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * @type \Google\Protobuf\Timestamp $event_time + * Time when the event occurred. + * @type string $event_type + * Type of space event. Each event type has a batch version, which + * represents multiple instances of the event type that occur in a short + * period of time. For `spaceEvents.list()` requests, omit batch event types + * in your query filter. By default, the server returns both event type and + * its batch version. + * Supported event types for + * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): + * * New message: `google.workspace.chat.message.v1.created` + * * Updated message: `google.workspace.chat.message.v1.updated` + * * Deleted message: `google.workspace.chat.message.v1.deleted` + * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` + * * Multiple updated messages: + * `google.workspace.chat.message.v1.batchUpdated` + * * Multiple deleted messages: + * `google.workspace.chat.message.v1.batchDeleted` + * Supported event types for + * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): + * * New membership: `google.workspace.chat.membership.v1.created` + * * Updated membership: `google.workspace.chat.membership.v1.updated` + * * Deleted membership: `google.workspace.chat.membership.v1.deleted` + * * Multiple new memberships: + * `google.workspace.chat.membership.v1.batchCreated` + * * Multiple updated memberships: + * `google.workspace.chat.membership.v1.batchUpdated` + * * Multiple deleted memberships: + * `google.workspace.chat.membership.v1.batchDeleted` + * Supported event types for + * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): + * * New reaction: `google.workspace.chat.reaction.v1.created` + * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` + * * Multiple new reactions: + * `google.workspace.chat.reaction.v1.batchCreated` + * * Multiple deleted reactions: + * `google.workspace.chat.reaction.v1.batchDeleted` + * Supported event types about the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): + * * Updated space: `google.workspace.chat.space.v1.updated` + * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` + * @type \Google\Apps\Chat\V1\MessageCreatedEventData $message_created_event_data + * Event payload for a new message. + * Event type: `google.workspace.chat.message.v1.created` + * @type \Google\Apps\Chat\V1\MessageUpdatedEventData $message_updated_event_data + * Event payload for an updated message. + * Event type: `google.workspace.chat.message.v1.updated` + * @type \Google\Apps\Chat\V1\MessageDeletedEventData $message_deleted_event_data + * Event payload for a deleted message. + * Event type: `google.workspace.chat.message.v1.deleted` + * @type \Google\Apps\Chat\V1\MessageBatchCreatedEventData $message_batch_created_event_data + * Event payload for multiple new messages. + * Event type: `google.workspace.chat.message.v1.batchCreated` + * @type \Google\Apps\Chat\V1\MessageBatchUpdatedEventData $message_batch_updated_event_data + * Event payload for multiple updated messages. + * Event type: `google.workspace.chat.message.v1.batchUpdated` + * @type \Google\Apps\Chat\V1\MessageBatchDeletedEventData $message_batch_deleted_event_data + * Event payload for multiple deleted messages. + * Event type: `google.workspace.chat.message.v1.batchDeleted` + * @type \Google\Apps\Chat\V1\SpaceUpdatedEventData $space_updated_event_data + * Event payload for a space update. + * Event type: `google.workspace.chat.space.v1.updated` + * @type \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData $space_batch_updated_event_data + * Event payload for multiple updates to a space. + * Event type: `google.workspace.chat.space.v1.batchUpdated` + * @type \Google\Apps\Chat\V1\MembershipCreatedEventData $membership_created_event_data + * Event payload for a new membership. + * Event type: `google.workspace.chat.membership.v1.created` + * @type \Google\Apps\Chat\V1\MembershipUpdatedEventData $membership_updated_event_data + * Event payload for an updated membership. + * Event type: `google.workspace.chat.membership.v1.updated` + * @type \Google\Apps\Chat\V1\MembershipDeletedEventData $membership_deleted_event_data + * Event payload for a deleted membership. + * Event type: `google.workspace.chat.membership.v1.deleted` + * @type \Google\Apps\Chat\V1\MembershipBatchCreatedEventData $membership_batch_created_event_data + * Event payload for multiple new memberships. + * Event type: `google.workspace.chat.membership.v1.batchCreated` + * @type \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData $membership_batch_updated_event_data + * Event payload for multiple updated memberships. + * Event type: `google.workspace.chat.membership.v1.batchUpdated` + * @type \Google\Apps\Chat\V1\MembershipBatchDeletedEventData $membership_batch_deleted_event_data + * Event payload for multiple deleted memberships. + * Event type: `google.workspace.chat.membership.v1.batchDeleted` + * @type \Google\Apps\Chat\V1\ReactionCreatedEventData $reaction_created_event_data + * Event payload for a new reaction. + * Event type: `google.workspace.chat.reaction.v1.created` + * @type \Google\Apps\Chat\V1\ReactionDeletedEventData $reaction_deleted_event_data + * Event payload for a deleted reaction. + * Event type: `google.workspace.chat.reaction.v1.deleted` + * @type \Google\Apps\Chat\V1\ReactionBatchCreatedEventData $reaction_batch_created_event_data + * Event payload for multiple new reactions. + * Event type: `google.workspace.chat.reaction.v1.batchCreated` + * @type \Google\Apps\Chat\V1\ReactionBatchDeletedEventData $reaction_batch_deleted_event_data + * Event payload for multiple deleted reactions. + * Event type: `google.workspace.chat.reaction.v1.batchDeleted` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name of the space event. + * Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Time when the event occurred. + * + * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEventTime() + { + return $this->event_time; + } + + public function hasEventTime() + { + return isset($this->event_time); + } + + public function clearEventTime() + { + unset($this->event_time); + } + + /** + * Time when the event occurred. + * + * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEventTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->event_time = $var; + + return $this; + } + + /** + * Type of space event. Each event type has a batch version, which + * represents multiple instances of the event type that occur in a short + * period of time. For `spaceEvents.list()` requests, omit batch event types + * in your query filter. By default, the server returns both event type and + * its batch version. + * Supported event types for + * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): + * * New message: `google.workspace.chat.message.v1.created` + * * Updated message: `google.workspace.chat.message.v1.updated` + * * Deleted message: `google.workspace.chat.message.v1.deleted` + * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` + * * Multiple updated messages: + * `google.workspace.chat.message.v1.batchUpdated` + * * Multiple deleted messages: + * `google.workspace.chat.message.v1.batchDeleted` + * Supported event types for + * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): + * * New membership: `google.workspace.chat.membership.v1.created` + * * Updated membership: `google.workspace.chat.membership.v1.updated` + * * Deleted membership: `google.workspace.chat.membership.v1.deleted` + * * Multiple new memberships: + * `google.workspace.chat.membership.v1.batchCreated` + * * Multiple updated memberships: + * `google.workspace.chat.membership.v1.batchUpdated` + * * Multiple deleted memberships: + * `google.workspace.chat.membership.v1.batchDeleted` + * Supported event types for + * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): + * * New reaction: `google.workspace.chat.reaction.v1.created` + * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` + * * Multiple new reactions: + * `google.workspace.chat.reaction.v1.batchCreated` + * * Multiple deleted reactions: + * `google.workspace.chat.reaction.v1.batchDeleted` + * Supported event types about the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): + * * Updated space: `google.workspace.chat.space.v1.updated` + * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` + * + * Generated from protobuf field string event_type = 6; + * @return string + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * Type of space event. Each event type has a batch version, which + * represents multiple instances of the event type that occur in a short + * period of time. For `spaceEvents.list()` requests, omit batch event types + * in your query filter. By default, the server returns both event type and + * its batch version. + * Supported event types for + * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): + * * New message: `google.workspace.chat.message.v1.created` + * * Updated message: `google.workspace.chat.message.v1.updated` + * * Deleted message: `google.workspace.chat.message.v1.deleted` + * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` + * * Multiple updated messages: + * `google.workspace.chat.message.v1.batchUpdated` + * * Multiple deleted messages: + * `google.workspace.chat.message.v1.batchDeleted` + * Supported event types for + * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): + * * New membership: `google.workspace.chat.membership.v1.created` + * * Updated membership: `google.workspace.chat.membership.v1.updated` + * * Deleted membership: `google.workspace.chat.membership.v1.deleted` + * * Multiple new memberships: + * `google.workspace.chat.membership.v1.batchCreated` + * * Multiple updated memberships: + * `google.workspace.chat.membership.v1.batchUpdated` + * * Multiple deleted memberships: + * `google.workspace.chat.membership.v1.batchDeleted` + * Supported event types for + * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): + * * New reaction: `google.workspace.chat.reaction.v1.created` + * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` + * * Multiple new reactions: + * `google.workspace.chat.reaction.v1.batchCreated` + * * Multiple deleted reactions: + * `google.workspace.chat.reaction.v1.batchDeleted` + * Supported event types about the + * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): + * * Updated space: `google.workspace.chat.space.v1.updated` + * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` + * + * Generated from protobuf field string event_type = 6; + * @param string $var + * @return $this + */ + public function setEventType($var) + { + GPBUtil::checkString($var, True); + $this->event_type = $var; + + return $this; + } + + /** + * Event payload for a new message. + * Event type: `google.workspace.chat.message.v1.created` + * + * Generated from protobuf field .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * @return \Google\Apps\Chat\V1\MessageCreatedEventData|null + */ + public function getMessageCreatedEventData() + { + return $this->readOneof(12); + } + + public function hasMessageCreatedEventData() + { + return $this->hasOneof(12); + } + + /** + * Event payload for a new message. + * Event type: `google.workspace.chat.message.v1.created` + * + * Generated from protobuf field .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * @param \Google\Apps\Chat\V1\MessageCreatedEventData $var + * @return $this + */ + public function setMessageCreatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageCreatedEventData::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Event payload for an updated message. + * Event type: `google.workspace.chat.message.v1.updated` + * + * Generated from protobuf field .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * @return \Google\Apps\Chat\V1\MessageUpdatedEventData|null + */ + public function getMessageUpdatedEventData() + { + return $this->readOneof(13); + } + + public function hasMessageUpdatedEventData() + { + return $this->hasOneof(13); + } + + /** + * Event payload for an updated message. + * Event type: `google.workspace.chat.message.v1.updated` + * + * Generated from protobuf field .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * @param \Google\Apps\Chat\V1\MessageUpdatedEventData $var + * @return $this + */ + public function setMessageUpdatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageUpdatedEventData::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Event payload for a deleted message. + * Event type: `google.workspace.chat.message.v1.deleted` + * + * Generated from protobuf field .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * @return \Google\Apps\Chat\V1\MessageDeletedEventData|null + */ + public function getMessageDeletedEventData() + { + return $this->readOneof(14); + } + + public function hasMessageDeletedEventData() + { + return $this->hasOneof(14); + } + + /** + * Event payload for a deleted message. + * Event type: `google.workspace.chat.message.v1.deleted` + * + * Generated from protobuf field .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * @param \Google\Apps\Chat\V1\MessageDeletedEventData $var + * @return $this + */ + public function setMessageDeletedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageDeletedEventData::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Event payload for multiple new messages. + * Event type: `google.workspace.chat.message.v1.batchCreated` + * + * Generated from protobuf field .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * @return \Google\Apps\Chat\V1\MessageBatchCreatedEventData|null + */ + public function getMessageBatchCreatedEventData() + { + return $this->readOneof(26); + } + + public function hasMessageBatchCreatedEventData() + { + return $this->hasOneof(26); + } + + /** + * Event payload for multiple new messages. + * Event type: `google.workspace.chat.message.v1.batchCreated` + * + * Generated from protobuf field .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * @param \Google\Apps\Chat\V1\MessageBatchCreatedEventData $var + * @return $this + */ + public function setMessageBatchCreatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchCreatedEventData::class); + $this->writeOneof(26, $var); + + return $this; + } + + /** + * Event payload for multiple updated messages. + * Event type: `google.workspace.chat.message.v1.batchUpdated` + * + * Generated from protobuf field .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * @return \Google\Apps\Chat\V1\MessageBatchUpdatedEventData|null + */ + public function getMessageBatchUpdatedEventData() + { + return $this->readOneof(27); + } + + public function hasMessageBatchUpdatedEventData() + { + return $this->hasOneof(27); + } + + /** + * Event payload for multiple updated messages. + * Event type: `google.workspace.chat.message.v1.batchUpdated` + * + * Generated from protobuf field .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * @param \Google\Apps\Chat\V1\MessageBatchUpdatedEventData $var + * @return $this + */ + public function setMessageBatchUpdatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchUpdatedEventData::class); + $this->writeOneof(27, $var); + + return $this; + } + + /** + * Event payload for multiple deleted messages. + * Event type: `google.workspace.chat.message.v1.batchDeleted` + * + * Generated from protobuf field .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * @return \Google\Apps\Chat\V1\MessageBatchDeletedEventData|null + */ + public function getMessageBatchDeletedEventData() + { + return $this->readOneof(28); + } + + public function hasMessageBatchDeletedEventData() + { + return $this->hasOneof(28); + } + + /** + * Event payload for multiple deleted messages. + * Event type: `google.workspace.chat.message.v1.batchDeleted` + * + * Generated from protobuf field .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * @param \Google\Apps\Chat\V1\MessageBatchDeletedEventData $var + * @return $this + */ + public function setMessageBatchDeletedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchDeletedEventData::class); + $this->writeOneof(28, $var); + + return $this; + } + + /** + * Event payload for a space update. + * Event type: `google.workspace.chat.space.v1.updated` + * + * Generated from protobuf field .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * @return \Google\Apps\Chat\V1\SpaceUpdatedEventData|null + */ + public function getSpaceUpdatedEventData() + { + return $this->readOneof(15); + } + + public function hasSpaceUpdatedEventData() + { + return $this->hasOneof(15); + } + + /** + * Event payload for a space update. + * Event type: `google.workspace.chat.space.v1.updated` + * + * Generated from protobuf field .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * @param \Google\Apps\Chat\V1\SpaceUpdatedEventData $var + * @return $this + */ + public function setSpaceUpdatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceUpdatedEventData::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Event payload for multiple updates to a space. + * Event type: `google.workspace.chat.space.v1.batchUpdated` + * + * Generated from protobuf field .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * @return \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData|null + */ + public function getSpaceBatchUpdatedEventData() + { + return $this->readOneof(29); + } + + public function hasSpaceBatchUpdatedEventData() + { + return $this->hasOneof(29); + } + + /** + * Event payload for multiple updates to a space. + * Event type: `google.workspace.chat.space.v1.batchUpdated` + * + * Generated from protobuf field .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * @param \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData $var + * @return $this + */ + public function setSpaceBatchUpdatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData::class); + $this->writeOneof(29, $var); + + return $this; + } + + /** + * Event payload for a new membership. + * Event type: `google.workspace.chat.membership.v1.created` + * + * Generated from protobuf field .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * @return \Google\Apps\Chat\V1\MembershipCreatedEventData|null + */ + public function getMembershipCreatedEventData() + { + return $this->readOneof(17); + } + + public function hasMembershipCreatedEventData() + { + return $this->hasOneof(17); + } + + /** + * Event payload for a new membership. + * Event type: `google.workspace.chat.membership.v1.created` + * + * Generated from protobuf field .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * @param \Google\Apps\Chat\V1\MembershipCreatedEventData $var + * @return $this + */ + public function setMembershipCreatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipCreatedEventData::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Event payload for an updated membership. + * Event type: `google.workspace.chat.membership.v1.updated` + * + * Generated from protobuf field .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * @return \Google\Apps\Chat\V1\MembershipUpdatedEventData|null + */ + public function getMembershipUpdatedEventData() + { + return $this->readOneof(18); + } + + public function hasMembershipUpdatedEventData() + { + return $this->hasOneof(18); + } + + /** + * Event payload for an updated membership. + * Event type: `google.workspace.chat.membership.v1.updated` + * + * Generated from protobuf field .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * @param \Google\Apps\Chat\V1\MembershipUpdatedEventData $var + * @return $this + */ + public function setMembershipUpdatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipUpdatedEventData::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Event payload for a deleted membership. + * Event type: `google.workspace.chat.membership.v1.deleted` + * + * Generated from protobuf field .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * @return \Google\Apps\Chat\V1\MembershipDeletedEventData|null + */ + public function getMembershipDeletedEventData() + { + return $this->readOneof(219); + } + + public function hasMembershipDeletedEventData() + { + return $this->hasOneof(219); + } + + /** + * Event payload for a deleted membership. + * Event type: `google.workspace.chat.membership.v1.deleted` + * + * Generated from protobuf field .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * @param \Google\Apps\Chat\V1\MembershipDeletedEventData $var + * @return $this + */ + public function setMembershipDeletedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipDeletedEventData::class); + $this->writeOneof(219, $var); + + return $this; + } + + /** + * Event payload for multiple new memberships. + * Event type: `google.workspace.chat.membership.v1.batchCreated` + * + * Generated from protobuf field .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * @return \Google\Apps\Chat\V1\MembershipBatchCreatedEventData|null + */ + public function getMembershipBatchCreatedEventData() + { + return $this->readOneof(31); + } + + public function hasMembershipBatchCreatedEventData() + { + return $this->hasOneof(31); + } + + /** + * Event payload for multiple new memberships. + * Event type: `google.workspace.chat.membership.v1.batchCreated` + * + * Generated from protobuf field .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * @param \Google\Apps\Chat\V1\MembershipBatchCreatedEventData $var + * @return $this + */ + public function setMembershipBatchCreatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchCreatedEventData::class); + $this->writeOneof(31, $var); + + return $this; + } + + /** + * Event payload for multiple updated memberships. + * Event type: `google.workspace.chat.membership.v1.batchUpdated` + * + * Generated from protobuf field .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * @return \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData|null + */ + public function getMembershipBatchUpdatedEventData() + { + return $this->readOneof(32); + } + + public function hasMembershipBatchUpdatedEventData() + { + return $this->hasOneof(32); + } + + /** + * Event payload for multiple updated memberships. + * Event type: `google.workspace.chat.membership.v1.batchUpdated` + * + * Generated from protobuf field .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * @param \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData $var + * @return $this + */ + public function setMembershipBatchUpdatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData::class); + $this->writeOneof(32, $var); + + return $this; + } + + /** + * Event payload for multiple deleted memberships. + * Event type: `google.workspace.chat.membership.v1.batchDeleted` + * + * Generated from protobuf field .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * @return \Google\Apps\Chat\V1\MembershipBatchDeletedEventData|null + */ + public function getMembershipBatchDeletedEventData() + { + return $this->readOneof(33); + } + + public function hasMembershipBatchDeletedEventData() + { + return $this->hasOneof(33); + } + + /** + * Event payload for multiple deleted memberships. + * Event type: `google.workspace.chat.membership.v1.batchDeleted` + * + * Generated from protobuf field .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * @param \Google\Apps\Chat\V1\MembershipBatchDeletedEventData $var + * @return $this + */ + public function setMembershipBatchDeletedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchDeletedEventData::class); + $this->writeOneof(33, $var); + + return $this; + } + + /** + * Event payload for a new reaction. + * Event type: `google.workspace.chat.reaction.v1.created` + * + * Generated from protobuf field .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * @return \Google\Apps\Chat\V1\ReactionCreatedEventData|null + */ + public function getReactionCreatedEventData() + { + return $this->readOneof(21); + } + + public function hasReactionCreatedEventData() + { + return $this->hasOneof(21); + } + + /** + * Event payload for a new reaction. + * Event type: `google.workspace.chat.reaction.v1.created` + * + * Generated from protobuf field .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * @param \Google\Apps\Chat\V1\ReactionCreatedEventData $var + * @return $this + */ + public function setReactionCreatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionCreatedEventData::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * Event payload for a deleted reaction. + * Event type: `google.workspace.chat.reaction.v1.deleted` + * + * Generated from protobuf field .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * @return \Google\Apps\Chat\V1\ReactionDeletedEventData|null + */ + public function getReactionDeletedEventData() + { + return $this->readOneof(22); + } + + public function hasReactionDeletedEventData() + { + return $this->hasOneof(22); + } + + /** + * Event payload for a deleted reaction. + * Event type: `google.workspace.chat.reaction.v1.deleted` + * + * Generated from protobuf field .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * @param \Google\Apps\Chat\V1\ReactionDeletedEventData $var + * @return $this + */ + public function setReactionDeletedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionDeletedEventData::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * Event payload for multiple new reactions. + * Event type: `google.workspace.chat.reaction.v1.batchCreated` + * + * Generated from protobuf field .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * @return \Google\Apps\Chat\V1\ReactionBatchCreatedEventData|null + */ + public function getReactionBatchCreatedEventData() + { + return $this->readOneof(34); + } + + public function hasReactionBatchCreatedEventData() + { + return $this->hasOneof(34); + } + + /** + * Event payload for multiple new reactions. + * Event type: `google.workspace.chat.reaction.v1.batchCreated` + * + * Generated from protobuf field .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * @param \Google\Apps\Chat\V1\ReactionBatchCreatedEventData $var + * @return $this + */ + public function setReactionBatchCreatedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionBatchCreatedEventData::class); + $this->writeOneof(34, $var); + + return $this; + } + + /** + * Event payload for multiple deleted reactions. + * Event type: `google.workspace.chat.reaction.v1.batchDeleted` + * + * Generated from protobuf field .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * @return \Google\Apps\Chat\V1\ReactionBatchDeletedEventData|null + */ + public function getReactionBatchDeletedEventData() + { + return $this->readOneof(35); + } + + public function hasReactionBatchDeletedEventData() + { + return $this->hasOneof(35); + } + + /** + * Event payload for multiple deleted reactions. + * Event type: `google.workspace.chat.reaction.v1.batchDeleted` + * + * Generated from protobuf field .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * @param \Google\Apps\Chat\V1\ReactionBatchDeletedEventData $var + * @return $this + */ + public function setReactionBatchDeletedEventData($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionBatchDeletedEventData::class); + $this->writeOneof(35, $var); + + return $this; + } + + /** + * @return string + */ + public function getPayload() + { + return $this->whichOneof("payload"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php new file mode 100644 index 000000000000..12100626052e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php @@ -0,0 +1,159 @@ +google.chat.v1.SpaceNotificationSetting + */ +class SpaceNotificationSetting extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the space notification setting. + * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The notification setting. + * + * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2; + */ + protected $notification_setting = null; + /** + * The space notification mute setting. + * + * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3; + */ + protected $mute_setting = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the space notification setting. + * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. + * @type int $notification_setting + * The notification setting. + * @type int $mute_setting + * The space notification mute setting. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceNotificationSetting::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the space notification setting. + * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the space notification setting. + * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The notification setting. + * + * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2; + * @return int + */ + public function getNotificationSetting() + { + return isset($this->notification_setting) ? $this->notification_setting : 0; + } + + public function hasNotificationSetting() + { + return isset($this->notification_setting); + } + + public function clearNotificationSetting() + { + unset($this->notification_setting); + } + + /** + * The notification setting. + * + * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2; + * @param int $var + * @return $this + */ + public function setNotificationSetting($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SpaceNotificationSetting\NotificationSetting::class); + $this->notification_setting = $var; + + return $this; + } + + /** + * The space notification mute setting. + * + * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3; + * @return int + */ + public function getMuteSetting() + { + return isset($this->mute_setting) ? $this->mute_setting : 0; + } + + public function hasMuteSetting() + { + return isset($this->mute_setting); + } + + public function clearMuteSetting() + { + unset($this->mute_setting); + } + + /** + * The space notification mute setting. + * + * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3; + * @param int $var + * @return $this + */ + public function setMuteSetting($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SpaceNotificationSetting\MuteSetting::class); + $this->mute_setting = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php new file mode 100644 index 000000000000..303e3ff93322 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php @@ -0,0 +1,63 @@ +google.chat.v1.SpaceNotificationSetting.MuteSetting + */ +class MuteSetting +{ + /** + * Reserved. + * + * Generated from protobuf enum MUTE_SETTING_UNSPECIFIED = 0; + */ + const MUTE_SETTING_UNSPECIFIED = 0; + /** + * The user will receive notifications for the space based on the + * notification setting. + * + * Generated from protobuf enum UNMUTED = 1; + */ + const UNMUTED = 1; + /** + * The user will not receive any notifications for the space, regardless of + * the notification setting. + * + * Generated from protobuf enum MUTED = 2; + */ + const MUTED = 2; + + private static $valueToName = [ + self::MUTE_SETTING_UNSPECIFIED => 'MUTE_SETTING_UNSPECIFIED', + self::UNMUTED => 'UNMUTED', + self::MUTED => 'MUTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php new file mode 100644 index 000000000000..fb63738c974b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php @@ -0,0 +1,80 @@ +google.chat.v1.SpaceNotificationSetting.NotificationSetting + */ +class NotificationSetting +{ + /** + * Reserved. + * + * Generated from protobuf enum NOTIFICATION_SETTING_UNSPECIFIED = 0; + */ + const NOTIFICATION_SETTING_UNSPECIFIED = 0; + /** + * Notifications are triggered by \@mentions, followed threads, first + * message of new threads. All new threads are automatically followed, + * unless manually unfollowed by the user. + * + * Generated from protobuf enum ALL = 1; + */ + const ALL = 1; + /** + * The notification is triggered by \@mentions, followed threads, first + * message of new threads. Not available for 1:1 direct messages. + * + * Generated from protobuf enum MAIN_CONVERSATIONS = 2; + */ + const MAIN_CONVERSATIONS = 2; + /** + * The notification is triggered by \@mentions, followed threads. Not + * available for 1:1 direct messages. + * + * Generated from protobuf enum FOR_YOU = 3; + */ + const FOR_YOU = 3; + /** + * Notification is off. + * + * Generated from protobuf enum OFF = 4; + */ + const OFF = 4; + + private static $valueToName = [ + self::NOTIFICATION_SETTING_UNSPECIFIED => 'NOTIFICATION_SETTING_UNSPECIFIED', + self::ALL => 'ALL', + self::MAIN_CONVERSATIONS => 'MAIN_CONVERSATIONS', + self::FOR_YOU => 'FOR_YOU', + self::OFF => 'OFF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php new file mode 100644 index 000000000000..eeb81eb2a3c7 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php @@ -0,0 +1,124 @@ +google.chat.v1.SpaceReadState + */ +class SpaceReadState extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the space read state. + * Format: `users/{user}/spaces/{space}/spaceReadState` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. The time when the user's space read state was updated. Usually + * this corresponds with either the timestamp of the last read message, or a + * timestamp specified by the user to mark the last read position in a space. + * + * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $last_read_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name of the space read state. + * Format: `users/{user}/spaces/{space}/spaceReadState` + * @type \Google\Protobuf\Timestamp $last_read_time + * Optional. The time when the user's space read state was updated. Usually + * this corresponds with either the timestamp of the last read message, or a + * timestamp specified by the user to mark the last read position in a space. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the space read state. + * Format: `users/{user}/spaces/{space}/spaceReadState` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name of the space read state. + * Format: `users/{user}/spaces/{space}/spaceReadState` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The time when the user's space read state was updated. Usually + * this corresponds with either the timestamp of the last read message, or a + * timestamp specified by the user to mark the last read position in a space. + * + * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastReadTime() + { + return $this->last_read_time; + } + + public function hasLastReadTime() + { + return isset($this->last_read_time); + } + + public function clearLastReadTime() + { + unset($this->last_read_time); + } + + /** + * Optional. The time when the user's space read state was updated. Usually + * this corresponds with either the timestamp of the last read message, or a + * timestamp specified by the user to mark the last read position in a space. + * + * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastReadTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_read_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php new file mode 100644 index 000000000000..9a6ac7fe5c1b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php @@ -0,0 +1,78 @@ +google.chat.v1.SpaceUpdatedEventData + */ +class SpaceUpdatedEventData extends \Google\Protobuf\Internal\Message +{ + /** + * The updated space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1; + */ + protected $space = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space $space + * The updated space. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); + parent::__construct($data); + } + + /** + * The updated space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1; + * @return \Google\Apps\Chat\V1\Space|null + */ + public function getSpace() + { + return $this->space; + } + + public function hasSpace() + { + return isset($this->space); + } + + public function clearSpace() + { + unset($this->space); + } + + /** + * The updated space. + * + * Generated from protobuf field .google.chat.v1.Space space = 1; + * @param \Google\Apps\Chat\V1\Space $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); + $this->space = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php new file mode 100644 index 000000000000..ffc414bd13d6 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php @@ -0,0 +1,70 @@ +google.chat.v1.SpaceView + */ +class SpaceView +{ + /** + * The default / unset value. + * + * Generated from protobuf enum SPACE_VIEW_UNSPECIFIED = 0; + */ + const SPACE_VIEW_UNSPECIFIED = 0; + /** + * Populates only the Space resource name. + * + * Generated from protobuf enum SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + */ + const SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + /** + * Populates Space resource fields. Note: the `permissionSettings` field + * will not be populated. + * Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow + * reading space data, for example, + * https://www.googleapis.com/auth/chat.spaces or + * https://www.googleapis.com/auth/chat.spaces.readonly. + * + * Generated from protobuf enum SPACE_VIEW_EXPANDED = 4; + */ + const SPACE_VIEW_EXPANDED = 4; + + private static $valueToName = [ + self::SPACE_VIEW_UNSPECIFIED => 'SPACE_VIEW_UNSPECIFIED', + self::SPACE_VIEW_RESOURCE_NAME_ONLY => 'SPACE_VIEW_RESOURCE_NAME_ONLY', + self::SPACE_VIEW_EXPANDED => 'SPACE_VIEW_EXPANDED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php new file mode 100644 index 000000000000..459c2aafdead --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php @@ -0,0 +1,134 @@ +google.chat.v1.Thread + */ +class Thread extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the thread. + * Example: `spaces/{space}/threads/{thread}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. Input for creating or updating a thread. Otherwise, output only. + * ID for the thread. Supports up to 4000 characters. + * This ID is unique to the Chat app that sets it. For example, if + * multiple Chat apps create a message using the same thread key, + * the messages are posted in different threads. To reply in a + * thread created by a person or another Chat app, specify the thread `name` + * field instead. + * + * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $thread_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the thread. + * Example: `spaces/{space}/threads/{thread}` + * @type string $thread_key + * Optional. Input for creating or updating a thread. Otherwise, output only. + * ID for the thread. Supports up to 4000 characters. + * This ID is unique to the Chat app that sets it. For example, if + * multiple Chat apps create a message using the same thread key, + * the messages are posted in different threads. To reply in a + * thread created by a person or another Chat app, specify the thread `name` + * field instead. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the thread. + * Example: `spaces/{space}/threads/{thread}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the thread. + * Example: `spaces/{space}/threads/{thread}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Input for creating or updating a thread. Otherwise, output only. + * ID for the thread. Supports up to 4000 characters. + * This ID is unique to the Chat app that sets it. For example, if + * multiple Chat apps create a message using the same thread key, + * the messages are posted in different threads. To reply in a + * thread created by a person or another Chat app, specify the thread `name` + * field instead. + * + * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getThreadKey() + { + return $this->thread_key; + } + + /** + * Optional. Input for creating or updating a thread. Otherwise, output only. + * ID for the thread. Supports up to 4000 characters. + * This ID is unique to the Chat app that sets it. For example, if + * multiple Chat apps create a message using the same thread key, + * the messages are posted in different threads. To reply in a + * thread created by a person or another Chat app, specify the thread `name` + * field instead. + * + * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setThreadKey($var) + { + GPBUtil::checkString($var, True); + $this->thread_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php new file mode 100644 index 000000000000..a89311fa80aa --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php @@ -0,0 +1,120 @@ +google.chat.v1.ThreadReadState + */ +class ThreadReadState extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the thread read state. + * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The time when the user's thread read state was updated. Usually this + * corresponds with the timestamp of the last read message in a thread. + * + * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; + */ + protected $last_read_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name of the thread read state. + * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + * @type \Google\Protobuf\Timestamp $last_read_time + * The time when the user's thread read state was updated. Usually this + * corresponds with the timestamp of the last read message in a thread. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\ThreadReadState::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the thread read state. + * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name of the thread read state. + * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The time when the user's thread read state was updated. Usually this + * corresponds with the timestamp of the last read message in a thread. + * + * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastReadTime() + { + return $this->last_read_time; + } + + public function hasLastReadTime() + { + return isset($this->last_read_time); + } + + public function clearLastReadTime() + { + unset($this->last_read_time); + } + + /** + * The time when the user's thread read state was updated. Usually this + * corresponds with the timestamp of the last read message in a thread. + * + * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastReadTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_read_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php new file mode 100644 index 000000000000..4ad8dc145f96 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php @@ -0,0 +1,216 @@ +google.chat.v1.UpdateMembershipRequest + */ +class UpdateMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The membership to update. Only fields specified by `update_mask` + * are updated. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $membership = null; + /** + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `role` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param \Google\Apps\Chat\V1\Membership $membership Required. The membership to update. Only fields specified by `update_mask` + * are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * + * Currently supported field paths: + * + * - `role` + * + * @return \Google\Apps\Chat\V1\UpdateMembershipRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\Membership $membership, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setMembership($membership) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Membership $membership + * Required. The membership to update. Only fields specified by `update_mask` + * are updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `role` + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Required. The membership to update. Only fields specified by `update_mask` + * are updated. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Membership|null + */ + public function getMembership() + { + return $this->membership; + } + + public function hasMembership() + { + return isset($this->membership); + } + + public function clearMembership() + { + unset($this->membership); + } + + /** + * Required. The membership to update. Only fields specified by `update_mask` + * are updated. + * + * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Membership $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); + $this->membership = $var; + + return $this; + } + + /** + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `role` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `role` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.memberships` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php new file mode 100644 index 000000000000..b1700572743f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php @@ -0,0 +1,244 @@ +google.chat.v1.UpdateMessageRequest + */ +class UpdateMessageRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Message with fields updated. + * + * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $message = null; + /** + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `text` + * - `attachment` + * - `cards` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `cards_v2` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `accessory_widgets` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `quoted_message_metadata` (Only allows removal of the quoted message.) + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. If `true` and the message isn't found, a new message is created + * and `updateMask` is ignored. The specified message ID must be + * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) + * or the request fails. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + + /** + * @param \Google\Apps\Chat\V1\Message $message Required. Message with fields updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * + * Currently supported field paths: + * + * - `text` + * + * - `attachment` + * + * - `cards` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `cards_v2` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `accessory_widgets` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) + * + * @return \Google\Apps\Chat\V1\UpdateMessageRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\Message $message, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setMessage($message) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Message $message + * Required. Message with fields updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `text` + * - `attachment` + * - `cards` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `cards_v2` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `accessory_widgets` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `quoted_message_metadata` (Only allows removal of the quoted message.) + * @type bool $allow_missing + * Optional. If `true` and the message isn't found, a new message is created + * and `updateMask` is ignored. The specified message ID must be + * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) + * or the request fails. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Message::initOnce(); + parent::__construct($data); + } + + /** + * Required. Message with fields updated. + * + * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Message|null + */ + public function getMessage() + { + return $this->message; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * Required. Message with fields updated. + * + * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Message $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); + $this->message = $var; + + return $this; + } + + /** + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `text` + * - `attachment` + * - `cards` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `cards_v2` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `accessory_widgets` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `quoted_message_metadata` (Only allows removal of the quoted message.) + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The field paths to update. Separate multiple values with commas + * or use `*` to update all field paths. + * Currently supported field paths: + * - `text` + * - `attachment` + * - `cards` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `cards_v2` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `accessory_widgets` (Requires [app + * authentication](/chat/api/guides/auth/service-accounts).) + * - `quoted_message_metadata` (Only allows removal of the quoted message.) + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. If `true` and the message isn't found, a new message is created + * and `updateMask` is ignored. The specified message ID must be + * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) + * or the request fails. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If `true` and the message isn't found, a new message is created + * and `updateMask` is ignored. The specified message ID must be + * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) + * or the request fails. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php new file mode 100644 index 000000000000..955468f0b107 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php @@ -0,0 +1,148 @@ +google.chat.v1.UpdateSectionRequest + */ +class UpdateSectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The section to update. + * + * Generated from protobuf field .google.chat.v1.Section section = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $section = null; + /** + * Required. The mask to specify which fields to update. + * Currently supported field paths: + * - `display_name` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Apps\Chat\V1\Section $section Required. The section to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The mask to specify which fields to update. + * + * Currently supported field paths: + * + * - `display_name` + * + * @return \Google\Apps\Chat\V1\UpdateSectionRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\Section $section, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setSection($section) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Section $section + * Required. The section to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The mask to specify which fields to update. + * Currently supported field paths: + * - `display_name` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Section::initOnce(); + parent::__construct($data); + } + + /** + * Required. The section to update. + * + * Generated from protobuf field .google.chat.v1.Section section = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Section|null + */ + public function getSection() + { + return $this->section; + } + + public function hasSection() + { + return isset($this->section); + } + + public function clearSection() + { + unset($this->section); + } + + /** + * Required. The section to update. + * + * Generated from protobuf field .google.chat.v1.Section section = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Section $var + * @return $this + */ + public function setSection($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Section::class); + $this->section = $var; + + return $this; + } + + /** + * Required. The mask to specify which fields to update. + * Currently supported field paths: + * - `display_name` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The mask to specify which fields to update. + * Currently supported field paths: + * - `display_name` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php new file mode 100644 index 000000000000..0526ba9015dd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php @@ -0,0 +1,164 @@ +google.chat.v1.UpdateSpaceNotificationSettingRequest + */ +class UpdateSpaceNotificationSettingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name for the space notification settings must be + * populated in the form of + * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields + * specified by `update_mask` are updated. + * + * Generated from protobuf field .google.chat.v1.SpaceNotificationSetting space_notification_setting = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $space_notification_setting = null; + /** + * Required. Supported field paths: + * - `notification_setting` + * - `mute_setting` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Apps\Chat\V1\SpaceNotificationSetting $spaceNotificationSetting Required. The resource name for the space notification settings must be + * populated in the form of + * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields + * specified by `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Supported field paths: + * + * - `notification_setting` + * + * - `mute_setting` + * + * @return \Google\Apps\Chat\V1\UpdateSpaceNotificationSettingRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\SpaceNotificationSetting $spaceNotificationSetting, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setSpaceNotificationSetting($spaceNotificationSetting) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\SpaceNotificationSetting $space_notification_setting + * Required. The resource name for the space notification settings must be + * populated in the form of + * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields + * specified by `update_mask` are updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Supported field paths: + * - `notification_setting` + * - `mute_setting` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceNotificationSetting::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name for the space notification settings must be + * populated in the form of + * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields + * specified by `update_mask` are updated. + * + * Generated from protobuf field .google.chat.v1.SpaceNotificationSetting space_notification_setting = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\SpaceNotificationSetting|null + */ + public function getSpaceNotificationSetting() + { + return $this->space_notification_setting; + } + + public function hasSpaceNotificationSetting() + { + return isset($this->space_notification_setting); + } + + public function clearSpaceNotificationSetting() + { + unset($this->space_notification_setting); + } + + /** + * Required. The resource name for the space notification settings must be + * populated in the form of + * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields + * specified by `update_mask` are updated. + * + * Generated from protobuf field .google.chat.v1.SpaceNotificationSetting space_notification_setting = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\SpaceNotificationSetting $var + * @return $this + */ + public function setSpaceNotificationSetting($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceNotificationSetting::class); + $this->space_notification_setting = $var; + + return $this; + } + + /** + * Required. Supported field paths: + * - `notification_setting` + * - `mute_setting` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Supported field paths: + * - `notification_setting` + * - `mute_setting` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php new file mode 100644 index 000000000000..3cebd7c659f5 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php @@ -0,0 +1,230 @@ +google.chat.v1.UpdateSpaceReadStateRequest + */ +class UpdateSpaceReadStateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The space read state and fields to update. + * Only supports updating read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * + * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $space_read_state = null; + /** + * Required. The field paths to update. Currently supported field paths: + * - `last_read_time` + * When the `last_read_time` is before the latest message create time, the + * space appears as unread in the UI. + * To mark the space as read, set `last_read_time` to any value later (larger) + * than the latest message create time. The `last_read_time` is coerced to + * match the latest message create time. Note that the space read state only + * affects the read state of messages that are visible in the space's + * top-level conversation. Replies in threads are unaffected by this + * timestamp, and instead rely on the thread read state. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Apps\Chat\V1\SpaceReadState $spaceReadState Required. The space read state and fields to update. + * + * Only supports updating read state for the calling user. + * + * To refer to the calling user, set one of the following: + * + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * + * - Their Workspace email address. For example, + * `users/user@example.com/spaces/{space}/spaceReadState`. + * + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * + * Format: users/{user}/spaces/{space}/spaceReadState + * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Currently supported field paths: + * + * - `last_read_time` + * + * When the `last_read_time` is before the latest message create time, the + * space appears as unread in the UI. + * + * To mark the space as read, set `last_read_time` to any value later (larger) + * than the latest message create time. The `last_read_time` is coerced to + * match the latest message create time. Note that the space read state only + * affects the read state of messages that are visible in the space's + * top-level conversation. Replies in threads are unaffected by this + * timestamp, and instead rely on the thread read state. + * + * @return \Google\Apps\Chat\V1\UpdateSpaceReadStateRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\SpaceReadState $spaceReadState, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setSpaceReadState($spaceReadState) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\SpaceReadState $space_read_state + * Required. The space read state and fields to update. + * Only supports updating read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The field paths to update. Currently supported field paths: + * - `last_read_time` + * When the `last_read_time` is before the latest message create time, the + * space appears as unread in the UI. + * To mark the space as read, set `last_read_time` to any value later (larger) + * than the latest message create time. The `last_read_time` is coerced to + * match the latest message create time. Note that the space read state only + * affects the read state of messages that are visible in the space's + * top-level conversation. Replies in threads are unaffected by this + * timestamp, and instead rely on the thread read state. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); + parent::__construct($data); + } + + /** + * Required. The space read state and fields to update. + * Only supports updating read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * + * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\SpaceReadState|null + */ + public function getSpaceReadState() + { + return $this->space_read_state; + } + + public function hasSpaceReadState() + { + return isset($this->space_read_state); + } + + public function clearSpaceReadState() + { + unset($this->space_read_state); + } + + /** + * Required. The space read state and fields to update. + * Only supports updating read state for the calling user. + * To refer to the calling user, set one of the following: + * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. + * - Their Workspace email address. For example, + * `users/user\@example.com/spaces/{space}/spaceReadState`. + * - Their user id. For example, + * `users/123456789/spaces/{space}/spaceReadState`. + * Format: users/{user}/spaces/{space}/spaceReadState + * + * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\SpaceReadState $var + * @return $this + */ + public function setSpaceReadState($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceReadState::class); + $this->space_read_state = $var; + + return $this; + } + + /** + * Required. The field paths to update. Currently supported field paths: + * - `last_read_time` + * When the `last_read_time` is before the latest message create time, the + * space appears as unread in the UI. + * To mark the space as read, set `last_read_time` to any value later (larger) + * than the latest message create time. The `last_read_time` is coerced to + * match the latest message create time. Note that the space read state only + * affects the read state of messages that are visible in the space's + * top-level conversation. Replies in threads are unaffected by this + * timestamp, and instead rely on the thread read state. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The field paths to update. Currently supported field paths: + * - `last_read_time` + * When the `last_read_time` is before the latest message create time, the + * space appears as unread in the UI. + * To mark the space as read, set `last_read_time` to any value later (larger) + * than the latest message create time. The `last_read_time` is coerced to + * match the latest message create time. Note that the space read state only + * affects the read state of messages that are visible in the space's + * top-level conversation. Replies in threads are unaffected by this + * timestamp, and instead rely on the thread read state. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php new file mode 100644 index 000000000000..b3369218a536 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php @@ -0,0 +1,485 @@ +google.chat.v1.UpdateSpaceRequest + */ +class UpdateSpaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Space with fields to be updated. `Space.name` must be + * populated in the form of `spaces/{space}`. Only fields + * specified by `update_mask` are updated. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $space = null; + /** + * Required. The updated field paths, comma separated if there are + * multiple. + * You can update the following fields for a space: + * `space_details`: Updates the space's description and guidelines. You must + * pass both description and guidelines in the update request as + * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to + * update one of the fields, pass the existing value for the other field. + * `display_name`: Only supports updating the display name for spaces where + * `spaceType` field is `SPACE`. + * If you receive the error message `ALREADY_EXISTS`, try a different + * value. An existing space within the + * Google Workspace organization might already use this display name. + * `space_type`: Only supports changing a `GROUP_CHAT` space type to + * `SPACE`. Include `display_name` together + * with `space_type` in the update mask and ensure that the specified space + * has a non-empty display name and the `SPACE` space type. Including the + * `space_type` mask and the `SPACE` type in the specified space when updating + * the display name is optional if the existing space already has the `SPACE` + * type. Trying to update the space type in other ways results in an invalid + * argument error. + * `space_type` is not supported with `useAdminAccess`. + * `space_history_state`: Updates [space history + * settings](https://support.google.com/chat/answer/7664687) by turning + * history on or off for the space. Only supported if history settings are + * enabled for the Google Workspace organization. To update the + * space history state, you must omit all other field masks in your request. + * `space_history_state` is not supported with `useAdminAccess`. + * `access_settings.audience`: Updates the [access + * setting](https://support.google.com/chat/answer/11971020) of who can + * discover the space, join the space, and preview the messages in named space + * where `spaceType` field is `SPACE`. If the existing space has a + * target audience, you can remove the audience and restrict space access by + * omitting a value for this field mask. To update access settings for a + * space, the authenticating user must be a space manager and omit all other + * field masks in your request. You can't update this field if the space is in + * [import + * mode](https://developers.google.com/workspace/chat/import-data-overview). + * To learn more, see [Make a space discoverable to specific + * users](https://developers.google.com/workspace/chat/space-target-audience). + * `access_settings.audience` is not supported with `useAdminAccess`. + * `permission_settings`: Supports changing the + * [permission settings](https://support.google.com/chat/answer/13340792) + * of a space. + * When updating permission settings, you can only specify + * `permissionSettings` field masks; you cannot update other field masks + * at the same time. + * The supported field masks include: + * - `permission_settings.manageMembersAndGroups` + * - `permission_settings.modifySpaceDetails` + * - `permission_settings.toggleHistory` + * - `permission_settings.useAtMentionAll` + * - `permission_settings.manageApps` + * - `permission_settings.manageWebhooks` + * - `permission_settings.replyMessages` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Some `FieldMask` values are not supported using admin access. For details, + * see the description of `update_mask`. + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_admin_access = false; + + /** + * @param \Google\Apps\Chat\V1\Space $space Required. Space with fields to be updated. `Space.name` must be + * populated in the form of `spaces/{space}`. Only fields + * specified by `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The updated field paths, comma separated if there are + * multiple. + * + * You can update the following fields for a space: + * + * `space_details`: Updates the space's description and guidelines. You must + * pass both description and guidelines in the update request as + * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to + * update one of the fields, pass the existing value for the other field. + * + * `display_name`: Only supports updating the display name for spaces where + * `spaceType` field is `SPACE`. + * If you receive the error message `ALREADY_EXISTS`, try a different + * value. An existing space within the + * Google Workspace organization might already use this display name. + * + * `space_type`: Only supports changing a `GROUP_CHAT` space type to + * `SPACE`. Include `display_name` together + * with `space_type` in the update mask and ensure that the specified space + * has a non-empty display name and the `SPACE` space type. Including the + * `space_type` mask and the `SPACE` type in the specified space when updating + * the display name is optional if the existing space already has the `SPACE` + * type. Trying to update the space type in other ways results in an invalid + * argument error. + * `space_type` is not supported with `useAdminAccess`. + * + * `space_history_state`: Updates [space history + * settings](https://support.google.com/chat/answer/7664687) by turning + * history on or off for the space. Only supported if history settings are + * enabled for the Google Workspace organization. To update the + * space history state, you must omit all other field masks in your request. + * `space_history_state` is not supported with `useAdminAccess`. + * + * `access_settings.audience`: Updates the [access + * setting](https://support.google.com/chat/answer/11971020) of who can + * discover the space, join the space, and preview the messages in named space + * where `spaceType` field is `SPACE`. If the existing space has a + * target audience, you can remove the audience and restrict space access by + * omitting a value for this field mask. To update access settings for a + * space, the authenticating user must be a space manager and omit all other + * field masks in your request. You can't update this field if the space is in + * [import + * mode](https://developers.google.com/workspace/chat/import-data-overview). + * To learn more, see [Make a space discoverable to specific + * users](https://developers.google.com/workspace/chat/space-target-audience). + * `access_settings.audience` is not supported with `useAdminAccess`. + * + * `permission_settings`: Supports changing the + * [permission settings](https://support.google.com/chat/answer/13340792) + * of a space. + * When updating permission settings, you can only specify + * `permissionSettings` field masks; you cannot update other field masks + * at the same time. + * The supported field masks include: + * + * - `permission_settings.manageMembersAndGroups` + * - `permission_settings.modifySpaceDetails` + * - `permission_settings.toggleHistory` + * - `permission_settings.useAtMentionAll` + * - `permission_settings.manageApps` + * - `permission_settings.manageWebhooks` + * - `permission_settings.replyMessages` + * + * @return \Google\Apps\Chat\V1\UpdateSpaceRequest + * + * @experimental + */ + public static function build(\Google\Apps\Chat\V1\Space $space, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setSpace($space) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\Space $space + * Required. Space with fields to be updated. `Space.name` must be + * populated in the form of `spaces/{space}`. Only fields + * specified by `update_mask` are updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The updated field paths, comma separated if there are + * multiple. + * You can update the following fields for a space: + * `space_details`: Updates the space's description and guidelines. You must + * pass both description and guidelines in the update request as + * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to + * update one of the fields, pass the existing value for the other field. + * `display_name`: Only supports updating the display name for spaces where + * `spaceType` field is `SPACE`. + * If you receive the error message `ALREADY_EXISTS`, try a different + * value. An existing space within the + * Google Workspace organization might already use this display name. + * `space_type`: Only supports changing a `GROUP_CHAT` space type to + * `SPACE`. Include `display_name` together + * with `space_type` in the update mask and ensure that the specified space + * has a non-empty display name and the `SPACE` space type. Including the + * `space_type` mask and the `SPACE` type in the specified space when updating + * the display name is optional if the existing space already has the `SPACE` + * type. Trying to update the space type in other ways results in an invalid + * argument error. + * `space_type` is not supported with `useAdminAccess`. + * `space_history_state`: Updates [space history + * settings](https://support.google.com/chat/answer/7664687) by turning + * history on or off for the space. Only supported if history settings are + * enabled for the Google Workspace organization. To update the + * space history state, you must omit all other field masks in your request. + * `space_history_state` is not supported with `useAdminAccess`. + * `access_settings.audience`: Updates the [access + * setting](https://support.google.com/chat/answer/11971020) of who can + * discover the space, join the space, and preview the messages in named space + * where `spaceType` field is `SPACE`. If the existing space has a + * target audience, you can remove the audience and restrict space access by + * omitting a value for this field mask. To update access settings for a + * space, the authenticating user must be a space manager and omit all other + * field masks in your request. You can't update this field if the space is in + * [import + * mode](https://developers.google.com/workspace/chat/import-data-overview). + * To learn more, see [Make a space discoverable to specific + * users](https://developers.google.com/workspace/chat/space-target-audience). + * `access_settings.audience` is not supported with `useAdminAccess`. + * `permission_settings`: Supports changing the + * [permission settings](https://support.google.com/chat/answer/13340792) + * of a space. + * When updating permission settings, you can only specify + * `permissionSettings` field masks; you cannot update other field masks + * at the same time. + * The supported field masks include: + * - `permission_settings.manageMembersAndGroups` + * - `permission_settings.modifySpaceDetails` + * - `permission_settings.toggleHistory` + * - `permission_settings.useAtMentionAll` + * - `permission_settings.manageApps` + * - `permission_settings.manageWebhooks` + * - `permission_settings.replyMessages` + * @type bool $use_admin_access + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Some `FieldMask` values are not supported using admin access. For details, + * see the description of `update_mask`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Space::initOnce(); + parent::__construct($data); + } + + /** + * Required. Space with fields to be updated. `Space.name` must be + * populated in the form of `spaces/{space}`. Only fields + * specified by `update_mask` are updated. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Apps\Chat\V1\Space|null + */ + public function getSpace() + { + return $this->space; + } + + public function hasSpace() + { + return isset($this->space); + } + + public function clearSpace() + { + unset($this->space); + } + + /** + * Required. Space with fields to be updated. `Space.name` must be + * populated in the form of `spaces/{space}`. Only fields + * specified by `update_mask` are updated. + * + * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Apps\Chat\V1\Space $var + * @return $this + */ + public function setSpace($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); + $this->space = $var; + + return $this; + } + + /** + * Required. The updated field paths, comma separated if there are + * multiple. + * You can update the following fields for a space: + * `space_details`: Updates the space's description and guidelines. You must + * pass both description and guidelines in the update request as + * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to + * update one of the fields, pass the existing value for the other field. + * `display_name`: Only supports updating the display name for spaces where + * `spaceType` field is `SPACE`. + * If you receive the error message `ALREADY_EXISTS`, try a different + * value. An existing space within the + * Google Workspace organization might already use this display name. + * `space_type`: Only supports changing a `GROUP_CHAT` space type to + * `SPACE`. Include `display_name` together + * with `space_type` in the update mask and ensure that the specified space + * has a non-empty display name and the `SPACE` space type. Including the + * `space_type` mask and the `SPACE` type in the specified space when updating + * the display name is optional if the existing space already has the `SPACE` + * type. Trying to update the space type in other ways results in an invalid + * argument error. + * `space_type` is not supported with `useAdminAccess`. + * `space_history_state`: Updates [space history + * settings](https://support.google.com/chat/answer/7664687) by turning + * history on or off for the space. Only supported if history settings are + * enabled for the Google Workspace organization. To update the + * space history state, you must omit all other field masks in your request. + * `space_history_state` is not supported with `useAdminAccess`. + * `access_settings.audience`: Updates the [access + * setting](https://support.google.com/chat/answer/11971020) of who can + * discover the space, join the space, and preview the messages in named space + * where `spaceType` field is `SPACE`. If the existing space has a + * target audience, you can remove the audience and restrict space access by + * omitting a value for this field mask. To update access settings for a + * space, the authenticating user must be a space manager and omit all other + * field masks in your request. You can't update this field if the space is in + * [import + * mode](https://developers.google.com/workspace/chat/import-data-overview). + * To learn more, see [Make a space discoverable to specific + * users](https://developers.google.com/workspace/chat/space-target-audience). + * `access_settings.audience` is not supported with `useAdminAccess`. + * `permission_settings`: Supports changing the + * [permission settings](https://support.google.com/chat/answer/13340792) + * of a space. + * When updating permission settings, you can only specify + * `permissionSettings` field masks; you cannot update other field masks + * at the same time. + * The supported field masks include: + * - `permission_settings.manageMembersAndGroups` + * - `permission_settings.modifySpaceDetails` + * - `permission_settings.toggleHistory` + * - `permission_settings.useAtMentionAll` + * - `permission_settings.manageApps` + * - `permission_settings.manageWebhooks` + * - `permission_settings.replyMessages` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The updated field paths, comma separated if there are + * multiple. + * You can update the following fields for a space: + * `space_details`: Updates the space's description and guidelines. You must + * pass both description and guidelines in the update request as + * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to + * update one of the fields, pass the existing value for the other field. + * `display_name`: Only supports updating the display name for spaces where + * `spaceType` field is `SPACE`. + * If you receive the error message `ALREADY_EXISTS`, try a different + * value. An existing space within the + * Google Workspace organization might already use this display name. + * `space_type`: Only supports changing a `GROUP_CHAT` space type to + * `SPACE`. Include `display_name` together + * with `space_type` in the update mask and ensure that the specified space + * has a non-empty display name and the `SPACE` space type. Including the + * `space_type` mask and the `SPACE` type in the specified space when updating + * the display name is optional if the existing space already has the `SPACE` + * type. Trying to update the space type in other ways results in an invalid + * argument error. + * `space_type` is not supported with `useAdminAccess`. + * `space_history_state`: Updates [space history + * settings](https://support.google.com/chat/answer/7664687) by turning + * history on or off for the space. Only supported if history settings are + * enabled for the Google Workspace organization. To update the + * space history state, you must omit all other field masks in your request. + * `space_history_state` is not supported with `useAdminAccess`. + * `access_settings.audience`: Updates the [access + * setting](https://support.google.com/chat/answer/11971020) of who can + * discover the space, join the space, and preview the messages in named space + * where `spaceType` field is `SPACE`. If the existing space has a + * target audience, you can remove the audience and restrict space access by + * omitting a value for this field mask. To update access settings for a + * space, the authenticating user must be a space manager and omit all other + * field masks in your request. You can't update this field if the space is in + * [import + * mode](https://developers.google.com/workspace/chat/import-data-overview). + * To learn more, see [Make a space discoverable to specific + * users](https://developers.google.com/workspace/chat/space-target-audience). + * `access_settings.audience` is not supported with `useAdminAccess`. + * `permission_settings`: Supports changing the + * [permission settings](https://support.google.com/chat/answer/13340792) + * of a space. + * When updating permission settings, you can only specify + * `permissionSettings` field masks; you cannot update other field masks + * at the same time. + * The supported field masks include: + * - `permission_settings.manageMembersAndGroups` + * - `permission_settings.modifySpaceDetails` + * - `permission_settings.toggleHistory` + * - `permission_settings.useAtMentionAll` + * - `permission_settings.manageApps` + * - `permission_settings.manageWebhooks` + * - `permission_settings.replyMessages` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Some `FieldMask` values are not supported using admin access. For details, + * see the description of `update_mask`. + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseAdminAccess() + { + return $this->use_admin_access; + } + + /** + * Optional. When `true`, the method runs using the user's Google Workspace + * administrator privileges. + * The calling user must be a Google Workspace administrator with the + * [manage chat and spaces conversations + * privilege](https://support.google.com/a/answer/13369245). + * Requires the `chat.admin.spaces` [OAuth 2.0 + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). + * Some `FieldMask` values are not supported using admin access. For details, + * see the description of `update_mask`. + * + * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseAdminAccess($var) + { + GPBUtil::checkBool($var); + $this->use_admin_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php new file mode 100644 index 000000000000..76fd992d24a1 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php @@ -0,0 +1,105 @@ +google.chat.v1.UploadAttachmentRequest + */ +class UploadAttachmentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the Chat space in which the attachment is + * uploaded. Format "spaces/{space}". + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The filename of the attachment, including the file extension. + * + * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filename = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the Chat space in which the attachment is + * uploaded. Format "spaces/{space}". + * @type string $filename + * Required. The filename of the attachment, including the file extension. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the Chat space in which the attachment is + * uploaded. Format "spaces/{space}". + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the Chat space in which the attachment is + * uploaded. Format "spaces/{space}". + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The filename of the attachment, including the file extension. + * + * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFilename() + { + return $this->filename; + } + + /** + * Required. The filename of the attachment, including the file extension. + * + * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFilename($var) + { + GPBUtil::checkString($var, True); + $this->filename = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php new file mode 100644 index 000000000000..77c387d55586 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php @@ -0,0 +1,77 @@ +google.chat.v1.UploadAttachmentResponse + */ +class UploadAttachmentResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Reference to the uploaded attachment. + * + * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; + */ + protected $attachment_data_ref = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\AttachmentDataRef $attachment_data_ref + * Reference to the uploaded attachment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); + parent::__construct($data); + } + + /** + * Reference to the uploaded attachment. + * + * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; + * @return \Google\Apps\Chat\V1\AttachmentDataRef|null + */ + public function getAttachmentDataRef() + { + return $this->attachment_data_ref; + } + + public function hasAttachmentDataRef() + { + return isset($this->attachment_data_ref); + } + + public function clearAttachmentDataRef() + { + unset($this->attachment_data_ref); + } + + /** + * Reference to the uploaded attachment. + * + * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; + * @param \Google\Apps\Chat\V1\AttachmentDataRef $var + * @return $this + */ + public function setAttachmentDataRef($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\AttachmentDataRef::class); + $this->attachment_data_ref = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php new file mode 100644 index 000000000000..dc14c56c3197 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php @@ -0,0 +1,275 @@ +google.chat.v1.User + */ +class User extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for a Google Chat [user][google.chat.v1.User]. + * Format: `users/{user}`. `users/app` can be used as an alias for the calling + * app [bot][google.chat.v1.User.Type.BOT] user. + * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same + * user identifier as: + * - the `id` for the + * [Person](https://developers.google.com/people/api/rest/v1/people) in the + * People API. For example, `users/123456789` in Chat API represents the same + * person as the `123456789` Person profile ID in People API. + * - the `id` for a + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Admin SDK Directory API. + * - the user's email address can be used as an alias for `{user}` in API + * requests. For example, if the People API Person profile ID for + * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as + * an alias to reference `users/123456789`. Only the canonical resource name + * (for example `users/123456789`) will be returned from the API. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Output only. The user's display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Unique identifier of the user's Google Workspace domain. + * + * Generated from protobuf field string domain_id = 6; + */ + protected $domain_id = ''; + /** + * User type. + * + * Generated from protobuf field .google.chat.v1.User.Type type = 5; + */ + protected $type = 0; + /** + * Output only. When `true`, the user is deleted or their profile is not + * visible. + * + * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_anonymous = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for a Google Chat [user][google.chat.v1.User]. + * Format: `users/{user}`. `users/app` can be used as an alias for the calling + * app [bot][google.chat.v1.User.Type.BOT] user. + * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same + * user identifier as: + * - the `id` for the + * [Person](https://developers.google.com/people/api/rest/v1/people) in the + * People API. For example, `users/123456789` in Chat API represents the same + * person as the `123456789` Person profile ID in People API. + * - the `id` for a + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Admin SDK Directory API. + * - the user's email address can be used as an alias for `{user}` in API + * requests. For example, if the People API Person profile ID for + * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as + * an alias to reference `users/123456789`. Only the canonical resource name + * (for example `users/123456789`) will be returned from the API. + * @type string $display_name + * Output only. The user's display name. + * @type string $domain_id + * Unique identifier of the user's Google Workspace domain. + * @type int $type + * User type. + * @type bool $is_anonymous + * Output only. When `true`, the user is deleted or their profile is not + * visible. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\User::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for a Google Chat [user][google.chat.v1.User]. + * Format: `users/{user}`. `users/app` can be used as an alias for the calling + * app [bot][google.chat.v1.User.Type.BOT] user. + * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same + * user identifier as: + * - the `id` for the + * [Person](https://developers.google.com/people/api/rest/v1/people) in the + * People API. For example, `users/123456789` in Chat API represents the same + * person as the `123456789` Person profile ID in People API. + * - the `id` for a + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Admin SDK Directory API. + * - the user's email address can be used as an alias for `{user}` in API + * requests. For example, if the People API Person profile ID for + * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as + * an alias to reference `users/123456789`. Only the canonical resource name + * (for example `users/123456789`) will be returned from the API. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for a Google Chat [user][google.chat.v1.User]. + * Format: `users/{user}`. `users/app` can be used as an alias for the calling + * app [bot][google.chat.v1.User.Type.BOT] user. + * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same + * user identifier as: + * - the `id` for the + * [Person](https://developers.google.com/people/api/rest/v1/people) in the + * People API. For example, `users/123456789` in Chat API represents the same + * person as the `123456789` Person profile ID in People API. + * - the `id` for a + * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + * in the Admin SDK Directory API. + * - the user's email address can be used as an alias for `{user}` in API + * requests. For example, if the People API Person profile ID for + * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as + * an alias to reference `users/123456789`. Only the canonical resource name + * (for example `users/123456789`) will be returned from the API. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The user's display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The user's display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Unique identifier of the user's Google Workspace domain. + * + * Generated from protobuf field string domain_id = 6; + * @return string + */ + public function getDomainId() + { + return $this->domain_id; + } + + /** + * Unique identifier of the user's Google Workspace domain. + * + * Generated from protobuf field string domain_id = 6; + * @param string $var + * @return $this + */ + public function setDomainId($var) + { + GPBUtil::checkString($var, True); + $this->domain_id = $var; + + return $this; + } + + /** + * User type. + * + * Generated from protobuf field .google.chat.v1.User.Type type = 5; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * User type. + * + * Generated from protobuf field .google.chat.v1.User.Type type = 5; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\User\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. When `true`, the user is deleted or their profile is not + * visible. + * + * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsAnonymous() + { + return $this->is_anonymous; + } + + /** + * Output only. When `true`, the user is deleted or their profile is not + * visible. + * + * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsAnonymous($var) + { + GPBUtil::checkBool($var); + $this->is_anonymous = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php new file mode 100644 index 000000000000..d0eea9b21288 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php @@ -0,0 +1,59 @@ +google.chat.v1.User.Type + */ +class Type +{ + /** + * Default value for the enum. DO NOT USE. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Human user. + * + * Generated from protobuf enum HUMAN = 1; + */ + const HUMAN = 1; + /** + * Chat app user. + * + * Generated from protobuf enum BOT = 2; + */ + const BOT = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::HUMAN => 'HUMAN', + self::BOT => 'BOT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php new file mode 100644 index 000000000000..45ce4f9a943b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php @@ -0,0 +1,111 @@ +google.chat.v1.UserMentionMetadata + */ +class UserMentionMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The user mentioned. + * + * Generated from protobuf field .google.chat.v1.User user = 1; + */ + protected $user = null; + /** + * The type of user mention. + * + * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\User $user + * The user mentioned. + * @type int $type + * The type of user mention. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * The user mentioned. + * + * Generated from protobuf field .google.chat.v1.User user = 1; + * @return \Google\Apps\Chat\V1\User|null + */ + public function getUser() + { + return $this->user; + } + + public function hasUser() + { + return isset($this->user); + } + + public function clearUser() + { + unset($this->user); + } + + /** + * The user mentioned. + * + * Generated from protobuf field .google.chat.v1.User user = 1; + * @param \Google\Apps\Chat\V1\User $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); + $this->user = $var; + + return $this; + } + + /** + * The type of user mention. + * + * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of user mention. + * + * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\UserMentionMetadata\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php new file mode 100644 index 000000000000..4de547f4aefa --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php @@ -0,0 +1,59 @@ +google.chat.v1.UserMentionMetadata.Type + */ +class Type +{ + /** + * Default value for the enum. Don't use. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Add user to space. + * + * Generated from protobuf enum ADD = 1; + */ + const ADD = 1; + /** + * Mention user in space. + * + * Generated from protobuf enum MENTION = 2; + */ + const MENTION = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::ADD => 'ADD', + self::MENTION => 'MENTION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php new file mode 100644 index 000000000000..a1785c4691fb --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php @@ -0,0 +1,179 @@ +google.chat.v1.WidgetMarkup + */ +class WidgetMarkup extends \Google\Protobuf\Internal\Message +{ + /** + * A list of buttons. Buttons is also `oneof data` and only one of these + * fields should be set. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; + */ + private $buttons; + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph $text_paragraph + * Display a text paragraph in this widget. + * @type \Google\Apps\Chat\V1\WidgetMarkup\Image $image + * Display an image in this widget. + * @type \Google\Apps\Chat\V1\WidgetMarkup\KeyValue $key_value + * Display a key value item in this widget. + * @type \Google\Apps\Chat\V1\WidgetMarkup\Button[] $buttons + * A list of buttons. Buttons is also `oneof data` and only one of these + * fields should be set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * Display a text paragraph in this widget. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1; + * @return \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph|null + */ + public function getTextParagraph() + { + return $this->readOneof(1); + } + + public function hasTextParagraph() + { + return $this->hasOneof(1); + } + + /** + * Display a text paragraph in this widget. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1; + * @param \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph $var + * @return $this + */ + public function setTextParagraph($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Display an image in this widget. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Image image = 2; + * @return \Google\Apps\Chat\V1\WidgetMarkup\Image|null + */ + public function getImage() + { + return $this->readOneof(2); + } + + public function hasImage() + { + return $this->hasOneof(2); + } + + /** + * Display an image in this widget. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Image image = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\Image $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\Image::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Display a key value item in this widget. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.KeyValue key_value = 3; + * @return \Google\Apps\Chat\V1\WidgetMarkup\KeyValue|null + */ + public function getKeyValue() + { + return $this->readOneof(3); + } + + public function hasKeyValue() + { + return $this->hasOneof(3); + } + + /** + * Display a key value item in this widget. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.KeyValue key_value = 3; + * @param \Google\Apps\Chat\V1\WidgetMarkup\KeyValue $var + * @return $this + */ + public function setKeyValue($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\KeyValue::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A list of buttons. Buttons is also `oneof data` and only one of these + * fields should be set. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; + * @return RepeatedField<\Google\Apps\Chat\V1\WidgetMarkup\Button> + */ + public function getButtons() + { + return $this->buttons; + } + + /** + * A list of buttons. Buttons is also `oneof data` and only one of these + * fields should be set. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; + * @param \Google\Apps\Chat\V1\WidgetMarkup\Button[] $var + * @return $this + */ + public function setButtons($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup\Button::class); + $this->buttons = $arr; + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php new file mode 100644 index 000000000000..82379a57d0c7 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php @@ -0,0 +1,108 @@ +google.chat.v1.WidgetMarkup.Button + */ +class Button extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\WidgetMarkup\TextButton $text_button + * A button with text and `onclick` action. + * @type \Google\Apps\Chat\V1\WidgetMarkup\ImageButton $image_button + * A button with image and `onclick` action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * A button with text and `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextButton text_button = 1; + * @return \Google\Apps\Chat\V1\WidgetMarkup\TextButton|null + */ + public function getTextButton() + { + return $this->readOneof(1); + } + + public function hasTextButton() + { + return $this->hasOneof(1); + } + + /** + * A button with text and `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextButton text_button = 1; + * @param \Google\Apps\Chat\V1\WidgetMarkup\TextButton $var + * @return $this + */ + public function setTextButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\TextButton::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A button with image and `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.ImageButton image_button = 2; + * @return \Google\Apps\Chat\V1\WidgetMarkup\ImageButton|null + */ + public function getImageButton() + { + return $this->readOneof(2); + } + + public function hasImageButton() + { + return $this->hasOneof(2); + } + + /** + * A button with image and `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.ImageButton image_button = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\ImageButton $var + * @return $this + */ + public function setImageButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\ImageButton::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php new file mode 100644 index 000000000000..8480177a276e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php @@ -0,0 +1,114 @@ +google.chat.v1.WidgetMarkup.FormAction + */ +class FormAction extends \Google\Protobuf\Internal\Message +{ + /** + * The method name is used to identify which part of the form triggered the + * form submission. This information is echoed back to the Chat app as part + * of the card click event. You can use the same method name for several + * elements that trigger a common behavior. + * + * Generated from protobuf field string action_method_name = 1; + */ + protected $action_method_name = ''; + /** + * List of action parameters. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; + */ + private $parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $action_method_name + * The method name is used to identify which part of the form triggered the + * form submission. This information is echoed back to the Chat app as part + * of the card click event. You can use the same method name for several + * elements that trigger a common behavior. + * @type \Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter[] $parameters + * List of action parameters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * The method name is used to identify which part of the form triggered the + * form submission. This information is echoed back to the Chat app as part + * of the card click event. You can use the same method name for several + * elements that trigger a common behavior. + * + * Generated from protobuf field string action_method_name = 1; + * @return string + */ + public function getActionMethodName() + { + return $this->action_method_name; + } + + /** + * The method name is used to identify which part of the form triggered the + * form submission. This information is echoed back to the Chat app as part + * of the card click event. You can use the same method name for several + * elements that trigger a common behavior. + * + * Generated from protobuf field string action_method_name = 1; + * @param string $var + * @return $this + */ + public function setActionMethodName($var) + { + GPBUtil::checkString($var, True); + $this->action_method_name = $var; + + return $this; + } + + /** + * List of action parameters. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; + * @return RepeatedField<\Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * List of action parameters. + * + * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter::class); + $this->parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php new file mode 100644 index 000000000000..b82cee40e4d8 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php @@ -0,0 +1,104 @@ +google.chat.v1.WidgetMarkup.FormAction.ActionParameter + */ +class ActionParameter extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the parameter for the action script. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The value of the parameter. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The name of the parameter for the action script. + * @type string $value + * The value of the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * The name of the parameter for the action script. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The name of the parameter for the action script. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The value of the parameter. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value of the parameter. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php new file mode 100644 index 000000000000..0f9a235ff28d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php @@ -0,0 +1,195 @@ +google.chat.v1.WidgetMarkup.Icon + */ +class Icon +{ + /** + * Generated from protobuf enum ICON_UNSPECIFIED = 0; + */ + const ICON_UNSPECIFIED = 0; + /** + * Generated from protobuf enum AIRPLANE = 1; + */ + const AIRPLANE = 1; + /** + * Generated from protobuf enum BOOKMARK = 26; + */ + const BOOKMARK = 26; + /** + * Generated from protobuf enum BUS = 25; + */ + const BUS = 25; + /** + * Generated from protobuf enum CAR = 9; + */ + const CAR = 9; + /** + * Generated from protobuf enum CLOCK = 2; + */ + const CLOCK = 2; + /** + * Generated from protobuf enum CONFIRMATION_NUMBER_ICON = 12; + */ + const CONFIRMATION_NUMBER_ICON = 12; + /** + * Generated from protobuf enum DOLLAR = 14; + */ + const DOLLAR = 14; + /** + * Generated from protobuf enum DESCRIPTION = 27; + */ + const DESCRIPTION = 27; + /** + * Generated from protobuf enum EMAIL = 10; + */ + const EMAIL = 10; + /** + * Generated from protobuf enum EVENT_PERFORMER = 20; + */ + const EVENT_PERFORMER = 20; + /** + * Generated from protobuf enum EVENT_SEAT = 21; + */ + const EVENT_SEAT = 21; + /** + * Generated from protobuf enum FLIGHT_ARRIVAL = 16; + */ + const FLIGHT_ARRIVAL = 16; + /** + * Generated from protobuf enum FLIGHT_DEPARTURE = 15; + */ + const FLIGHT_DEPARTURE = 15; + /** + * Generated from protobuf enum HOTEL = 6; + */ + const HOTEL = 6; + /** + * Generated from protobuf enum HOTEL_ROOM_TYPE = 17; + */ + const HOTEL_ROOM_TYPE = 17; + /** + * Generated from protobuf enum INVITE = 19; + */ + const INVITE = 19; + /** + * Generated from protobuf enum MAP_PIN = 3; + */ + const MAP_PIN = 3; + /** + * Generated from protobuf enum MEMBERSHIP = 24; + */ + const MEMBERSHIP = 24; + /** + * Generated from protobuf enum MULTIPLE_PEOPLE = 18; + */ + const MULTIPLE_PEOPLE = 18; + /** + * Generated from protobuf enum OFFER = 30; + */ + const OFFER = 30; + /** + * Generated from protobuf enum PERSON = 11; + */ + const PERSON = 11; + /** + * Generated from protobuf enum PHONE = 13; + */ + const PHONE = 13; + /** + * Generated from protobuf enum RESTAURANT_ICON = 7; + */ + const RESTAURANT_ICON = 7; + /** + * Generated from protobuf enum SHOPPING_CART = 8; + */ + const SHOPPING_CART = 8; + /** + * Generated from protobuf enum STAR = 5; + */ + const STAR = 5; + /** + * Generated from protobuf enum STORE = 22; + */ + const STORE = 22; + /** + * Generated from protobuf enum TICKET = 4; + */ + const TICKET = 4; + /** + * Generated from protobuf enum TRAIN = 23; + */ + const TRAIN = 23; + /** + * Generated from protobuf enum VIDEO_CAMERA = 28; + */ + const VIDEO_CAMERA = 28; + /** + * Generated from protobuf enum VIDEO_PLAY = 29; + */ + const VIDEO_PLAY = 29; + + private static $valueToName = [ + self::ICON_UNSPECIFIED => 'ICON_UNSPECIFIED', + self::AIRPLANE => 'AIRPLANE', + self::BOOKMARK => 'BOOKMARK', + self::BUS => 'BUS', + self::CAR => 'CAR', + self::CLOCK => 'CLOCK', + self::CONFIRMATION_NUMBER_ICON => 'CONFIRMATION_NUMBER_ICON', + self::DOLLAR => 'DOLLAR', + self::DESCRIPTION => 'DESCRIPTION', + self::EMAIL => 'EMAIL', + self::EVENT_PERFORMER => 'EVENT_PERFORMER', + self::EVENT_SEAT => 'EVENT_SEAT', + self::FLIGHT_ARRIVAL => 'FLIGHT_ARRIVAL', + self::FLIGHT_DEPARTURE => 'FLIGHT_DEPARTURE', + self::HOTEL => 'HOTEL', + self::HOTEL_ROOM_TYPE => 'HOTEL_ROOM_TYPE', + self::INVITE => 'INVITE', + self::MAP_PIN => 'MAP_PIN', + self::MEMBERSHIP => 'MEMBERSHIP', + self::MULTIPLE_PEOPLE => 'MULTIPLE_PEOPLE', + self::OFFER => 'OFFER', + self::PERSON => 'PERSON', + self::PHONE => 'PHONE', + self::RESTAURANT_ICON => 'RESTAURANT_ICON', + self::SHOPPING_CART => 'SHOPPING_CART', + self::STAR => 'STAR', + self::STORE => 'STORE', + self::TICKET => 'TICKET', + self::TRAIN => 'TRAIN', + self::VIDEO_CAMERA => 'VIDEO_CAMERA', + self::VIDEO_PLAY => 'VIDEO_PLAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php new file mode 100644 index 000000000000..1c4e75b255fd --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php @@ -0,0 +1,157 @@ +google.chat.v1.WidgetMarkup.Image + */ +class Image extends \Google\Protobuf\Internal\Message +{ + /** + * The URL of the image. + * + * Generated from protobuf field string image_url = 1; + */ + protected $image_url = ''; + /** + * The `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + */ + protected $on_click = null; + /** + * The aspect ratio of this image (width and height). This field lets you + * reserve the right height for the image while waiting for it to load. + * It's not meant to override the built-in aspect ratio of the image. + * If unset, the server fills it by prefetching the image. + * + * Generated from protobuf field double aspect_ratio = 3; + */ + protected $aspect_ratio = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $image_url + * The URL of the image. + * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click + * The `onclick` action. + * @type float $aspect_ratio + * The aspect ratio of this image (width and height). This field lets you + * reserve the right height for the image while waiting for it to load. + * It's not meant to override the built-in aspect ratio of the image. + * If unset, the server fills it by prefetching the image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * The URL of the image. + * + * Generated from protobuf field string image_url = 1; + * @return string + */ + public function getImageUrl() + { + return $this->image_url; + } + + /** + * The URL of the image. + * + * Generated from protobuf field string image_url = 1; + * @param string $var + * @return $this + */ + public function setImageUrl($var) + { + GPBUtil::checkString($var, True); + $this->image_url = $var; + + return $this; + } + + /** + * The `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * The `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * The aspect ratio of this image (width and height). This field lets you + * reserve the right height for the image while waiting for it to load. + * It's not meant to override the built-in aspect ratio of the image. + * If unset, the server fills it by prefetching the image. + * + * Generated from protobuf field double aspect_ratio = 3; + * @return float + */ + public function getAspectRatio() + { + return $this->aspect_ratio; + } + + /** + * The aspect ratio of this image (width and height). This field lets you + * reserve the right height for the image while waiting for it to load. + * It's not meant to override the built-in aspect ratio of the image. + * If unset, the server fills it by prefetching the image. + * + * Generated from protobuf field double aspect_ratio = 3; + * @param float $var + * @return $this + */ + public function setAspectRatio($var) + { + GPBUtil::checkDouble($var); + $this->aspect_ratio = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php new file mode 100644 index 000000000000..41695fdd820f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php @@ -0,0 +1,193 @@ +google.chat.v1.WidgetMarkup.ImageButton + */ +class ImageButton extends \Google\Protobuf\Internal\Message +{ + /** + * The `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + */ + protected $on_click = null; + /** + * The name of this `image_button` that's used for accessibility. + * Default value is provided if this name isn't specified. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + protected $icons; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $icon + * The icon specified by an `enum` that indices to an icon provided by + * Chat API. + * @type string $icon_url + * The icon specified by a URL. + * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click + * The `onclick` action. + * @type string $name + * The name of this `image_button` that's used for accessibility. + * Default value is provided if this name isn't specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * The icon specified by an `enum` that indices to an icon provided by + * Chat API. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; + * @return int + */ + public function getIcon() + { + return $this->readOneof(1); + } + + public function hasIcon() + { + return $this->hasOneof(1); + } + + /** + * The icon specified by an `enum` that indices to an icon provided by + * Chat API. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; + * @param int $var + * @return $this + */ + public function setIcon($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\WidgetMarkup\Icon::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The icon specified by a URL. + * + * Generated from protobuf field string icon_url = 3; + * @return string + */ + public function getIconUrl() + { + return $this->readOneof(3); + } + + public function hasIconUrl() + { + return $this->hasOneof(3); + } + + /** + * The icon specified by a URL. + * + * Generated from protobuf field string icon_url = 3; + * @param string $var + * @return $this + */ + public function setIconUrl($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * The `onclick` action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * The name of this `image_button` that's used for accessibility. + * Default value is provided if this name isn't specified. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this `image_button` that's used for accessibility. + * Default value is provided if this name isn't specified. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * @return string + */ + public function getIcons() + { + return $this->whichOneof("icons"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php new file mode 100644 index 000000000000..412e2f2ce735 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php @@ -0,0 +1,422 @@ +google.chat.v1.WidgetMarkup.KeyValue + */ +class KeyValue extends \Google\Protobuf\Internal\Message +{ + /** + * The text of the top label. Formatted text supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string top_label = 3; + */ + protected $top_label = ''; + /** + * The text of the content. Formatted text supported and always required. + * For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string content = 4; + */ + protected $content = ''; + /** + * If the content should be multiline. + * + * Generated from protobuf field bool content_multiline = 9; + */ + protected $content_multiline = false; + /** + * The text of the bottom label. Formatted text supported. For more + * information about formatting text, see [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string bottom_label = 5; + */ + protected $bottom_label = ''; + /** + * The `onclick` action. Only the top label, bottom label, and content + * region are clickable. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; + */ + protected $on_click = null; + protected $icons; + protected $control; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $icon + * An enum value that's replaced by the Chat API with the + * corresponding icon image. + * @type string $icon_url + * The icon specified by a URL. + * @type string $top_label + * The text of the top label. Formatted text supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * @type string $content + * The text of the content. Formatted text supported and always required. + * For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * @type bool $content_multiline + * If the content should be multiline. + * @type string $bottom_label + * The text of the bottom label. Formatted text supported. For more + * information about formatting text, see [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click + * The `onclick` action. Only the top label, bottom label, and content + * region are clickable. + * @type \Google\Apps\Chat\V1\WidgetMarkup\Button $button + * A button that can be clicked to trigger an action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * An enum value that's replaced by the Chat API with the + * corresponding icon image. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; + * @return int + */ + public function getIcon() + { + return $this->readOneof(1); + } + + public function hasIcon() + { + return $this->hasOneof(1); + } + + /** + * An enum value that's replaced by the Chat API with the + * corresponding icon image. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; + * @param int $var + * @return $this + */ + public function setIcon($var) + { + GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\WidgetMarkup\Icon::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The icon specified by a URL. + * + * Generated from protobuf field string icon_url = 2; + * @return string + */ + public function getIconUrl() + { + return $this->readOneof(2); + } + + public function hasIconUrl() + { + return $this->hasOneof(2); + } + + /** + * The icon specified by a URL. + * + * Generated from protobuf field string icon_url = 2; + * @param string $var + * @return $this + */ + public function setIconUrl($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The text of the top label. Formatted text supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string top_label = 3; + * @return string + */ + public function getTopLabel() + { + return $this->top_label; + } + + /** + * The text of the top label. Formatted text supported. For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string top_label = 3; + * @param string $var + * @return $this + */ + public function setTopLabel($var) + { + GPBUtil::checkString($var, True); + $this->top_label = $var; + + return $this; + } + + /** + * The text of the content. Formatted text supported and always required. + * For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string content = 4; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * The text of the content. Formatted text supported and always required. + * For more information + * about formatting text, see + * [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string content = 4; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, True); + $this->content = $var; + + return $this; + } + + /** + * If the content should be multiline. + * + * Generated from protobuf field bool content_multiline = 9; + * @return bool + */ + public function getContentMultiline() + { + return $this->content_multiline; + } + + /** + * If the content should be multiline. + * + * Generated from protobuf field bool content_multiline = 9; + * @param bool $var + * @return $this + */ + public function setContentMultiline($var) + { + GPBUtil::checkBool($var); + $this->content_multiline = $var; + + return $this; + } + + /** + * The text of the bottom label. Formatted text supported. For more + * information about formatting text, see [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string bottom_label = 5; + * @return string + */ + public function getBottomLabel() + { + return $this->bottom_label; + } + + /** + * The text of the bottom label. Formatted text supported. For more + * information about formatting text, see [Formatting text in Google Chat + * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) + * and + * [Formatting + * text in Google Workspace + * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). + * + * Generated from protobuf field string bottom_label = 5; + * @param string $var + * @return $this + */ + public function setBottomLabel($var) + { + GPBUtil::checkString($var, True); + $this->bottom_label = $var; + + return $this; + } + + /** + * The `onclick` action. Only the top label, bottom label, and content + * region are clickable. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; + * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * The `onclick` action. Only the top label, bottom label, and content + * region are clickable. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; + * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); + $this->on_click = $var; + + return $this; + } + + /** + * A button that can be clicked to trigger an action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Button button = 7; + * @return \Google\Apps\Chat\V1\WidgetMarkup\Button|null + */ + public function getButton() + { + return $this->readOneof(7); + } + + public function hasButton() + { + return $this->hasOneof(7); + } + + /** + * A button that can be clicked to trigger an action. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.Button button = 7; + * @param \Google\Apps\Chat\V1\WidgetMarkup\Button $var + * @return $this + */ + public function setButton($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\Button::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * @return string + */ + public function getIcons() + { + return $this->whichOneof("icons"); + } + + /** + * @return string + */ + public function getControl() + { + return $this->whichOneof("control"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php new file mode 100644 index 000000000000..45a8757095cc --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php @@ -0,0 +1,108 @@ +google.chat.v1.WidgetMarkup.OnClick + */ +class OnClick extends \Google\Protobuf\Internal\Message +{ + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Apps\Chat\V1\WidgetMarkup\FormAction $action + * A form action is triggered by this `onclick` action if specified. + * @type \Google\Apps\Chat\V1\WidgetMarkup\OpenLink $open_link + * This `onclick` action triggers an open link action if specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * A form action is triggered by this `onclick` action if specified. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.FormAction action = 1; + * @return \Google\Apps\Chat\V1\WidgetMarkup\FormAction|null + */ + public function getAction() + { + return $this->readOneof(1); + } + + public function hasAction() + { + return $this->hasOneof(1); + } + + /** + * A form action is triggered by this `onclick` action if specified. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.FormAction action = 1; + * @param \Google\Apps\Chat\V1\WidgetMarkup\FormAction $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\FormAction::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * This `onclick` action triggers an open link action if specified. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OpenLink open_link = 2; + * @return \Google\Apps\Chat\V1\WidgetMarkup\OpenLink|null + */ + public function getOpenLink() + { + return $this->readOneof(2); + } + + public function hasOpenLink() + { + return $this->hasOneof(2); + } + + /** + * This `onclick` action triggers an open link action if specified. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OpenLink open_link = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\OpenLink $var + * @return $this + */ + public function setOpenLink($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OpenLink::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php new file mode 100644 index 000000000000..814de2c8982e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php @@ -0,0 +1,67 @@ +google.chat.v1.WidgetMarkup.OpenLink + */ +class OpenLink extends \Google\Protobuf\Internal\Message +{ + /** + * The URL to open. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * The URL to open. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * The URL to open. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The URL to open. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php new file mode 100644 index 000000000000..6970e4d2a230 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php @@ -0,0 +1,111 @@ +google.chat.v1.WidgetMarkup.TextButton + */ +class TextButton extends \Google\Protobuf\Internal\Message +{ + /** + * The text of the button. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * The `onclick` action of the button. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + */ + protected $on_click = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * The text of the button. + * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click + * The `onclick` action of the button. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * The text of the button. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The text of the button. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * The `onclick` action of the button. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null + */ + public function getOnClick() + { + return $this->on_click; + } + + public function hasOnClick() + { + return isset($this->on_click); + } + + public function clearOnClick() + { + unset($this->on_click); + } + + /** + * The `onclick` action of the button. + * + * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; + * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var + * @return $this + */ + public function setOnClick($var) + { + GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); + $this->on_click = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php new file mode 100644 index 000000000000..d853c1596d59 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php @@ -0,0 +1,67 @@ +google.chat.v1.WidgetMarkup.TextParagraph + */ +class TextParagraph extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php new file mode 100644 index 000000000000..a26fae04128b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php @@ -0,0 +1,86 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CompleteImportSpaceResponse $response */ + $response = $chatServiceClient->completeImportSpace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::spaceName('[SPACE]'); + + complete_import_space_sample($formattedName); +} +// [END chat_v1_generated_ChatService_CompleteImportSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php new file mode 100644 index 000000000000..793f3a8bd4fb --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php @@ -0,0 +1,73 @@ +setCustomEmoji($customEmoji); + + // Call the API and handle any network failures. + try { + /** @var CustomEmoji $response */ + $response = $chatServiceClient->createCustomEmoji($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_CreateCustomEmoji_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php new file mode 100644 index 000000000000..6dfc7b2ea98a --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php @@ -0,0 +1,119 @@ +setParent($formattedParent) + ->setMembership($membership); + + // Call the API and handle any network failures. + try { + /** @var Membership $response */ + $response = $chatServiceClient->createMembership($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::spaceName('[SPACE]'); + + create_membership_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_CreateMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php new file mode 100644 index 000000000000..75dc77b2c7f7 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php @@ -0,0 +1,118 @@ +setParent($formattedParent) + ->setMessage($message); + + // Call the API and handle any network failures. + try { + /** @var Message $response */ + $response = $chatServiceClient->createMessage($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::spaceName('[SPACE]'); + + create_message_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_CreateMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php new file mode 100644 index 000000000000..81fcebb672bf --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php @@ -0,0 +1,90 @@ +setEmoji($reactionEmoji); + $request = (new CreateReactionRequest()) + ->setParent($formattedParent) + ->setReaction($reaction); + + // Call the API and handle any network failures. + try { + /** @var Reaction $response */ + $response = $chatServiceClient->createReaction($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); + + create_reaction_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_CreateReaction_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php new file mode 100644 index 000000000000..dd40059a7833 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php @@ -0,0 +1,90 @@ +setType($sectionType); + $request = (new CreateSectionRequest()) + ->setParent($formattedParent) + ->setSection($section); + + // Call the API and handle any network failures. + try { + /** @var Section $response */ + $response = $chatServiceClient->createSection($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::userName('[USER]'); + $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; + + create_section_sample($formattedParent, $sectionType); +} +// [END chat_v1_generated_ChatService_CreateSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php new file mode 100644 index 000000000000..1e0d27f576c0 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php @@ -0,0 +1,100 @@ +setSpace($space); + + // Call the API and handle any network failures. + try { + /** @var Space $response */ + $response = $chatServiceClient->createSpace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_CreateSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php new file mode 100644 index 000000000000..c38325bebdd7 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php @@ -0,0 +1,93 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $chatServiceClient->deleteCustomEmoji($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::customEmojiName('[CUSTOM_EMOJI]'); + + delete_custom_emoji_sample($formattedName); +} +// [END chat_v1_generated_ChatService_DeleteCustomEmoji_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php new file mode 100644 index 000000000000..c71a4ba2f8ed --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php @@ -0,0 +1,122 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Membership $response */ + $response = $chatServiceClient->deleteMembership($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::membershipName('[SPACE]', '[MEMBER]'); + + delete_membership_sample($formattedName); +} +// [END chat_v1_generated_ChatService_DeleteMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php new file mode 100644 index 000000000000..700a9febb75f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php @@ -0,0 +1,96 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $chatServiceClient->deleteMessage($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); + + delete_message_sample($formattedName); +} +// [END chat_v1_generated_ChatService_DeleteMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php new file mode 100644 index 000000000000..cbbd6f7bb766 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $chatServiceClient->deleteReaction($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); + + delete_reaction_sample($formattedName); +} +// [END chat_v1_generated_ChatService_DeleteReaction_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php new file mode 100644 index 000000000000..e02d13a66fbb --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $chatServiceClient->deleteSection($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::sectionName('[USER]', '[SECTION]'); + + delete_section_sample($formattedName); +} +// [END chat_v1_generated_ChatService_DeleteSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php new file mode 100644 index 000000000000..b3b25f0dcb06 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php @@ -0,0 +1,97 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $chatServiceClient->deleteSpace($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::spaceName('[SPACE]'); + + delete_space_sample($formattedName); +} +// [END chat_v1_generated_ChatService_DeleteSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php new file mode 100644 index 000000000000..0cffd3446718 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php @@ -0,0 +1,109 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var Space $response */ + $response = $chatServiceClient->findDirectMessage($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + find_direct_message_sample($name); +} +// [END chat_v1_generated_ChatService_FindDirectMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php new file mode 100644 index 000000000000..296088a9565b --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php @@ -0,0 +1,81 @@ +findGroupChats($request); + + /** @var Space $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_FindGroupChats_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php new file mode 100644 index 000000000000..5ae1b89edba3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Attachment $response */ + $response = $chatServiceClient->getAttachment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); + + get_attachment_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetAttachment_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php new file mode 100644 index 000000000000..2d190957cbd0 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php @@ -0,0 +1,92 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomEmoji $response */ + $response = $chatServiceClient->getCustomEmoji($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::customEmojiName('[CUSTOM_EMOJI]'); + + get_custom_emoji_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetCustomEmoji_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php new file mode 100644 index 000000000000..10e2e5ec7a53 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php @@ -0,0 +1,104 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Membership $response */ + $response = $chatServiceClient->getMembership($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::membershipName('[SPACE]', '[MEMBER]'); + + get_membership_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php new file mode 100644 index 000000000000..9c3b57731762 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php @@ -0,0 +1,105 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Message $response */ + $response = $chatServiceClient->getMessage($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); + + get_message_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php new file mode 100644 index 000000000000..918d242bc589 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php @@ -0,0 +1,104 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Space $response */ + $response = $chatServiceClient->getSpace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::spaceName('[SPACE]'); + + get_space_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php new file mode 100644 index 000000000000..ad179edf7656 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php @@ -0,0 +1,117 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var SpaceEvent $response */ + $response = $chatServiceClient->getSpaceEvent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::spaceEventName('[SPACE]', '[SPACE_EVENT]'); + + get_space_event_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetSpaceEvent_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php new file mode 100644 index 000000000000..f6cc10633818 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var SpaceNotificationSetting $response */ + $response = $chatServiceClient->getSpaceNotificationSetting($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::spaceNotificationSettingName('[USER]', '[SPACE]'); + + get_space_notification_setting_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetSpaceNotificationSetting_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php new file mode 100644 index 000000000000..9132caf40543 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php @@ -0,0 +1,96 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var SpaceReadState $response */ + $response = $chatServiceClient->getSpaceReadState($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::spaceReadStateName('[USER]', '[SPACE]'); + + get_space_read_state_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetSpaceReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php new file mode 100644 index 000000000000..8dd5930986d1 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php @@ -0,0 +1,97 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ThreadReadState $response */ + $response = $chatServiceClient->getThreadReadState($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); + + get_thread_read_state_sample($formattedName); +} +// [END chat_v1_generated_ChatService_GetThreadReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php new file mode 100644 index 000000000000..25dca19abb7d --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php @@ -0,0 +1,77 @@ +listCustomEmojis($request); + + /** @var CustomEmoji $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_ListCustomEmojis_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php new file mode 100644 index 000000000000..40804d742230 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php @@ -0,0 +1,112 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $chatServiceClient->listMemberships($request); + + /** @var Membership $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::spaceName('[SPACE]'); + + list_memberships_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_ListMemberships_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php new file mode 100644 index 000000000000..7c080ac5661c --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php @@ -0,0 +1,105 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $chatServiceClient->listMessages($request); + + /** @var Message $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::spaceName('[SPACE]'); + + list_messages_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_ListMessages_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php new file mode 100644 index 000000000000..cf5184295493 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php @@ -0,0 +1,90 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $chatServiceClient->listReactions($request); + + /** @var Reaction $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); + + list_reactions_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_ListReactions_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php new file mode 100644 index 000000000000..cac0175e4bdc --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php @@ -0,0 +1,94 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $chatServiceClient->listSectionItems($request); + + /** @var SectionItem $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::sectionName('[USER]', '[SECTION]'); + + list_section_items_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_ListSectionItems_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php new file mode 100644 index 000000000000..a981e2e0c0b9 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php @@ -0,0 +1,97 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $chatServiceClient->listSections($request); + + /** @var Section $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::userName('[USER]'); + + list_sections_sample($formattedParent); +} +// [END chat_v1_generated_ChatService_ListSections_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php new file mode 100644 index 000000000000..77a82efb68cf --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php @@ -0,0 +1,175 @@ +setParent($formattedParent) + ->setFilter($filter); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $chatServiceClient->listSpaceEvents($request); + + /** @var SpaceEvent $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::spaceName('[SPACE]'); + $filter = '[FILTER]'; + + list_space_events_sample($formattedParent, $filter); +} +// [END chat_v1_generated_ChatService_ListSpaceEvents_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php new file mode 100644 index 000000000000..e52433d7aea3 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php @@ -0,0 +1,83 @@ +listSpaces($request); + + /** @var Space $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_ListSpaces_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php new file mode 100644 index 000000000000..7f110b62ea19 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php @@ -0,0 +1,89 @@ +setName($formattedName) + ->setTargetSection($formattedTargetSection); + + // Call the API and handle any network failures. + try { + /** @var MoveSectionItemResponse $response */ + $response = $chatServiceClient->moveSectionItem($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::sectionItemName('[USER]', '[SECTION]', '[ITEM]'); + $formattedTargetSection = ChatServiceClient::sectionName('[USER]', '[SECTION]'); + + move_section_item_sample($formattedName, $formattedTargetSection); +} +// [END chat_v1_generated_ChatService_MoveSectionItem_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php new file mode 100644 index 000000000000..8a0812a6fa7e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PositionSectionResponse $response */ + $response = $chatServiceClient->positionSection($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChatServiceClient::sectionName('[USER]', '[SECTION]'); + + position_section_sample($formattedName); +} +// [END chat_v1_generated_ChatService_PositionSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php new file mode 100644 index 000000000000..34290aba9b98 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php @@ -0,0 +1,154 @@ +`, `<=`, `>=`. + * + * `customer` is required and is used to indicate which customer + * to fetch spaces from. `customers/my_customer` is the only supported value. + * + * `display_name` only accepts the `HAS` (`:`) operator. The text to + * match is first tokenized into tokens and each token is prefix-matched + * case-insensitively and independently as a substring anywhere in the space's + * `display_name`. For example, `Fun Eve` matches `Fun event` or `The + * evening was fun`, but not `notFun event` or `even`. + * + * `external_user_allowed` accepts either `true` or `false`. + * + * `space_history_state` only accepts values from the [`historyState`] + * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) + * field of a `space` resource. + * + * `space_type` is required and the only valid value is `SPACE`. + * + * Across different fields, only `AND` operators are supported. A valid + * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid + * example is `space_type = "SPACE" OR display_name:"Hello"`. + * + * Among the same field, + * `space_type` doesn't support `AND` or `OR` operators. + * `display_name`, 'space_history_state', and 'external_user_allowed' only + * support `OR` operators. + * `last_active_time` and `create_time` support both `AND` and `OR` operators. + * `AND` can only be used to represent an interval, such as `last_active_time + * < "2022-01-01T00:00:00+00:00" AND last_active_time > + * "2023-01-01T00:00:00+00:00"`. + * + * The following example queries are valid: + * + * ``` + * customer = "customers/my_customer" AND space_type = "SPACE" + * + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * display_name:"Hello World" + * + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > + * "2022-01-01T00:00:00+00:00") + * + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (display_name:"Hello World" OR display_name:"Fun event") AND + * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < + * "2022-01-01T00:00:00+00:00") + * + * customer = "customers/my_customer" AND space_type = "SPACE" AND + * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < + * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND + * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") + * ``` + */ +function search_spaces_sample(string $query): void +{ + // Create a client. + $chatServiceClient = new ChatServiceClient(); + + // Prepare the request message. + $request = (new SearchSpacesRequest()) + ->setQuery($query); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $chatServiceClient->searchSpaces($request); + + /** @var Space $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $query = '[QUERY]'; + + search_spaces_sample($query); +} +// [END chat_v1_generated_ChatService_SearchSpaces_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php new file mode 100644 index 000000000000..28377f1c6b68 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php @@ -0,0 +1,115 @@ +setSpace($space); + + // Call the API and handle any network failures. + try { + /** @var Space $response */ + $response = $chatServiceClient->setUpSpace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_SetUpSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php new file mode 100644 index 000000000000..e2450c3cdf6e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php @@ -0,0 +1,85 @@ +setMembership($membership) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Membership $response */ + $response = $chatServiceClient->updateMembership($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_UpdateMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php new file mode 100644 index 000000000000..dbe452e31387 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php @@ -0,0 +1,85 @@ +setMessage($message) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Message $response */ + $response = $chatServiceClient->updateMessage($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_UpdateMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php new file mode 100644 index 000000000000..851e01622f44 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php @@ -0,0 +1,85 @@ +setType($sectionType); + $updateMask = new FieldMask(); + $request = (new UpdateSectionRequest()) + ->setSection($section) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Section $response */ + $response = $chatServiceClient->updateSection($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; + + update_section_sample($sectionType); +} +// [END chat_v1_generated_ChatService_UpdateSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php new file mode 100644 index 000000000000..8fa4b631ddce --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php @@ -0,0 +1,95 @@ +setSpace($space) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Space $response */ + $response = $chatServiceClient->updateSpace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_UpdateSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php new file mode 100644 index 000000000000..d82cf0187137 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php @@ -0,0 +1,71 @@ +setSpaceNotificationSetting($spaceNotificationSetting) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var SpaceNotificationSetting $response */ + $response = $chatServiceClient->updateSpaceNotificationSetting($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_UpdateSpaceNotificationSetting_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php new file mode 100644 index 000000000000..4f4748bc4278 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php @@ -0,0 +1,71 @@ +setSpaceReadState($spaceReadState) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var SpaceReadState $response */ + $response = $chatServiceClient->updateSpaceReadState($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END chat_v1_generated_ChatService_UpdateSpaceReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php new file mode 100644 index 000000000000..4364e108967e --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php @@ -0,0 +1,90 @@ +setParent($formattedParent) + ->setFilename($filename); + + // Call the API and handle any network failures. + try { + /** @var UploadAttachmentResponse $response */ + $response = $chatServiceClient->uploadAttachment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChatServiceClient::spaceName('[SPACE]'); + $filename = '[FILENAME]'; + + upload_attachment_sample($formattedParent, $filename); +} +// [END chat_v1_generated_ChatService_UploadAttachment_sync] diff --git a/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php b/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php new file mode 100644 index 000000000000..86524fd55102 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php @@ -0,0 +1,2632 @@ + completeImportSpaceAsync(CompleteImportSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomEmojiAsync(CreateCustomEmojiRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMessageAsync(CreateMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface createReactionAsync(CreateReactionRequest $request, array $optionalArgs = []) + * @method PromiseInterface
createSectionAsync(CreateSectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCustomEmojiAsync(DeleteCustomEmojiRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMembershipAsync(DeleteMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMessageAsync(DeleteMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteReactionAsync(DeleteReactionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSectionAsync(DeleteSectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSpaceAsync(DeleteSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface findDirectMessageAsync(FindDirectMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface findGroupChatsAsync(FindGroupChatsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomEmojiAsync(GetCustomEmojiRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMembershipAsync(GetMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMessageAsync(GetMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceEventAsync(GetSpaceEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceNotificationSettingAsync(GetSpaceNotificationSettingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceReadStateAsync(GetSpaceReadStateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getThreadReadStateAsync(GetThreadReadStateRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomEmojisAsync(ListCustomEmojisRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMembershipsAsync(ListMembershipsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReactionsAsync(ListReactionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSectionItemsAsync(ListSectionItemsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSectionsAsync(ListSectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSpaceEventsAsync(ListSpaceEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSpacesAsync(ListSpacesRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveSectionItemAsync(MoveSectionItemRequest $request, array $optionalArgs = []) + * @method PromiseInterface positionSectionAsync(PositionSectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchSpacesAsync(SearchSpacesRequest $request, array $optionalArgs = []) + * @method PromiseInterface setUpSpaceAsync(SetUpSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMembershipAsync(UpdateMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMessageAsync(UpdateMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface
updateSectionAsync(UpdateSectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpaceNotificationSettingAsync(UpdateSpaceNotificationSettingRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpaceReadStateAsync(UpdateSpaceReadStateRequest $request, array $optionalArgs = []) + * @method PromiseInterface uploadAttachmentAsync(UploadAttachmentRequest $request, array $optionalArgs = []) + */ +final class ChatServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.chat.v1.ChatService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'chat.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'chat.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/chat.admin.delete', + 'https://www.googleapis.com/auth/chat.admin.memberships', + 'https://www.googleapis.com/auth/chat.admin.memberships.readonly', + 'https://www.googleapis.com/auth/chat.admin.spaces', + 'https://www.googleapis.com/auth/chat.admin.spaces.readonly', + 'https://www.googleapis.com/auth/chat.app.delete', + 'https://www.googleapis.com/auth/chat.app.memberships', + 'https://www.googleapis.com/auth/chat.app.memberships.readonly', + 'https://www.googleapis.com/auth/chat.app.messages.readonly', + 'https://www.googleapis.com/auth/chat.app.spaces', + 'https://www.googleapis.com/auth/chat.app.spaces.create', + 'https://www.googleapis.com/auth/chat.app.spaces.readonly', + 'https://www.googleapis.com/auth/chat.bot', + 'https://www.googleapis.com/auth/chat.customemojis', + 'https://www.googleapis.com/auth/chat.customemojis.readonly', + 'https://www.googleapis.com/auth/chat.delete', + 'https://www.googleapis.com/auth/chat.import', + 'https://www.googleapis.com/auth/chat.memberships', + 'https://www.googleapis.com/auth/chat.memberships.app', + 'https://www.googleapis.com/auth/chat.memberships.readonly', + 'https://www.googleapis.com/auth/chat.messages', + 'https://www.googleapis.com/auth/chat.messages.create', + 'https://www.googleapis.com/auth/chat.messages.reactions', + 'https://www.googleapis.com/auth/chat.messages.reactions.create', + 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', + 'https://www.googleapis.com/auth/chat.messages.readonly', + 'https://www.googleapis.com/auth/chat.spaces', + 'https://www.googleapis.com/auth/chat.spaces.create', + 'https://www.googleapis.com/auth/chat.spaces.readonly', + 'https://www.googleapis.com/auth/chat.users.readstate', + 'https://www.googleapis.com/auth/chat.users.readstate.readonly', + 'https://www.googleapis.com/auth/chat.users.sections', + 'https://www.googleapis.com/auth/chat.users.sections.readonly', + 'https://www.googleapis.com/auth/chat.users.spacesettings', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/chat_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/chat_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/chat_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/chat_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a attachment + * resource. + * + * @param string $space + * @param string $message + * @param string $attachment + * + * @return string The formatted attachment resource. + */ + public static function attachmentName(string $space, string $message, string $attachment): string + { + return self::getPathTemplate('attachment')->render([ + 'space' => $space, + 'message' => $message, + 'attachment' => $attachment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a custom_emoji + * resource. + * + * @param string $customEmoji + * + * @return string The formatted custom_emoji resource. + */ + public static function customEmojiName(string $customEmoji): string + { + return self::getPathTemplate('customEmoji')->render([ + 'custom_emoji' => $customEmoji, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a membership + * resource. + * + * @param string $space + * @param string $member + * + * @return string The formatted membership resource. + */ + public static function membershipName(string $space, string $member): string + { + return self::getPathTemplate('membership')->render([ + 'space' => $space, + 'member' => $member, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a message + * resource. + * + * @param string $space + * @param string $message + * + * @return string The formatted message resource. + */ + public static function messageName(string $space, string $message): string + { + return self::getPathTemplate('message')->render([ + 'space' => $space, + 'message' => $message, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * quoted_message_metadata resource. + * + * @param string $space + * @param string $message + * @param string $quotedMessageMetadata + * + * @return string The formatted quoted_message_metadata resource. + */ + public static function quotedMessageMetadataName(string $space, string $message, string $quotedMessageMetadata): string + { + return self::getPathTemplate('quotedMessageMetadata')->render([ + 'space' => $space, + 'message' => $message, + 'quoted_message_metadata' => $quotedMessageMetadata, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a reaction + * resource. + * + * @param string $space + * @param string $message + * @param string $reaction + * + * @return string The formatted reaction resource. + */ + public static function reactionName(string $space, string $message, string $reaction): string + { + return self::getPathTemplate('reaction')->render([ + 'space' => $space, + 'message' => $message, + 'reaction' => $reaction, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a section + * resource. + * + * @param string $user + * @param string $section + * + * @return string The formatted section resource. + */ + public static function sectionName(string $user, string $section): string + { + return self::getPathTemplate('section')->render([ + 'user' => $user, + 'section' => $section, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a section_item + * resource. + * + * @param string $user + * @param string $section + * @param string $item + * + * @return string The formatted section_item resource. + */ + public static function sectionItemName(string $user, string $section, string $item): string + { + return self::getPathTemplate('sectionItem')->render([ + 'user' => $user, + 'section' => $section, + 'item' => $item, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a space + * resource. + * + * @param string $space + * + * @return string The formatted space resource. + */ + public static function spaceName(string $space): string + { + return self::getPathTemplate('space')->render([ + 'space' => $space, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a space_event + * resource. + * + * @param string $space + * @param string $spaceEvent + * + * @return string The formatted space_event resource. + */ + public static function spaceEventName(string $space, string $spaceEvent): string + { + return self::getPathTemplate('spaceEvent')->render([ + 'space' => $space, + 'space_event' => $spaceEvent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * space_notification_setting resource. + * + * @param string $user + * @param string $space + * + * @return string The formatted space_notification_setting resource. + */ + public static function spaceNotificationSettingName(string $user, string $space): string + { + return self::getPathTemplate('spaceNotificationSetting')->render([ + 'user' => $user, + 'space' => $space, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * space_read_state resource. + * + * @param string $user + * @param string $space + * + * @return string The formatted space_read_state resource. + */ + public static function spaceReadStateName(string $user, string $space): string + { + return self::getPathTemplate('spaceReadState')->render([ + 'user' => $user, + 'space' => $space, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a thread + * resource. + * + * @param string $space + * @param string $thread + * + * @return string The formatted thread resource. + */ + public static function threadName(string $space, string $thread): string + { + return self::getPathTemplate('thread')->render([ + 'space' => $space, + 'thread' => $thread, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * thread_read_state resource. + * + * @param string $user + * @param string $space + * @param string $thread + * + * @return string The formatted thread_read_state resource. + */ + public static function threadReadStateName(string $user, string $space, string $thread): string + { + return self::getPathTemplate('threadReadState')->render([ + 'user' => $user, + 'space' => $space, + 'thread' => $thread, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a user + * resource. + * + * @param string $user + * + * @return string The formatted user resource. + */ + public static function userName(string $user): string + { + return self::getPathTemplate('user')->render([ + 'user' => $user, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - attachment: spaces/{space}/messages/{message}/attachments/{attachment} + * - customEmoji: customEmojis/{custom_emoji} + * - membership: spaces/{space}/members/{member} + * - message: spaces/{space}/messages/{message} + * - quotedMessageMetadata: spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata} + * - reaction: spaces/{space}/messages/{message}/reactions/{reaction} + * - section: users/{user}/sections/{section} + * - sectionItem: users/{user}/sections/{section}/items/{item} + * - space: spaces/{space} + * - spaceEvent: spaces/{space}/spaceEvents/{space_event} + * - spaceNotificationSetting: users/{user}/spaces/{space}/spaceNotificationSetting + * - spaceReadState: users/{user}/spaces/{space}/spaceReadState + * - thread: spaces/{space}/threads/{thread} + * - threadReadState: users/{user}/spaces/{space}/threads/{thread}/threadReadState + * - user: users/{user} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'chat.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Apps\Chat\V1\ChatServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ChatServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Completes the + * [import process](https://developers.google.com/workspace/chat/import-data) + * for the specified space and makes it visible to users. + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * and domain-wide delegation with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.import` + * + * For more information, see [Authorize Google + * Chat apps to import + * data](https://developers.google.com/workspace/chat/authorize-import). + * + * The async variant is {@see ChatServiceClient::completeImportSpaceAsync()} . + * + * @example samples/V1/ChatServiceClient/complete_import_space.php + * + * @param CompleteImportSpaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CompleteImportSpaceResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function completeImportSpace(CompleteImportSpaceRequest $request, array $callOptions = []): CompleteImportSpaceResponse + { + return $this->startApiCall('CompleteImportSpace', $request, $callOptions)->wait(); + } + + /** + * Creates a custom emoji. + * + * Custom emojis are only available for Google Workspace accounts, and the + * administrator must turn custom emojis on for the organization. For more + * information, see [Learn about custom emojis in Google + * Chat](https://support.google.com/chat/answer/12800149) and + * [Manage custom emoji + * permissions](https://support.google.com/a/answer/12850085). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.customemojis` + * + * The async variant is {@see ChatServiceClient::createCustomEmojiAsync()} . + * + * @example samples/V1/ChatServiceClient/create_custom_emoji.php + * + * @param CreateCustomEmojiRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomEmoji + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCustomEmoji(CreateCustomEmojiRequest $request, array $callOptions = []): CustomEmoji + { + return $this->startApiCall('CreateCustomEmoji', $request, $callOptions)->wait(); + } + + /** + * Creates a membership for the calling Chat app, a user, or a Google Group. + * Creating memberships for other Chat apps isn't supported. + * When creating a membership, if the specified member has their auto-accept + * policy turned off, then they're invited, and must accept the space + * invitation before joining. Otherwise, creating a membership adds the member + * directly to the specified space. + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * and the authorization scope: + * - `https://www.googleapis.com/auth/chat.app.memberships` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.memberships` + * - `https://www.googleapis.com/auth/chat.memberships.app` (to add the + * calling app to the space) + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * the following authorization scope is used: + * - `https://www.googleapis.com/auth/chat.admin.memberships` + * + * App authentication is not supported for the following use cases: + * + * - Inviting users external to the Workspace organization that owns the + * space. + * - Adding a Google Group to a space. + * - Adding a Chat app to a space. + * + * For example usage, see: + * + * - [Invite or add a user to a + * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). + * - [Invite or add a Google Group to a + * space](https://developers.google.com/workspace/chat/create-members#create-group-membership). + * - [Add the Chat app to a + * space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api). + * + * The async variant is {@see ChatServiceClient::createMembershipAsync()} . + * + * @example samples/V1/ChatServiceClient/create_membership.php + * + * @param CreateMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Membership + * + * @throws ApiException Thrown if the API call fails. + */ + public function createMembership(CreateMembershipRequest $request, array $callOptions = []): Membership + { + return $this->startApiCall('CreateMembership', $request, $callOptions)->wait(); + } + + /** + * Creates a message in a Google Chat space. For an example, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with the authorization scope: + * - `https://www.googleapis.com/auth/chat.bot` + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.messages.create` + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * + * Chat attributes the message sender differently depending on the type of + * authentication that you use in your request. + * + * The following image shows how Chat attributes a message when you use app + * authentication. Chat displays the Chat app as the message + * sender. The content of the message can contain text (`text`), cards + * (`cardsV2`), and accessory widgets (`accessoryWidgets`). + * + * ![Message sent with app + * authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) + * + * The following image shows how Chat attributes a message when you use user + * authentication. Chat displays the user as the message sender and attributes + * the Chat app to the message by displaying its name. The content of message + * can only contain text (`text`). + * + * ![Message sent with user + * authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) + * + * The maximum message size, including the message contents, is 32,000 bytes. + * + * For + * [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) + * requests, the response doesn't contain the full message. The response only + * populates the `name` and `thread.name` fields in addition to the + * information that was in the request. + * + * The async variant is {@see ChatServiceClient::createMessageAsync()} . + * + * @example samples/V1/ChatServiceClient/create_message.php + * + * @param CreateMessageRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Message + * + * @throws ApiException Thrown if the API call fails. + */ + public function createMessage(CreateMessageRequest $request, array $callOptions = []): Message + { + return $this->startApiCall('CreateMessage', $request, $callOptions)->wait(); + } + + /** + * Creates a reaction and adds it to a message. For an example, see + * [Add a reaction to a + * message](https://developers.google.com/workspace/chat/create-reactions). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.messages.reactions.create` + * - `https://www.googleapis.com/auth/chat.messages.reactions` + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) + * + * The async variant is {@see ChatServiceClient::createReactionAsync()} . + * + * @example samples/V1/ChatServiceClient/create_reaction.php + * + * @param CreateReactionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Reaction + * + * @throws ApiException Thrown if the API call fails. + */ + public function createReaction(CreateReactionRequest $request, array $callOptions = []): Reaction + { + return $this->startApiCall('CreateReaction', $request, $callOptions)->wait(); + } + + /** + * Creates a section in Google Chat. Sections help users group conversations + * and customize the list of spaces displayed in Chat navigation panel. Only + * sections of type `CUSTOM_SECTION` can be created. For details, see [Create + * and organize sections in Google + * Chat](https://support.google.com/chat/answer/16059854). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.sections` + * + * The async variant is {@see ChatServiceClient::createSectionAsync()} . + * + * @example samples/V1/ChatServiceClient/create_section.php + * + * @param CreateSectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Section + * + * @throws ApiException Thrown if the API call fails. + */ + public function createSection(CreateSectionRequest $request, array $callOptions = []): Section + { + return $this->startApiCall('CreateSection', $request, $callOptions)->wait(); + } + + /** + * Creates a space. Can be used to create a named space, or a + * group chat in `Import mode`. For an example, see [Create a + * space](https://developers.google.com/workspace/chat/create-spaces). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * and one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.app.spaces.create` + * - `https://www.googleapis.com/auth/chat.app.spaces` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.spaces.create` + * - `https://www.googleapis.com/auth/chat.spaces` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * + * When authenticating as an app, the `space.customer` field must be set in + * the request. + * + * When authenticating as an app, the Chat app is added as a member of the + * space. However, unlike human authentication, the Chat app is not added as a + * space manager. By default, the Chat app can be removed from the space by + * all space members. To allow only space managers to remove the app from a + * space, set `space.permission_settings.manage_apps` to `managers_allowed`. + * + * Space membership upon creation depends on whether the space is created in + * `Import mode`: + * + * * **Import mode:** No members are created. + * * **All other modes:** The calling user is added as a member. This is: + * * The app itself when using app authentication. + * * The human user when using user authentication. + * + * If you receive the error message `ALREADY_EXISTS` when creating + * a space, try a different `displayName`. An existing space within + * the Google Workspace organization might already use this display name. + * + * The async variant is {@see ChatServiceClient::createSpaceAsync()} . + * + * @example samples/V1/ChatServiceClient/create_space.php + * + * @param CreateSpaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Space + * + * @throws ApiException Thrown if the API call fails. + */ + public function createSpace(CreateSpaceRequest $request, array $callOptions = []): Space + { + return $this->startApiCall('CreateSpace', $request, $callOptions)->wait(); + } + + /** + * Deletes a custom emoji. By default, users can only delete custom emoji they + * created. [Emoji managers](https://support.google.com/a/answer/12850085) + * assigned by the administrator can delete any custom emoji in the + * organization. See [Learn about custom emojis in Google + * Chat](https://support.google.com/chat/answer/12800149). + * + * Custom emojis are only available for Google Workspace accounts, and the + * administrator must turn custom emojis on for the organization. For more + * information, see [Learn about custom emojis in Google + * Chat](https://support.google.com/chat/answer/12800149) and + * [Manage custom emoji + * permissions](https://support.google.com/a/answer/12850085). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.customemojis` + * + * The async variant is {@see ChatServiceClient::deleteCustomEmojiAsync()} . + * + * @example samples/V1/ChatServiceClient/delete_custom_emoji.php + * + * @param DeleteCustomEmojiRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteCustomEmoji(DeleteCustomEmojiRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteCustomEmoji', $request, $callOptions)->wait(); + } + + /** + * Deletes a membership. For an example, see + * [Remove a user or a Google Chat app from a + * space](https://developers.google.com/workspace/chat/delete-members). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * and the authorization scope: + * - `https://www.googleapis.com/auth/chat.app.memberships` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.memberships` + * - `https://www.googleapis.com/auth/chat.memberships.app` (to remove + * the calling app from the space) + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * the following authorization scope is used: + * - `https://www.googleapis.com/auth/chat.admin.memberships` + * + * App authentication is not supported for the following use cases: + * + * - Removing a Google Group from a space. + * - Removing a Chat app from a space. + * + * To delete memberships for space managers, the requester + * must be a space manager. If you're using [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * the Chat app must be the space creator. + * + * The async variant is {@see ChatServiceClient::deleteMembershipAsync()} . + * + * @example samples/V1/ChatServiceClient/delete_membership.php + * + * @param DeleteMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Membership + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteMembership(DeleteMembershipRequest $request, array $callOptions = []): Membership + { + return $this->startApiCall('DeleteMembership', $request, $callOptions)->wait(); + } + + /** + * Deletes a message. + * For an example, see [Delete a + * message](https://developers.google.com/workspace/chat/delete-messages). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with the authorization scope: + * - `https://www.googleapis.com/auth/chat.bot` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * + * When using app authentication, requests can only delete messages + * created by the calling Chat app. + * + * The async variant is {@see ChatServiceClient::deleteMessageAsync()} . + * + * @example samples/V1/ChatServiceClient/delete_message.php + * + * @param DeleteMessageRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteMessage(DeleteMessageRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteMessage', $request, $callOptions)->wait(); + } + + /** + * Deletes a reaction to a message. For an example, see + * [Delete a + * reaction](https://developers.google.com/workspace/chat/delete-reactions). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.messages.reactions` + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) + * + * The async variant is {@see ChatServiceClient::deleteReactionAsync()} . + * + * @example samples/V1/ChatServiceClient/delete_reaction.php + * + * @param DeleteReactionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteReaction(DeleteReactionRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteReaction', $request, $callOptions)->wait(); + } + + /** + * Deletes a section of type `CUSTOM_SECTION`. + * + * If the section contains items, such as spaces, the items are moved to + * Google Chat's default sections and are not deleted. + * + * For details, see [Create and organize sections in Google + * Chat](https://support.google.com/chat/answer/16059854). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.sections` + * + * The async variant is {@see ChatServiceClient::deleteSectionAsync()} . + * + * @example samples/V1/ChatServiceClient/delete_section.php + * + * @param DeleteSectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteSection(DeleteSectionRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteSection', $request, $callOptions)->wait(); + } + + /** + * Deletes a named space. Always performs a cascading delete, which means + * that the space's child resources—like messages posted in the space and + * memberships in the space—are also deleted. For an example, see + * [Delete a + * space](https://developers.google.com/workspace/chat/delete-spaces). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) and the + * authorization scope: + * - `https://www.googleapis.com/auth/chat.app.delete` (only in + * spaces the app created) + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.delete` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * the following authorization scope is used: + * - `https://www.googleapis.com/auth/chat.admin.delete` + * + * The async variant is {@see ChatServiceClient::deleteSpaceAsync()} . + * + * @example samples/V1/ChatServiceClient/delete_space.php + * + * @param DeleteSpaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteSpace(DeleteSpaceRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteSpace', $request, $callOptions)->wait(); + } + + /** + * Returns the existing direct message with the specified user. If no direct + * message space is found, returns a `404 NOT_FOUND` error. For an example, + * see + * [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). + * + * With [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * returns the direct message space between the specified user and the calling + * Chat app. + * + * With [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * returns the direct message space between the specified user and the + * authenticated user. + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with the authorization scope: + * - `https://www.googleapis.com/auth/chat.bot` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.spaces` + * + * The async variant is {@see ChatServiceClient::findDirectMessageAsync()} . + * + * @example samples/V1/ChatServiceClient/find_direct_message.php + * + * @param FindDirectMessageRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Space + * + * @throws ApiException Thrown if the API call fails. + */ + public function findDirectMessage(FindDirectMessageRequest $request, array $callOptions = []): Space + { + return $this->startApiCall('FindDirectMessage', $request, $callOptions)->wait(); + } + + /** + * Returns all spaces with `spaceType == GROUP_CHAT`, whose + * human memberships contain exactly the calling user, and the users specified + * in `FindGroupChatsRequest.users`. Only members that have joined the + * conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * + * If the calling user blocks, or is blocked by, some users, and no spaces + * with the entire specified set of users are found, this method returns + * spaces that don't include the blocked or blocking users. + * + * The specified set of users must contain only human (non-app) memberships. + * A request that contains non-human users doesn't return any spaces. + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.memberships` + * + * The async variant is {@see ChatServiceClient::findGroupChatsAsync()} . + * + * @example samples/V1/ChatServiceClient/find_group_chats.php + * + * @param FindGroupChatsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function findGroupChats(FindGroupChatsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('FindGroupChats', $request, $callOptions); + } + + /** + * Gets the metadata of a message attachment. The attachment data is fetched + * using the [media + * API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). + * For an example, see + * [Get metadata about a message + * attachment](https://developers.google.com/workspace/chat/get-media-attachments). + * + * Requires [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.bot` + * + * The async variant is {@see ChatServiceClient::getAttachmentAsync()} . + * + * @example samples/V1/ChatServiceClient/get_attachment.php + * + * @param GetAttachmentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Attachment + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAttachment(GetAttachmentRequest $request, array $callOptions = []): Attachment + { + return $this->startApiCall('GetAttachment', $request, $callOptions)->wait(); + } + + /** + * Returns details about a custom emoji. + * + * Custom emojis are only available for Google Workspace accounts, and the + * administrator must turn custom emojis on for the organization. For more + * information, see [Learn about custom emojis in Google + * Chat](https://support.google.com/chat/answer/12800149) and + * [Manage custom emoji + * permissions](https://support.google.com/a/answer/12850085). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.customemojis.readonly` + * - `https://www.googleapis.com/auth/chat.customemojis` + * + * The async variant is {@see ChatServiceClient::getCustomEmojiAsync()} . + * + * @example samples/V1/ChatServiceClient/get_custom_emoji.php + * + * @param GetCustomEmojiRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomEmoji + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCustomEmoji(GetCustomEmojiRequest $request, array $callOptions = []): CustomEmoji + { + return $this->startApiCall('GetCustomEmoji', $request, $callOptions)->wait(); + } + + /** + * Returns details about a membership. For an example, see + * [Get details about a user's or Google Chat app's + * membership](https://developers.google.com/workspace/chat/get-members). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.bot` + * - `https://www.googleapis.com/auth/chat.app.memberships` (requires + * [administrator approval](https://support.google.com/a?p=chat-app-auth)) + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.memberships` + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * one of the following authorization scopes is used: + * - `https://www.googleapis.com/auth/chat.admin.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.admin.memberships` + * + * The async variant is {@see ChatServiceClient::getMembershipAsync()} . + * + * @example samples/V1/ChatServiceClient/get_membership.php + * + * @param GetMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Membership + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMembership(GetMembershipRequest $request, array $callOptions = []): Membership + { + return $this->startApiCall('GetMembership', $request, $callOptions)->wait(); + } + + /** + * Returns details about a message. + * For an example, see [Get details about a + * message](https://developers.google.com/workspace/chat/get-messages). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.bot`: When using this + * authorization scope, this method returns details about a message the + * Chat app has access to, like direct messages and [slash + * commands](https://developers.google.com/workspace/chat/slash-commands) + * that invoke the Chat app. + * - `https://www.googleapis.com/auth/chat.app.messages.readonly` + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth). + * When using this authentication scope, + * this method returns details about a public message in a space. + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.messages.readonly` + * - `https://www.googleapis.com/auth/chat.messages` + * + * Note: Might return a message from a blocked member or space. + * + * The async variant is {@see ChatServiceClient::getMessageAsync()} . + * + * @example samples/V1/ChatServiceClient/get_message.php + * + * @param GetMessageRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Message + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMessage(GetMessageRequest $request, array $callOptions = []): Message + { + return $this->startApiCall('GetMessage', $request, $callOptions)->wait(); + } + + /** + * Returns details about a space. For an example, see + * [Get details about a + * space](https://developers.google.com/workspace/chat/get-spaces). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.bot` + * - `https://www.googleapis.com/auth/chat.app.spaces` with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.spaces` + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * one of the following authorization scopes is used: + * - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.admin.spaces` + * + * App authentication has the following limitations: + * + * - `space.access_settings` is only populated when using the + * `chat.app.spaces` scope. + * - `space.predefind_permission_settings` and `space.permission_settings` are + * only populated when using the `chat.app.spaces` scope, and only for + * spaces the app created. + * + * The async variant is {@see ChatServiceClient::getSpaceAsync()} . + * + * @example samples/V1/ChatServiceClient/get_space.php + * + * @param GetSpaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Space + * + * @throws ApiException Thrown if the API call fails. + */ + public function getSpace(GetSpaceRequest $request, array $callOptions = []): Space + { + return $this->startApiCall('GetSpace', $request, $callOptions)->wait(); + } + + /** + * Returns an event from a Google Chat space. The [event + * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the resource that changed. For example, + * if you request an event about a new message but the message was later + * updated, the server returns the updated `Message` resource in the event + * payload. + * + * Note: The `permissionSettings` field is not returned in the Space + * object of the Space event data for this request. + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize) + * with an + * [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes) + * appropriate for reading the requested data: + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.app.spaces` + * - `https://www.googleapis.com/auth/chat.app.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.app.messages.readonly` + * - `https://www.googleapis.com/auth/chat.app.memberships` + * - `https://www.googleapis.com/auth/chat.app.memberships.readonly` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.spaces` + * - `https://www.googleapis.com/auth/chat.messages.readonly` + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` + * - `https://www.googleapis.com/auth/chat.messages.reactions` + * - `https://www.googleapis.com/auth/chat.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.memberships` + * + * To get an event, the authenticated caller must be a member of the space. + * + * For an example, see [Get details about an + * event from a Google Chat + * space](https://developers.google.com/workspace/chat/get-space-event). + * + * The async variant is {@see ChatServiceClient::getSpaceEventAsync()} . + * + * @example samples/V1/ChatServiceClient/get_space_event.php + * + * @param GetSpaceEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return SpaceEvent + * + * @throws ApiException Thrown if the API call fails. + */ + public function getSpaceEvent(GetSpaceEventRequest $request, array $callOptions = []): SpaceEvent + { + return $this->startApiCall('GetSpaceEvent', $request, $callOptions)->wait(); + } + + /** + * Gets the space notification setting. For an example, see [Get the + * caller's space notification + * setting](https://developers.google.com/workspace/chat/get-space-notification-setting). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.spacesettings` + * + * The async variant is + * {@see ChatServiceClient::getSpaceNotificationSettingAsync()} . + * + * @example samples/V1/ChatServiceClient/get_space_notification_setting.php + * + * @param GetSpaceNotificationSettingRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return SpaceNotificationSetting + * + * @throws ApiException Thrown if the API call fails. + */ + public function getSpaceNotificationSetting(GetSpaceNotificationSettingRequest $request, array $callOptions = []): SpaceNotificationSetting + { + return $this->startApiCall('GetSpaceNotificationSetting', $request, $callOptions)->wait(); + } + + /** + * Returns details about a user's read state within a space, used to identify + * read and unread messages. For an example, see [Get details about a user's + * space read + * state](https://developers.google.com/workspace/chat/get-space-read-state). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.readstate.readonly` + * - `https://www.googleapis.com/auth/chat.users.readstate` + * + * The async variant is {@see ChatServiceClient::getSpaceReadStateAsync()} . + * + * @example samples/V1/ChatServiceClient/get_space_read_state.php + * + * @param GetSpaceReadStateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return SpaceReadState + * + * @throws ApiException Thrown if the API call fails. + */ + public function getSpaceReadState(GetSpaceReadStateRequest $request, array $callOptions = []): SpaceReadState + { + return $this->startApiCall('GetSpaceReadState', $request, $callOptions)->wait(); + } + + /** + * Returns details about a user's read state within a thread, used to identify + * read and unread messages. For an example, see [Get details about a user's + * thread read + * state](https://developers.google.com/workspace/chat/get-thread-read-state). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.readstate.readonly` + * - `https://www.googleapis.com/auth/chat.users.readstate` + * + * The async variant is {@see ChatServiceClient::getThreadReadStateAsync()} . + * + * @example samples/V1/ChatServiceClient/get_thread_read_state.php + * + * @param GetThreadReadStateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ThreadReadState + * + * @throws ApiException Thrown if the API call fails. + */ + public function getThreadReadState(GetThreadReadStateRequest $request, array $callOptions = []): ThreadReadState + { + return $this->startApiCall('GetThreadReadState', $request, $callOptions)->wait(); + } + + /** + * Lists custom emojis visible to the authenticated user. + * + * Custom emojis are only available for Google Workspace accounts, and the + * administrator must turn custom emojis on for the organization. For more + * information, see [Learn about custom emojis in Google + * Chat](https://support.google.com/chat/answer/12800149) and + * [Manage custom emoji + * permissions](https://support.google.com/a/answer/12850085). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.customemojis.readonly` + * - `https://www.googleapis.com/auth/chat.customemojis` + * + * The async variant is {@see ChatServiceClient::listCustomEmojisAsync()} . + * + * @example samples/V1/ChatServiceClient/list_custom_emojis.php + * + * @param ListCustomEmojisRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCustomEmojis(ListCustomEmojisRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomEmojis', $request, $callOptions); + } + + /** + * Lists memberships in a space. For an example, see [List users and Google + * Chat apps in a + * space](https://developers.google.com/workspace/chat/list-members). Listing + * memberships with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * lists memberships in spaces that the Chat app has + * access to, but excludes Chat app memberships, + * including its own. Listing memberships with + * [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * lists memberships in spaces that the authenticated user has access to. + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.bot` + * - `https://www.googleapis.com/auth/chat.app.memberships` (requires + * [administrator approval](https://support.google.com/a?p=chat-app-auth)) + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.memberships` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * one of the following authorization scopes is used: + * - `https://www.googleapis.com/auth/chat.admin.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.admin.memberships` + * + * The async variant is {@see ChatServiceClient::listMembershipsAsync()} . + * + * @example samples/V1/ChatServiceClient/list_memberships.php + * + * @param ListMembershipsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMemberships(ListMembershipsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMemberships', $request, $callOptions); + } + + /** + * Lists messages in a space that the caller is a member of, including + * messages from blocked members and spaces. System messages, like those + * announcing new space members, aren't included. If you list messages from a + * space with no messages, the response is an empty object. When using a + * REST/HTTP interface, the response contains an empty JSON object, `{}`. + * For an example, see + * [List + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the authorization scope: + * - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When + * using this authentication scope, this method only returns public + * messages in a space. It doesn't include private messages. + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.messages.readonly` + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * + * The async variant is {@see ChatServiceClient::listMessagesAsync()} . + * + * @example samples/V1/ChatServiceClient/list_messages.php + * + * @param ListMessagesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMessages(ListMessagesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMessages', $request, $callOptions); + } + + /** + * Lists reactions to a message. For an example, see + * [List reactions for a + * message](https://developers.google.com/workspace/chat/list-reactions). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` + * - `https://www.googleapis.com/auth/chat.messages.reactions` + * - `https://www.googleapis.com/auth/chat.messages.readonly` + * - `https://www.googleapis.com/auth/chat.messages` + * + * The async variant is {@see ChatServiceClient::listReactionsAsync()} . + * + * @example samples/V1/ChatServiceClient/list_reactions.php + * + * @param ListReactionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listReactions(ListReactionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReactions', $request, $callOptions); + } + + /** + * Lists items in a section. + * + * Only spaces can be section items. For details, see [Create and organize + * sections in Google Chat](https://support.google.com/chat/answer/16059854). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.sections` + * - `https://www.googleapis.com/auth/chat.users.sections.readonly` + * + * The async variant is {@see ChatServiceClient::listSectionItemsAsync()} . + * + * @example samples/V1/ChatServiceClient/list_section_items.php + * + * @param ListSectionItemsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listSectionItems(ListSectionItemsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSectionItems', $request, $callOptions); + } + + /** + * Lists sections available to the Chat user. Sections help users group their + * conversations and customize the list of spaces displayed in Chat + * navigation panel. For details, see [Create and organize sections in Google + * Chat](https://support.google.com/chat/answer/16059854). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.sections` + * - `https://www.googleapis.com/auth/chat.users.sections.readonly` + * + * The async variant is {@see ChatServiceClient::listSectionsAsync()} . + * + * @example samples/V1/ChatServiceClient/list_sections.php + * + * @param ListSectionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listSections(ListSectionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSections', $request, $callOptions); + } + + /** + * Lists events from a Google Chat space. For each event, the + * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the Chat resource. For example, if you + * list events about new space members, the server returns `Membership` + * resources that contain the latest membership details. If new members were + * removed during the requested period, the event payload contains an empty + * `Membership` resource. + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize) + * with an + * [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes) + * appropriate for reading the requested data: + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.app.spaces` + * - `https://www.googleapis.com/auth/chat.app.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.app.messages.readonly` + * - `https://www.googleapis.com/auth/chat.app.memberships` + * - `https://www.googleapis.com/auth/chat.app.memberships.readonly` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.spaces` + * - `https://www.googleapis.com/auth/chat.messages.readonly` + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` + * - `https://www.googleapis.com/auth/chat.messages.reactions` + * - `https://www.googleapis.com/auth/chat.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.memberships` + * + * To list events, the authenticated caller must be a member of the space. + * + * For an example, see [List events from a Google Chat + * space](https://developers.google.com/workspace/chat/list-space-events). + * + * The async variant is {@see ChatServiceClient::listSpaceEventsAsync()} . + * + * @example samples/V1/ChatServiceClient/list_space_events.php + * + * @param ListSpaceEventsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listSpaceEvents(ListSpaceEventsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSpaceEvents', $request, $callOptions); + } + + /** + * Lists spaces the caller is a member of. Group chats and DMs aren't listed + * until the first message is sent. For an example, see + * [List + * spaces](https://developers.google.com/workspace/chat/list-spaces). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with the authorization scope: + * - `https://www.googleapis.com/auth/chat.bot` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.spaces` + * + * To list all named spaces by Google Workspace organization, use the + * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) + * method using Workspace administrator privileges instead. + * + * The async variant is {@see ChatServiceClient::listSpacesAsync()} . + * + * @example samples/V1/ChatServiceClient/list_spaces.php + * + * @param ListSpacesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listSpaces(ListSpacesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSpaces', $request, $callOptions); + } + + /** + * Moves an item from one section to another. For example, if a section + * contains spaces, this method can be used to move a space to a different + * section. For details, see [Create and organize sections in Google + * Chat](https://support.google.com/chat/answer/16059854). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.sections` + * + * The async variant is {@see ChatServiceClient::moveSectionItemAsync()} . + * + * @example samples/V1/ChatServiceClient/move_section_item.php + * + * @param MoveSectionItemRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MoveSectionItemResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function moveSectionItem(MoveSectionItemRequest $request, array $callOptions = []): MoveSectionItemResponse + { + return $this->startApiCall('MoveSectionItem', $request, $callOptions)->wait(); + } + + /** + * Changes the sort order of a section. For details, see [Create and organize + * sections in Google Chat](https://support.google.com/chat/answer/16059854). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.sections` + * + * The async variant is {@see ChatServiceClient::positionSectionAsync()} . + * + * @example samples/V1/ChatServiceClient/position_section.php + * + * @param PositionSectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PositionSectionResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function positionSection(PositionSectionRequest $request, array $callOptions = []): PositionSectionResponse + { + return $this->startApiCall('PositionSection', $request, $callOptions)->wait(); + } + + /** + * Returns a list of spaces in a Google Workspace organization based on an + * administrator's search. In the request, set `use_admin_access` to `true`. + * For an example, see [Search for and manage + * spaces](https://developers.google.com/workspace/chat/search-manage-admin). + * + * Requires [user + * authentication with administrator + * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) + * and one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` + * - `https://www.googleapis.com/auth/chat.admin.spaces` + * + * The async variant is {@see ChatServiceClient::searchSpacesAsync()} . + * + * @example samples/V1/ChatServiceClient/search_spaces.php + * + * @param SearchSpacesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchSpaces(SearchSpacesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchSpaces', $request, $callOptions); + } + + /** + * Creates a space and adds specified users to it. The calling user is + * automatically added to the space, and shouldn't be specified as a + * membership in the request. For an example, see + * [Set up a space with initial + * members](https://developers.google.com/workspace/chat/set-up-spaces). + * + * To specify the human members to add, add memberships with the appropriate + * `membership.member.name`. To add a human user, use `users/{user}`, where + * `{user}` can be the email address for the user. For users in the same + * Workspace organization `{user}` can also be the `id` for the person from + * the People API, or the `id` for the user in the Directory API. For example, + * if the People API Person profile ID for `user@example.com` is `123456789`, + * you can add the user to the space by setting the `membership.member.name` + * to `users/user@example.com` or `users/123456789`. + * + * To specify the Google groups to add, add memberships with the + * appropriate `membership.group_member.name`. To add or invite a Google + * group, use `groups/{group}`, where `{group}` is the `id` for the group from + * the Cloud Identity Groups API. For example, you can use [Cloud Identity + * Groups lookup + * API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup) + * to retrieve the ID `123456789` for group email `group@example.com`, then + * you can add the group to the space by setting the + * `membership.group_member.name` to `groups/123456789`. Group email is not + * supported, and Google groups can only be added as members in named spaces. + * + * For a named space or group chat, if the caller blocks, or is blocked + * by some members, or doesn't have permission to add some members, then + * those members aren't added to the created space. + * + * To create a direct message (DM) between the calling user and another human + * user, specify exactly one membership to represent the human user. If + * one user blocks the other, the request fails and the DM isn't created. + * + * To create a DM between the calling user and the calling app, set + * `Space.singleUserBotDm` to `true` and don't specify any memberships. You + * can only use this method to set up a DM with the calling app. To add the + * calling app as a member of a space or an existing DM between two human + * users, see + * [Invite or add a user or app to a + * space](https://developers.google.com/workspace/chat/create-members). + * + * If a DM already exists between two users, even when one user blocks the + * other at the time a request is made, then the existing DM is returned. + * + * Spaces with threaded replies aren't supported. If you receive the error + * message `ALREADY_EXISTS` when setting up a space, try a different + * `displayName`. An existing space within the Google Workspace organization + * might already use this display name. + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.spaces.create` + * - `https://www.googleapis.com/auth/chat.spaces` + * + * The async variant is {@see ChatServiceClient::setUpSpaceAsync()} . + * + * @example samples/V1/ChatServiceClient/set_up_space.php + * + * @param SetUpSpaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Space + * + * @throws ApiException Thrown if the API call fails. + */ + public function setUpSpace(SetUpSpaceRequest $request, array $callOptions = []): Space + { + return $this->startApiCall('SetUpSpace', $request, $callOptions)->wait(); + } + + /** + * Updates a membership. For an example, see [Update a user's membership in + * a space](https://developers.google.com/workspace/chat/update-members). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) and the + * authorization scope: + * - `https://www.googleapis.com/auth/chat.app.memberships` (only in + * spaces the app created) + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.memberships` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * the following authorization scope is used: + * - `https://www.googleapis.com/auth/chat.admin.memberships` + * + * The async variant is {@see ChatServiceClient::updateMembershipAsync()} . + * + * @example samples/V1/ChatServiceClient/update_membership.php + * + * @param UpdateMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Membership + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateMembership(UpdateMembershipRequest $request, array $callOptions = []): Membership + { + return $this->startApiCall('UpdateMembership', $request, $callOptions)->wait(); + } + + /** + * Updates a message. There's a difference between the `patch` and `update` + * methods. The `patch` + * method uses a `patch` request while the `update` method uses a `put` + * request. We recommend using the `patch` method. For an example, see + * [Update a + * message](https://developers.google.com/workspace/chat/update-messages). + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with the authorization scope: + * - `https://www.googleapis.com/auth/chat.bot` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * + * When using app authentication, requests can only update messages + * created by the calling Chat app. + * + * The async variant is {@see ChatServiceClient::updateMessageAsync()} . + * + * @example samples/V1/ChatServiceClient/update_message.php + * + * @param UpdateMessageRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Message + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateMessage(UpdateMessageRequest $request, array $callOptions = []): Message + { + return $this->startApiCall('UpdateMessage', $request, $callOptions)->wait(); + } + + /** + * Updates a section. Only sections of type `CUSTOM_SECTION` can be updated. + * For details, see [Create and organize sections in Google + * Chat](https://support.google.com/chat/answer/16059854). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.sections` + * + * The async variant is {@see ChatServiceClient::updateSectionAsync()} . + * + * @example samples/V1/ChatServiceClient/update_section.php + * + * @param UpdateSectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Section + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateSection(UpdateSectionRequest $request, array $callOptions = []): Section + { + return $this->startApiCall('UpdateSection', $request, $callOptions)->wait(); + } + + /** + * Updates a space. For an example, see + * [Update a + * space](https://developers.google.com/workspace/chat/update-spaces). + * + * If you're updating the `displayName` field and receive the error message + * `ALREADY_EXISTS`, try a different display name.. An existing space within + * the Google Workspace organization might already use this display name. + * + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * and one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.app.spaces` + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following authorization scopes: + * - `https://www.googleapis.com/auth/chat.spaces` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces + * only) + * - User authentication grants administrator privileges when an + * administrator account authenticates, `use_admin_access` is `true`, and + * the following authorization scopes is used: + * - `https://www.googleapis.com/auth/chat.admin.spaces` + * + * App authentication has the following limitations: + * + * - To update either `space.predefined_permission_settings` or + * `space.permission_settings`, the app must be the space creator. + * - Updating the `space.access_settings.audience` is not supported for app + * authentication. + * + * The async variant is {@see ChatServiceClient::updateSpaceAsync()} . + * + * @example samples/V1/ChatServiceClient/update_space.php + * + * @param UpdateSpaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Space + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateSpace(UpdateSpaceRequest $request, array $callOptions = []): Space + { + return $this->startApiCall('UpdateSpace', $request, $callOptions)->wait(); + } + + /** + * Updates the space notification setting. For an example, see [Update + * the caller's space notification + * setting](https://developers.google.com/workspace/chat/update-space-notification-setting). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.spacesettings` + * + * The async variant is + * {@see ChatServiceClient::updateSpaceNotificationSettingAsync()} . + * + * @example samples/V1/ChatServiceClient/update_space_notification_setting.php + * + * @param UpdateSpaceNotificationSettingRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return SpaceNotificationSetting + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateSpaceNotificationSetting(UpdateSpaceNotificationSettingRequest $request, array $callOptions = []): SpaceNotificationSetting + { + return $this->startApiCall('UpdateSpaceNotificationSetting', $request, $callOptions)->wait(); + } + + /** + * Updates a user's read state within a space, used to identify read and + * unread messages. For an example, see [Update a user's space read + * state](https://developers.google.com/workspace/chat/update-space-read-state). + * + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.users.readstate` + * + * The async variant is {@see ChatServiceClient::updateSpaceReadStateAsync()} . + * + * @example samples/V1/ChatServiceClient/update_space_read_state.php + * + * @param UpdateSpaceReadStateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return SpaceReadState + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateSpaceReadState(UpdateSpaceReadStateRequest $request, array $callOptions = []): SpaceReadState + { + return $this->startApiCall('UpdateSpaceReadState', $request, $callOptions)->wait(); + } + + /** + * Uploads an attachment. For an example, see + * [Upload media as a file + * attachment](https://developers.google.com/workspace/chat/upload-media-attachments). + * + * Requires user + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + * - `https://www.googleapis.com/auth/chat.messages.create` + * - `https://www.googleapis.com/auth/chat.messages` + * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) + * + * You can upload attachments up to 200 MB. Certain file types aren't + * supported. For details, see [File types blocked by Google + * Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat). + * + * The async variant is {@see ChatServiceClient::uploadAttachmentAsync()} . + * + * @example samples/V1/ChatServiceClient/upload_attachment.php + * + * @param UploadAttachmentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return UploadAttachmentResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function uploadAttachment(UploadAttachmentRequest $request, array $callOptions = []): UploadAttachmentResponse + { + return $this->startApiCall('UploadAttachment', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..d0bc4ad614d2 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json @@ -0,0 +1,233 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.chat.v1", + "libraryPackage": "Google\\Apps\\Chat\\V1", + "services": { + "ChatService": { + "clients": { + "grpc": { + "libraryClient": "ChatServiceGapicClient", + "rpcs": { + "CompleteImportSpace": { + "methods": [ + "completeImportSpace" + ] + }, + "CreateCustomEmoji": { + "methods": [ + "createCustomEmoji" + ] + }, + "CreateMembership": { + "methods": [ + "createMembership" + ] + }, + "CreateMessage": { + "methods": [ + "createMessage" + ] + }, + "CreateReaction": { + "methods": [ + "createReaction" + ] + }, + "CreateSection": { + "methods": [ + "createSection" + ] + }, + "CreateSpace": { + "methods": [ + "createSpace" + ] + }, + "DeleteCustomEmoji": { + "methods": [ + "deleteCustomEmoji" + ] + }, + "DeleteMembership": { + "methods": [ + "deleteMembership" + ] + }, + "DeleteMessage": { + "methods": [ + "deleteMessage" + ] + }, + "DeleteReaction": { + "methods": [ + "deleteReaction" + ] + }, + "DeleteSection": { + "methods": [ + "deleteSection" + ] + }, + "DeleteSpace": { + "methods": [ + "deleteSpace" + ] + }, + "FindDirectMessage": { + "methods": [ + "findDirectMessage" + ] + }, + "FindGroupChats": { + "methods": [ + "findGroupChats" + ] + }, + "GetAttachment": { + "methods": [ + "getAttachment" + ] + }, + "GetCustomEmoji": { + "methods": [ + "getCustomEmoji" + ] + }, + "GetMembership": { + "methods": [ + "getMembership" + ] + }, + "GetMessage": { + "methods": [ + "getMessage" + ] + }, + "GetSpace": { + "methods": [ + "getSpace" + ] + }, + "GetSpaceEvent": { + "methods": [ + "getSpaceEvent" + ] + }, + "GetSpaceNotificationSetting": { + "methods": [ + "getSpaceNotificationSetting" + ] + }, + "GetSpaceReadState": { + "methods": [ + "getSpaceReadState" + ] + }, + "GetThreadReadState": { + "methods": [ + "getThreadReadState" + ] + }, + "ListCustomEmojis": { + "methods": [ + "listCustomEmojis" + ] + }, + "ListMemberships": { + "methods": [ + "listMemberships" + ] + }, + "ListMessages": { + "methods": [ + "listMessages" + ] + }, + "ListReactions": { + "methods": [ + "listReactions" + ] + }, + "ListSectionItems": { + "methods": [ + "listSectionItems" + ] + }, + "ListSections": { + "methods": [ + "listSections" + ] + }, + "ListSpaceEvents": { + "methods": [ + "listSpaceEvents" + ] + }, + "ListSpaces": { + "methods": [ + "listSpaces" + ] + }, + "MoveSectionItem": { + "methods": [ + "moveSectionItem" + ] + }, + "PositionSection": { + "methods": [ + "positionSection" + ] + }, + "SearchSpaces": { + "methods": [ + "searchSpaces" + ] + }, + "SetUpSpace": { + "methods": [ + "setUpSpace" + ] + }, + "UpdateMembership": { + "methods": [ + "updateMembership" + ] + }, + "UpdateMessage": { + "methods": [ + "updateMessage" + ] + }, + "UpdateSection": { + "methods": [ + "updateSection" + ] + }, + "UpdateSpace": { + "methods": [ + "updateSpace" + ] + }, + "UpdateSpaceNotificationSetting": { + "methods": [ + "updateSpaceNotificationSetting" + ] + }, + "UpdateSpaceReadState": { + "methods": [ + "updateSpaceReadState" + ] + }, + "UploadAttachment": { + "methods": [ + "uploadAttachment" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json new file mode 100644 index 000000000000..1382fd16fe06 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json @@ -0,0 +1,249 @@ +{ + "interfaces": { + "google.chat.v1.ChatService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000 + } + }, + "methods": { + "CompleteImportSpace": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateCustomEmoji": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateMembership": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateMessage": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateReaction": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateSection": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateSpace": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteCustomEmoji": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteMembership": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteMessage": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteReaction": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteSection": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteSpace": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "FindDirectMessage": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "FindGroupChats": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAttachment": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomEmoji": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetMembership": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetMessage": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetSpace": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetSpaceEvent": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetSpaceNotificationSetting": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetSpaceReadState": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetThreadReadState": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomEmojis": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListMemberships": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListMessages": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListReactions": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSectionItems": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSections": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSpaceEvents": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSpaces": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "MoveSectionItem": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "PositionSection": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SearchSpaces": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SetUpSpace": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateMembership": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateMessage": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateSection": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateSpace": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateSpaceNotificationSetting": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateSpaceReadState": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UploadAttachment": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php new file mode 100644 index 000000000000..77d113e0126f --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php @@ -0,0 +1,583 @@ + [ + 'google.chat.v1.ChatService' => [ + 'CompleteImportSpace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\CompleteImportSpaceResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateCustomEmoji' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\CustomEmoji', + ], + 'CreateMembership' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Membership', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMessage' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Message', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateReaction' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Reaction', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Section', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSpace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Space', + ], + 'DeleteCustomEmoji' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMembership' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Membership', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMessage' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteReaction' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSpace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FindDirectMessage' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Space', + ], + 'FindGroupChats' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSpaces', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\FindGroupChatsResponse', + ], + 'GetAttachment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Attachment', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomEmoji' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\CustomEmoji', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMembership' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Membership', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMessage' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Message', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetSpace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Space', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetSpaceEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\SpaceEvent', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetSpaceNotificationSetting' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\SpaceNotificationSetting', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetSpaceReadState' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\SpaceReadState', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetThreadReadState' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ThreadReadState', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomEmojis' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomEmojis', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListCustomEmojisResponse', + ], + 'ListMemberships' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMemberships', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListMembershipsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMessages' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMessages', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListMessagesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListReactions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReactions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListReactionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSectionItems' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSectionItems', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListSectionItemsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSections' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSections', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListSectionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSpaceEvents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSpaceEvents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListSpaceEventsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSpaces' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSpaces', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\ListSpacesResponse', + ], + 'MoveSectionItem' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\MoveSectionItemResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'PositionSection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\PositionSectionResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SearchSpaces' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSpaces', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Apps\Chat\V1\SearchSpacesResponse', + ], + 'SetUpSpace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Space', + ], + 'UpdateMembership' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Membership', + 'headerParams' => [ + [ + 'keyName' => 'membership.name', + 'fieldAccessors' => [ + 'getMembership', + 'getName', + ], + ], + ], + ], + 'UpdateMessage' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Message', + 'headerParams' => [ + [ + 'keyName' => 'message.name', + 'fieldAccessors' => [ + 'getMessage', + 'getName', + ], + ], + ], + ], + 'UpdateSection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Section', + 'headerParams' => [ + [ + 'keyName' => 'section.name', + 'fieldAccessors' => [ + 'getSection', + 'getName', + ], + ], + ], + ], + 'UpdateSpace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\Space', + 'headerParams' => [ + [ + 'keyName' => 'space.name', + 'fieldAccessors' => [ + 'getSpace', + 'getName', + ], + ], + ], + ], + 'UpdateSpaceNotificationSetting' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\SpaceNotificationSetting', + 'headerParams' => [ + [ + 'keyName' => 'space_notification_setting.name', + 'fieldAccessors' => [ + 'getSpaceNotificationSetting', + 'getName', + ], + ], + ], + ], + 'UpdateSpaceReadState' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\SpaceReadState', + 'headerParams' => [ + [ + 'keyName' => 'space_read_state.name', + 'fieldAccessors' => [ + 'getSpaceReadState', + 'getName', + ], + ], + ], + ], + 'UploadAttachment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Apps\Chat\V1\UploadAttachmentResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'attachment' => 'spaces/{space}/messages/{message}/attachments/{attachment}', + 'customEmoji' => 'customEmojis/{custom_emoji}', + 'membership' => 'spaces/{space}/members/{member}', + 'message' => 'spaces/{space}/messages/{message}', + 'quotedMessageMetadata' => 'spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}', + 'reaction' => 'spaces/{space}/messages/{message}/reactions/{reaction}', + 'section' => 'users/{user}/sections/{section}', + 'sectionItem' => 'users/{user}/sections/{section}/items/{item}', + 'space' => 'spaces/{space}', + 'spaceEvent' => 'spaces/{space}/spaceEvents/{space_event}', + 'spaceNotificationSetting' => 'users/{user}/spaces/{space}/spaceNotificationSetting', + 'spaceReadState' => 'users/{user}/spaces/{space}/spaceReadState', + 'thread' => 'spaces/{space}/threads/{thread}', + 'threadReadState' => 'users/{user}/spaces/{space}/threads/{thread}/threadReadState', + 'user' => 'users/{user}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php new file mode 100644 index 000000000000..3771817b03b1 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php @@ -0,0 +1,500 @@ + [ + 'google.chat.v1.ChatService' => [ + 'CompleteImportSpace' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=spaces/*}:completeImport', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateCustomEmoji' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/customEmojis', + 'body' => 'custom_emoji', + ], + 'CreateMembership' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=spaces/*}/members', + 'body' => 'membership', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMessage' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=spaces/*}/messages', + 'body' => 'message', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateReaction' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=spaces/*/messages/*}/reactions', + 'body' => 'reaction', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSection' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=users/*}/sections', + 'body' => 'section', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSpace' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/spaces', + 'body' => 'space', + ], + 'DeleteCustomEmoji' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=customEmojis/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMembership' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=spaces/*/members/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMessage' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=spaces/*/messages/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteReaction' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=spaces/*/messages/*/reactions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSection' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=users/*/sections/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSpace' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=spaces/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FindDirectMessage' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/spaces:findDirectMessage', + ], + 'FindGroupChats' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/spaces:findGroupChats', + ], + 'GetAttachment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=spaces/*/messages/*/attachments/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomEmoji' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=customEmojis/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMembership' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=spaces/*/members/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMessage' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=spaces/*/messages/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSpace' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=spaces/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSpaceEvent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=spaces/*/spaceEvents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSpaceNotificationSetting' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=users/*/spaces/*/spaceNotificationSetting}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSpaceReadState' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=users/*/spaces/*/spaceReadState}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetThreadReadState' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=users/*/spaces/*/threads/*/threadReadState}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCustomEmojis' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/customEmojis', + ], + 'ListMemberships' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=spaces/*}/members', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMessages' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=spaces/*}/messages', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListReactions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=spaces/*/messages/*}/reactions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSectionItems' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=users/*/sections/*}/items', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSections' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=users/*}/sections', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSpaceEvents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=spaces/*}/spaceEvents', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'filter', + ], + ], + 'ListSpaces' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/spaces', + ], + 'MoveSectionItem' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=users/*/sections/*/items/*}:move', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'PositionSection' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=users/*/sections/*}:position', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SearchSpaces' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/spaces:search', + ], + 'SetUpSpace' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/spaces:setup', + 'body' => '*', + ], + 'UpdateMembership' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{membership.name=spaces/*/members/*}', + 'body' => 'membership', + 'placeholders' => [ + 'membership.name' => [ + 'getters' => [ + 'getMembership', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateMessage' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{message.name=spaces/*/messages/*}', + 'body' => 'message', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{message.name=spaces/*/messages/*}', + 'body' => 'message', + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'placeholders' => [ + 'message.name' => [ + 'getters' => [ + 'getMessage', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateSection' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{section.name=users/*/sections/*}', + 'body' => 'section', + 'placeholders' => [ + 'section.name' => [ + 'getters' => [ + 'getSection', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateSpace' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{space.name=spaces/*}', + 'body' => 'space', + 'placeholders' => [ + 'space.name' => [ + 'getters' => [ + 'getSpace', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateSpaceNotificationSetting' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}', + 'body' => 'space_notification_setting', + 'placeholders' => [ + 'space_notification_setting.name' => [ + 'getters' => [ + 'getSpaceNotificationSetting', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateSpaceReadState' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}', + 'body' => 'space_read_state', + 'placeholders' => [ + 'space_read_state.name' => [ + 'getters' => [ + 'getSpaceReadState', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UploadAttachment' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=spaces/*}/attachments:upload', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php b/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php new file mode 100644 index 000000000000..5963d1ea1e06 --- /dev/null +++ b/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php @@ -0,0 +1,3189 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ChatServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ChatServiceClient($options); + } + + /** @test */ + public function completeImportSpaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CompleteImportSpaceResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->spaceName('[SPACE]'); + $request = (new CompleteImportSpaceRequest()) + ->setName($formattedName); + $response = $gapicClient->completeImportSpace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CompleteImportSpace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeImportSpaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->spaceName('[SPACE]'); + $request = (new CompleteImportSpaceRequest()) + ->setName($formattedName); + try { + $gapicClient->completeImportSpace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomEmojiTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $uid = 'uid115792'; + $emojiName = 'emojiName749661924'; + $temporaryImageUri = 'temporaryImageUri-241827814'; + $expectedResponse = new CustomEmoji(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setEmojiName($emojiName); + $expectedResponse->setTemporaryImageUri($temporaryImageUri); + $transport->addResponse($expectedResponse); + // Mock request + $customEmoji = new CustomEmoji(); + $request = (new CreateCustomEmojiRequest()) + ->setCustomEmoji($customEmoji); + $response = $gapicClient->createCustomEmoji($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CreateCustomEmoji', $actualFuncCall); + $actualValue = $actualRequestObject->getCustomEmoji(); + $this->assertProtobufEquals($customEmoji, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomEmojiExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $customEmoji = new CustomEmoji(); + $request = (new CreateCustomEmojiRequest()) + ->setCustomEmoji($customEmoji); + try { + $gapicClient->createCustomEmoji($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMembershipTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new Membership(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $membership = new Membership(); + $request = (new CreateMembershipRequest()) + ->setParent($formattedParent) + ->setMembership($membership); + $response = $gapicClient->createMembership($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CreateMembership', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getMembership(); + $this->assertProtobufEquals($membership, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMembershipExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $membership = new Membership(); + $request = (new CreateMembershipRequest()) + ->setParent($formattedParent) + ->setMembership($membership); + try { + $gapicClient->createMembership($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMessageTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $text = 'text3556653'; + $formattedText = 'formattedText-1686936880'; + $fallbackText = 'fallbackText563106922'; + $argumentText = 'argumentText-39826065'; + $threadReply = false; + $silent = false; + $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; + $expectedResponse = new Message(); + $expectedResponse->setName($name); + $expectedResponse->setText($text); + $expectedResponse->setFormattedText($formattedText); + $expectedResponse->setFallbackText($fallbackText); + $expectedResponse->setArgumentText($argumentText); + $expectedResponse->setThreadReply($threadReply); + $expectedResponse->setSilent($silent); + $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $message = new Message(); + $request = (new CreateMessageRequest()) + ->setParent($formattedParent) + ->setMessage($message); + $response = $gapicClient->createMessage($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CreateMessage', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getMessage(); + $this->assertProtobufEquals($message, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMessageExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $message = new Message(); + $request = (new CreateMessageRequest()) + ->setParent($formattedParent) + ->setMessage($message); + try { + $gapicClient->createMessage($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReactionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new Reaction(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $reaction = new Reaction(); + $reactionEmoji = new Emoji(); + $reaction->setEmoji($reactionEmoji); + $request = (new CreateReactionRequest()) + ->setParent($formattedParent) + ->setReaction($reaction); + $response = $gapicClient->createReaction($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CreateReaction', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReaction(); + $this->assertProtobufEquals($reaction, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReactionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $reaction = new Reaction(); + $reactionEmoji = new Emoji(); + $reaction->setEmoji($reactionEmoji); + $request = (new CreateReactionRequest()) + ->setParent($formattedParent) + ->setReaction($reaction); + try { + $gapicClient->createReaction($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $sortOrder = 374296211; + $expectedResponse = new Section(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSortOrder($sortOrder); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->userName('[USER]'); + $section = new Section(); + $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; + $section->setType($sectionType); + $request = (new CreateSectionRequest()) + ->setParent($formattedParent) + ->setSection($section); + $response = $gapicClient->createSection($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CreateSection', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSection(); + $this->assertProtobufEquals($section, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->userName('[USER]'); + $section = new Section(); + $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; + $section->setType($sectionType); + $request = (new CreateSectionRequest()) + ->setParent($formattedParent) + ->setSection($section); + try { + $gapicClient->createSection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSpaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $singleUserBotDm = true; + $threaded = false; + $displayName = 'displayName1615086568'; + $externalUserAllowed = true; + $importMode = false; + $adminInstalled = true; + $customer = 'customer606175198'; + $spaceUri = 'spaceUri-953552205'; + $expectedResponse = new Space(); + $expectedResponse->setName($name); + $expectedResponse->setSingleUserBotDm($singleUserBotDm); + $expectedResponse->setThreaded($threaded); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setExternalUserAllowed($externalUserAllowed); + $expectedResponse->setImportMode($importMode); + $expectedResponse->setAdminInstalled($adminInstalled); + $expectedResponse->setCustomer($customer); + $expectedResponse->setSpaceUri($spaceUri); + $transport->addResponse($expectedResponse); + // Mock request + $space = new Space(); + $request = (new CreateSpaceRequest()) + ->setSpace($space); + $response = $gapicClient->createSpace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CreateSpace', $actualFuncCall); + $actualValue = $actualRequestObject->getSpace(); + $this->assertProtobufEquals($space, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSpaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $space = new Space(); + $request = (new CreateSpaceRequest()) + ->setSpace($space); + try { + $gapicClient->createSpace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteCustomEmojiTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); + $request = (new DeleteCustomEmojiRequest()) + ->setName($formattedName); + $gapicClient->deleteCustomEmoji($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/DeleteCustomEmoji', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteCustomEmojiExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); + $request = (new DeleteCustomEmojiRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteCustomEmoji($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMembershipTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Membership(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); + $request = (new DeleteMembershipRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteMembership($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/DeleteMembership', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMembershipExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); + $request = (new DeleteMembershipRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteMembership($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMessageTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $request = (new DeleteMessageRequest()) + ->setName($formattedName); + $gapicClient->deleteMessage($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/DeleteMessage', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMessageExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $request = (new DeleteMessageRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteMessage($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteReactionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); + $request = (new DeleteReactionRequest()) + ->setName($formattedName); + $gapicClient->deleteReaction($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/DeleteReaction', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteReactionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); + $request = (new DeleteReactionRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteReaction($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new DeleteSectionRequest()) + ->setName($formattedName); + $gapicClient->deleteSection($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/DeleteSection', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new DeleteSectionRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteSection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSpaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->spaceName('[SPACE]'); + $request = (new DeleteSpaceRequest()) + ->setName($formattedName); + $gapicClient->deleteSpace($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/DeleteSpace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSpaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->spaceName('[SPACE]'); + $request = (new DeleteSpaceRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteSpace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function findDirectMessageTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $singleUserBotDm = true; + $threaded = false; + $displayName = 'displayName1615086568'; + $externalUserAllowed = true; + $importMode = false; + $adminInstalled = true; + $customer = 'customer606175198'; + $spaceUri = 'spaceUri-953552205'; + $expectedResponse = new Space(); + $expectedResponse->setName($name2); + $expectedResponse->setSingleUserBotDm($singleUserBotDm); + $expectedResponse->setThreaded($threaded); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setExternalUserAllowed($externalUserAllowed); + $expectedResponse->setImportMode($importMode); + $expectedResponse->setAdminInstalled($adminInstalled); + $expectedResponse->setCustomer($customer); + $expectedResponse->setSpaceUri($spaceUri); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new FindDirectMessageRequest()) + ->setName($name); + $response = $gapicClient->findDirectMessage($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/FindDirectMessage', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function findDirectMessageExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $request = (new FindDirectMessageRequest()) + ->setName($name); + try { + $gapicClient->findDirectMessage($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function findGroupChatsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $spacesElement = new Space(); + $spaces = [ + $spacesElement, + ]; + $expectedResponse = new FindGroupChatsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSpaces($spaces); + $transport->addResponse($expectedResponse); + $request = new FindGroupChatsRequest(); + $response = $gapicClient->findGroupChats($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/FindGroupChats', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function findGroupChatsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new FindGroupChatsRequest(); + try { + $gapicClient->findGroupChats($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttachmentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $contentName = 'contentName831644305'; + $contentType = 'contentType831846208'; + $thumbnailUri = 'thumbnailUri1825632153'; + $downloadUri = 'downloadUri1109408053'; + $expectedResponse = new Attachment(); + $expectedResponse->setName($name2); + $expectedResponse->setContentName($contentName); + $expectedResponse->setContentType($contentType); + $expectedResponse->setThumbnailUri($thumbnailUri); + $expectedResponse->setDownloadUri($downloadUri); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); + $request = (new GetAttachmentRequest()) + ->setName($formattedName); + $response = $gapicClient->getAttachment($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetAttachment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttachmentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); + $request = (new GetAttachmentRequest()) + ->setName($formattedName); + try { + $gapicClient->getAttachment($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomEmojiTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $emojiName = 'emojiName749661924'; + $temporaryImageUri = 'temporaryImageUri-241827814'; + $expectedResponse = new CustomEmoji(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setEmojiName($emojiName); + $expectedResponse->setTemporaryImageUri($temporaryImageUri); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); + $request = (new GetCustomEmojiRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomEmoji($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetCustomEmoji', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomEmojiExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); + $request = (new GetCustomEmojiRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomEmoji($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMembershipTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Membership(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); + $request = (new GetMembershipRequest()) + ->setName($formattedName); + $response = $gapicClient->getMembership($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetMembership', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMembershipExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); + $request = (new GetMembershipRequest()) + ->setName($formattedName); + try { + $gapicClient->getMembership($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMessageTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $text = 'text3556653'; + $formattedText = 'formattedText-1686936880'; + $fallbackText = 'fallbackText563106922'; + $argumentText = 'argumentText-39826065'; + $threadReply = false; + $silent = false; + $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; + $expectedResponse = new Message(); + $expectedResponse->setName($name2); + $expectedResponse->setText($text); + $expectedResponse->setFormattedText($formattedText); + $expectedResponse->setFallbackText($fallbackText); + $expectedResponse->setArgumentText($argumentText); + $expectedResponse->setThreadReply($threadReply); + $expectedResponse->setSilent($silent); + $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $request = (new GetMessageRequest()) + ->setName($formattedName); + $response = $gapicClient->getMessage($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetMessage', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMessageExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $request = (new GetMessageRequest()) + ->setName($formattedName); + try { + $gapicClient->getMessage($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $singleUserBotDm = true; + $threaded = false; + $displayName = 'displayName1615086568'; + $externalUserAllowed = true; + $importMode = false; + $adminInstalled = true; + $customer = 'customer606175198'; + $spaceUri = 'spaceUri-953552205'; + $expectedResponse = new Space(); + $expectedResponse->setName($name2); + $expectedResponse->setSingleUserBotDm($singleUserBotDm); + $expectedResponse->setThreaded($threaded); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setExternalUserAllowed($externalUserAllowed); + $expectedResponse->setImportMode($importMode); + $expectedResponse->setAdminInstalled($adminInstalled); + $expectedResponse->setCustomer($customer); + $expectedResponse->setSpaceUri($spaceUri); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->spaceName('[SPACE]'); + $request = (new GetSpaceRequest()) + ->setName($formattedName); + $response = $gapicClient->getSpace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetSpace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->spaceName('[SPACE]'); + $request = (new GetSpaceRequest()) + ->setName($formattedName); + try { + $gapicClient->getSpace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $eventType = 'eventType984376767'; + $expectedResponse = new SpaceEvent(); + $expectedResponse->setName($name2); + $expectedResponse->setEventType($eventType); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->spaceEventName('[SPACE]', '[SPACE_EVENT]'); + $request = (new GetSpaceEventRequest()) + ->setName($formattedName); + $response = $gapicClient->getSpaceEvent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetSpaceEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->spaceEventName('[SPACE]', '[SPACE_EVENT]'); + $request = (new GetSpaceEventRequest()) + ->setName($formattedName); + try { + $gapicClient->getSpaceEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceNotificationSettingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new SpaceNotificationSetting(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->spaceNotificationSettingName('[USER]', '[SPACE]'); + $request = (new GetSpaceNotificationSettingRequest()) + ->setName($formattedName); + $response = $gapicClient->getSpaceNotificationSetting($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetSpaceNotificationSetting', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceNotificationSettingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->spaceNotificationSettingName('[USER]', '[SPACE]'); + $request = (new GetSpaceNotificationSettingRequest()) + ->setName($formattedName); + try { + $gapicClient->getSpaceNotificationSetting($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceReadStateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new SpaceReadState(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->spaceReadStateName('[USER]', '[SPACE]'); + $request = (new GetSpaceReadStateRequest()) + ->setName($formattedName); + $response = $gapicClient->getSpaceReadState($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetSpaceReadState', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSpaceReadStateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->spaceReadStateName('[USER]', '[SPACE]'); + $request = (new GetSpaceReadStateRequest()) + ->setName($formattedName); + try { + $gapicClient->getSpaceReadState($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getThreadReadStateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new ThreadReadState(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); + $request = (new GetThreadReadStateRequest()) + ->setName($formattedName); + $response = $gapicClient->getThreadReadState($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/GetThreadReadState', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getThreadReadStateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); + $request = (new GetThreadReadStateRequest()) + ->setName($formattedName); + try { + $gapicClient->getThreadReadState($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomEmojisTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customEmojisElement = new CustomEmoji(); + $customEmojis = [ + $customEmojisElement, + ]; + $expectedResponse = new ListCustomEmojisResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomEmojis($customEmojis); + $transport->addResponse($expectedResponse); + $request = new ListCustomEmojisRequest(); + $response = $gapicClient->listCustomEmojis($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomEmojis()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListCustomEmojis', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomEmojisExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListCustomEmojisRequest(); + try { + $gapicClient->listCustomEmojis($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMembershipsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $membershipsElement = new Membership(); + $memberships = [ + $membershipsElement, + ]; + $expectedResponse = new ListMembershipsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMemberships($memberships); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $request = (new ListMembershipsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMemberships($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMemberships()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListMemberships', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMembershipsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $request = (new ListMembershipsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMemberships($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMessagesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $messagesElement = new Message(); + $messages = [ + $messagesElement, + ]; + $expectedResponse = new ListMessagesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMessages($messages); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $request = (new ListMessagesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMessages($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMessages()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListMessages', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMessagesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $request = (new ListMessagesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMessages($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReactionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $reactionsElement = new Reaction(); + $reactions = [ + $reactionsElement, + ]; + $expectedResponse = new ListReactionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReactions($reactions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $request = (new ListReactionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listReactions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReactions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListReactions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReactionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); + $request = (new ListReactionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listReactions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSectionItemsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $sectionItemsElement = new SectionItem(); + $sectionItems = [ + $sectionItemsElement, + ]; + $expectedResponse = new ListSectionItemsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSectionItems($sectionItems); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new ListSectionItemsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listSectionItems($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSectionItems()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListSectionItems', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSectionItemsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new ListSectionItemsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listSectionItems($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSectionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $sectionsElement = new Section(); + $sections = [ + $sectionsElement, + ]; + $expectedResponse = new ListSectionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSections($sections); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->userName('[USER]'); + $request = (new ListSectionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listSections($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSections()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListSections', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSectionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->userName('[USER]'); + $request = (new ListSectionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listSections($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSpaceEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $spaceEventsElement = new SpaceEvent(); + $spaceEvents = [ + $spaceEventsElement, + ]; + $expectedResponse = new ListSpaceEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSpaceEvents($spaceEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $filter = 'filter-1274492040'; + $request = (new ListSpaceEventsRequest()) + ->setParent($formattedParent) + ->setFilter($filter); + $response = $gapicClient->listSpaceEvents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSpaceEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListSpaceEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSpaceEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $filter = 'filter-1274492040'; + $request = (new ListSpaceEventsRequest()) + ->setParent($formattedParent) + ->setFilter($filter); + try { + $gapicClient->listSpaceEvents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSpacesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $spacesElement = new Space(); + $spaces = [ + $spacesElement, + ]; + $expectedResponse = new ListSpacesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSpaces($spaces); + $transport->addResponse($expectedResponse); + $request = new ListSpacesRequest(); + $response = $gapicClient->listSpaces($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/ListSpaces', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSpacesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListSpacesRequest(); + try { + $gapicClient->listSpaces($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveSectionItemTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MoveSectionItemResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->sectionItemName('[USER]', '[SECTION]', '[ITEM]'); + $formattedTargetSection = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new MoveSectionItemRequest()) + ->setName($formattedName) + ->setTargetSection($formattedTargetSection); + $response = $gapicClient->moveSectionItem($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/MoveSectionItem', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getTargetSection(); + $this->assertProtobufEquals($formattedTargetSection, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveSectionItemExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->sectionItemName('[USER]', '[SECTION]', '[ITEM]'); + $formattedTargetSection = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new MoveSectionItemRequest()) + ->setName($formattedName) + ->setTargetSection($formattedTargetSection); + try { + $gapicClient->moveSectionItem($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function positionSectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new PositionSectionResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new PositionSectionRequest()) + ->setName($formattedName); + $response = $gapicClient->positionSection($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/PositionSection', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function positionSectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); + $request = (new PositionSectionRequest()) + ->setName($formattedName); + try { + $gapicClient->positionSection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchSpacesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $spacesElement = new Space(); + $spaces = [ + $spacesElement, + ]; + $expectedResponse = new SearchSpacesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setSpaces($spaces); + $transport->addResponse($expectedResponse); + // Mock request + $query = 'query107944136'; + $request = (new SearchSpacesRequest()) + ->setQuery($query); + $response = $gapicClient->searchSpaces($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/SearchSpaces', $actualFuncCall); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchSpacesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $query = 'query107944136'; + $request = (new SearchSpacesRequest()) + ->setQuery($query); + try { + $gapicClient->searchSpaces($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setUpSpaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $singleUserBotDm = true; + $threaded = false; + $displayName = 'displayName1615086568'; + $externalUserAllowed = true; + $importMode = false; + $adminInstalled = true; + $customer = 'customer606175198'; + $spaceUri = 'spaceUri-953552205'; + $expectedResponse = new Space(); + $expectedResponse->setName($name); + $expectedResponse->setSingleUserBotDm($singleUserBotDm); + $expectedResponse->setThreaded($threaded); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setExternalUserAllowed($externalUserAllowed); + $expectedResponse->setImportMode($importMode); + $expectedResponse->setAdminInstalled($adminInstalled); + $expectedResponse->setCustomer($customer); + $expectedResponse->setSpaceUri($spaceUri); + $transport->addResponse($expectedResponse); + // Mock request + $space = new Space(); + $request = (new SetUpSpaceRequest()) + ->setSpace($space); + $response = $gapicClient->setUpSpace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/SetUpSpace', $actualFuncCall); + $actualValue = $actualRequestObject->getSpace(); + $this->assertProtobufEquals($space, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setUpSpaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $space = new Space(); + $request = (new SetUpSpaceRequest()) + ->setSpace($space); + try { + $gapicClient->setUpSpace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMembershipTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new Membership(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $membership = new Membership(); + $updateMask = new FieldMask(); + $request = (new UpdateMembershipRequest()) + ->setMembership($membership) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateMembership($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/UpdateMembership', $actualFuncCall); + $actualValue = $actualRequestObject->getMembership(); + $this->assertProtobufEquals($membership, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMembershipExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $membership = new Membership(); + $updateMask = new FieldMask(); + $request = (new UpdateMembershipRequest()) + ->setMembership($membership) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateMembership($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMessageTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $text = 'text3556653'; + $formattedText = 'formattedText-1686936880'; + $fallbackText = 'fallbackText563106922'; + $argumentText = 'argumentText-39826065'; + $threadReply = false; + $silent = false; + $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; + $expectedResponse = new Message(); + $expectedResponse->setName($name); + $expectedResponse->setText($text); + $expectedResponse->setFormattedText($formattedText); + $expectedResponse->setFallbackText($fallbackText); + $expectedResponse->setArgumentText($argumentText); + $expectedResponse->setThreadReply($threadReply); + $expectedResponse->setSilent($silent); + $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); + $transport->addResponse($expectedResponse); + // Mock request + $message = new Message(); + $updateMask = new FieldMask(); + $request = (new UpdateMessageRequest()) + ->setMessage($message) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateMessage($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/UpdateMessage', $actualFuncCall); + $actualValue = $actualRequestObject->getMessage(); + $this->assertProtobufEquals($message, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMessageExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $message = new Message(); + $updateMask = new FieldMask(); + $request = (new UpdateMessageRequest()) + ->setMessage($message) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateMessage($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $sortOrder = 374296211; + $expectedResponse = new Section(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSortOrder($sortOrder); + $transport->addResponse($expectedResponse); + // Mock request + $section = new Section(); + $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; + $section->setType($sectionType); + $updateMask = new FieldMask(); + $request = (new UpdateSectionRequest()) + ->setSection($section) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateSection($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/UpdateSection', $actualFuncCall); + $actualValue = $actualRequestObject->getSection(); + $this->assertProtobufEquals($section, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $section = new Section(); + $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; + $section->setType($sectionType); + $updateMask = new FieldMask(); + $request = (new UpdateSectionRequest()) + ->setSection($section) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateSection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSpaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $singleUserBotDm = true; + $threaded = false; + $displayName = 'displayName1615086568'; + $externalUserAllowed = true; + $importMode = false; + $adminInstalled = true; + $customer = 'customer606175198'; + $spaceUri = 'spaceUri-953552205'; + $expectedResponse = new Space(); + $expectedResponse->setName($name); + $expectedResponse->setSingleUserBotDm($singleUserBotDm); + $expectedResponse->setThreaded($threaded); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setExternalUserAllowed($externalUserAllowed); + $expectedResponse->setImportMode($importMode); + $expectedResponse->setAdminInstalled($adminInstalled); + $expectedResponse->setCustomer($customer); + $expectedResponse->setSpaceUri($spaceUri); + $transport->addResponse($expectedResponse); + // Mock request + $space = new Space(); + $updateMask = new FieldMask(); + $request = (new UpdateSpaceRequest()) + ->setSpace($space) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateSpace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/UpdateSpace', $actualFuncCall); + $actualValue = $actualRequestObject->getSpace(); + $this->assertProtobufEquals($space, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSpaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $space = new Space(); + $updateMask = new FieldMask(); + $request = (new UpdateSpaceRequest()) + ->setSpace($space) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateSpace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSpaceNotificationSettingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new SpaceNotificationSetting(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $spaceNotificationSetting = new SpaceNotificationSetting(); + $updateMask = new FieldMask(); + $request = (new UpdateSpaceNotificationSettingRequest()) + ->setSpaceNotificationSetting($spaceNotificationSetting) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateSpaceNotificationSetting($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/UpdateSpaceNotificationSetting', $actualFuncCall); + $actualValue = $actualRequestObject->getSpaceNotificationSetting(); + $this->assertProtobufEquals($spaceNotificationSetting, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSpaceNotificationSettingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $spaceNotificationSetting = new SpaceNotificationSetting(); + $updateMask = new FieldMask(); + $request = (new UpdateSpaceNotificationSettingRequest()) + ->setSpaceNotificationSetting($spaceNotificationSetting) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateSpaceNotificationSetting($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSpaceReadStateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new SpaceReadState(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $spaceReadState = new SpaceReadState(); + $updateMask = new FieldMask(); + $request = (new UpdateSpaceReadStateRequest()) + ->setSpaceReadState($spaceReadState) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateSpaceReadState($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/UpdateSpaceReadState', $actualFuncCall); + $actualValue = $actualRequestObject->getSpaceReadState(); + $this->assertProtobufEquals($spaceReadState, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSpaceReadStateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $spaceReadState = new SpaceReadState(); + $updateMask = new FieldMask(); + $request = (new UpdateSpaceReadStateRequest()) + ->setSpaceReadState($spaceReadState) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateSpaceReadState($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function uploadAttachmentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new UploadAttachmentResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $filename = 'filename-734768633'; + $request = (new UploadAttachmentRequest()) + ->setParent($formattedParent) + ->setFilename($filename); + $response = $gapicClient->uploadAttachment($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/UploadAttachment', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFilename(); + $this->assertProtobufEquals($filename, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function uploadAttachmentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->spaceName('[SPACE]'); + $filename = 'filename-734768633'; + $request = (new UploadAttachmentRequest()) + ->setParent($formattedParent) + ->setFilename($filename); + try { + $gapicClient->uploadAttachment($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeImportSpaceAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CompleteImportSpaceResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->spaceName('[SPACE]'); + $request = (new CompleteImportSpaceRequest()) + ->setName($formattedName); + $response = $gapicClient->completeImportSpaceAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.chat.v1.ChatService/CompleteImportSpace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 24b0a0e9341c3b9acec0b9caed20dddcb53ac32a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 17 Jun 2026 23:14:59 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- AppsChat/metadata/Chat/V1/Message.php | 2 +- .../src/Chat/V1/QuotedMessageMetadata.php | 3 - .../V1/QuotedMessageMetadata/QuoteType.php | 12 +- .../GPBMetadata/Google/Apps/Card/V1/Card.php | 25 - .../proto/src/Google/Apps/Card/V1/Action.php | 431 --- .../Apps/Card/V1/Action/ActionParameter.php | 108 - .../Apps/Card/V1/Action/Interaction.php | 71 - .../Apps/Card/V1/Action/LoadIndicator.php | 57 - .../src/Google/Apps/Card/V1/BorderStyle.php | 208 -- .../Apps/Card/V1/BorderStyle/BorderType.php | 63 - .../proto/src/Google/Apps/Card/V1/Button.php | 418 --- .../src/Google/Apps/Card/V1/Button/Type.php | 86 - .../src/Google/Apps/Card/V1/ButtonList.php | 72 - .../v1/proto/src/Google/Apps/Card/V1/Card.php | 641 ---- .../Google/Apps/Card/V1/Card/CardAction.php | 115 - .../Apps/Card/V1/Card/CardFixedFooter.php | 143 - .../Google/Apps/Card/V1/Card/CardHeader.php | 230 -- .../Google/Apps/Card/V1/Card/DisplayStyle.php | 68 - .../Google/Apps/Card/V1/Card/DividerStyle.php | 65 - .../Google/Apps/Card/V1/Card/NestedWidget.php | 143 - .../src/Google/Apps/Card/V1/Card/Section.php | 304 -- .../src/Google/Apps/Card/V1/Carousel.php | 104 - .../Apps/Card/V1/Carousel/CarouselCard.php | 110 - .../v1/proto/src/Google/Apps/Card/V1/Chip.php | 302 -- .../src/Google/Apps/Card/V1/ChipList.php | 104 - .../Google/Apps/Card/V1/ChipList/Layout.php | 62 - .../Google/Apps/Card/V1/CollapseControl.php | 181 - .../proto/src/Google/Apps/Card/V1/Columns.php | 93 - .../Google/Apps/Card/V1/Columns/Column.php | 183 - .../V1/Columns/Column/HorizontalSizeStyle.php | 68 - .../V1/Columns/Column/VerticalAlignment.php | 71 - .../Apps/Card/V1/Columns/Column/Widgets.php | 308 -- .../Google/Apps/Card/V1/DateTimePicker.php | 327 -- .../V1/DateTimePicker/DateTimePickerType.php | 64 - .../src/Google/Apps/Card/V1/DecoratedText.php | 682 ---- .../Card/V1/DecoratedText/SwitchControl.php | 244 -- .../SwitchControl/ControlType.php | 67 - .../proto/src/Google/Apps/Card/V1/Divider.php | 42 - .../v1/proto/src/Google/Apps/Card/V1/Grid.php | 281 -- .../src/Google/Apps/Card/V1/Grid/GridItem.php | 220 -- .../Card/V1/Grid/GridItem/GridItemLayout.php | 63 - .../v1/proto/src/Google/Apps/Card/V1/Icon.php | 318 -- .../proto/src/Google/Apps/Card/V1/Image.php | 165 - .../Google/Apps/Card/V1/ImageComponent.php | 191 - .../Google/Apps/Card/V1/ImageCropStyle.php | 138 - .../Card/V1/ImageCropStyle/ImageCropType.php | 78 - .../src/Google/Apps/Card/V1/MaterialIcon.php | 250 -- .../proto/src/Google/Apps/Card/V1/OnClick.php | 231 -- .../src/Google/Apps/Card/V1/OpenLink.php | 157 - .../Google/Apps/Card/V1/OpenLink/OnClose.php | 64 - .../Google/Apps/Card/V1/OpenLink/OpenAs.php | 61 - .../src/Google/Apps/Card/V1/OverflowMenu.php | 73 - .../Card/V1/OverflowMenu/OverflowMenuItem.php | 203 -- .../Google/Apps/Card/V1/SelectionInput.php | 468 --- .../V1/SelectionInput/PlatformDataSource.php | 82 - .../PlatformDataSource/CommonDataSource.php | 58 - .../Card/V1/SelectionInput/SelectionItem.php | 233 -- .../Card/V1/SelectionInput/SelectionType.php | 117 - .../src/Google/Apps/Card/V1/Suggestions.php | 84 - .../Card/V1/Suggestions/SuggestionItem.php | 80 - .../src/Google/Apps/Card/V1/TextInput.php | 587 --- .../Google/Apps/Card/V1/TextInput/Type.php | 59 - .../src/Google/Apps/Card/V1/TextParagraph.php | 175 - .../Apps/Card/V1/TextParagraph/TextSyntax.php | 62 - .../src/Google/Apps/Card/V1/Validation.php | 123 - .../Apps/Card/V1/Validation/InputType.php | 82 - .../proto/src/Google/Apps/Card/V1/Widget.php | 1251 ------- .../Card/V1/Widget/HorizontalAlignment.php | 73 - .../Google/Apps/Card/V1/Widget/ImageType.php | 58 - .../Apps/Card/V1/Widget/VerticalAlignment.php | 68 - .../Google/Chat/V1/ActionStatus.php | 25 - .../GPBMetadata/Google/Chat/V1/Annotation.php | 29 - .../GPBMetadata/Google/Chat/V1/Attachment.php | 26 - .../Google/Chat/V1/ChatService.php | 38 - .../Google/Chat/V1/ContextualAddon.php | 25 - .../Google/Chat/V1/DeletionMetadata.php | 24 - .../Google/Chat/V1/EventPayload.php | 29 - .../src/GPBMetadata/Google/Chat/V1/Group.php | 24 - .../Google/Chat/V1/HistoryState.php | 24 - .../GPBMetadata/Google/Chat/V1/MatchedUrl.php | 25 - .../GPBMetadata/Google/Chat/V1/Membership.php | 30 - .../GPBMetadata/Google/Chat/V1/Message.php | 39 - .../GPBMetadata/Google/Chat/V1/Reaction.php | 28 - .../GPBMetadata/Google/Chat/V1/Section.php | 27 - .../Google/Chat/V1/SlashCommand.php | 24 - .../src/GPBMetadata/Google/Chat/V1/Space.php | 29 - .../GPBMetadata/Google/Chat/V1/SpaceEvent.php | 28 - .../Chat/V1/SpaceNotificationSetting.php | 27 - .../Google/Chat/V1/SpaceReadState.php | 28 - .../GPBMetadata/Google/Chat/V1/SpaceSetup.php | 27 - .../Google/Chat/V1/ThreadReadState.php | 27 - .../src/GPBMetadata/Google/Chat/V1/User.php | 25 - .../GPBMetadata/Google/Chat/V1/Widgets.php | 24 - .../Google/Apps/Chat/V1/AccessoryWidget.php | 77 - .../Google/Apps/Chat/V1/ActionResponse.php | 201 -- .../Chat/V1/ActionResponse/ResponseType.php | 93 - .../Chat/V1/ActionResponse/SelectionItems.php | 67 - .../Chat/V1/ActionResponse/UpdatedWidget.php | 114 - .../src/Google/Apps/Chat/V1/ActionStatus.php | 106 - .../src/Google/Apps/Chat/V1/Annotation.php | 319 -- .../Google/Apps/Chat/V1/AnnotationType.php | 75 - .../src/Google/Apps/Chat/V1/AttachedGif.php | 67 - .../src/Google/Apps/Chat/V1/Attachment.php | 341 -- .../Google/Apps/Chat/V1/Attachment/Source.php | 61 - .../Google/Apps/Chat/V1/AttachmentDataRef.php | 113 - .../Apps/Chat/V1/CalendarEventLinkData.php | 117 - .../src/Google/Apps/Chat/V1/CardWithId.php | 121 - .../Google/Apps/Chat/V1/ChatSpaceLinkData.php | 147 - .../Chat/V1/CompleteImportSpaceRequest.php | 71 - .../Chat/V1/CompleteImportSpaceResponse.php | 77 - .../Apps/Chat/V1/ContextualAddOnMarkup.php | 33 - .../Chat/V1/ContextualAddOnMarkup/Card.php | 180 - .../ContextualAddOnMarkup/Card/CardAction.php | 115 - .../ContextualAddOnMarkup/Card/CardHeader.php | 175 - .../Card/CardHeader/ImageStyle.php | 57 - .../V1/ContextualAddOnMarkup/Card/Section.php | 136 - .../Apps/Chat/V1/CreateCustomEmojiRequest.php | 90 - .../Apps/Chat/V1/CreateMembershipRequest.php | 350 -- .../V1/CreateMessageNotificationOptions.php | 67 - .../NotificationType.php | 72 - .../Apps/Chat/V1/CreateMessageRequest.php | 444 --- .../MessageReplyOption.php | 71 - .../Apps/Chat/V1/CreateReactionRequest.php | 133 - .../Apps/Chat/V1/CreateSectionRequest.php | 133 - .../Apps/Chat/V1/CreateSpaceRequest.php | 182 - .../src/Google/Apps/Chat/V1/CustomEmoji.php | 257 -- .../V1/CustomEmoji/CustomEmojiPayload.php | 117 - .../Apps/Chat/V1/CustomEmojiMetadata.php | 77 - .../Apps/Chat/V1/DeleteCustomEmojiRequest.php | 103 - .../Apps/Chat/V1/DeleteMembershipRequest.php | 216 -- .../Apps/Chat/V1/DeleteMessageRequest.php | 162 - .../Apps/Chat/V1/DeleteReactionRequest.php | 87 - .../Apps/Chat/V1/DeleteSectionRequest.php | 88 - .../Apps/Chat/V1/DeleteSpaceRequest.php | 145 - .../Google/Apps/Chat/V1/DeletionMetadata.php | 68 - .../Chat/V1/DeletionMetadata/DeletionType.php | 104 - .../proto/src/Google/Apps/Chat/V1/Dialog.php | 85 - .../src/Google/Apps/Chat/V1/DialogAction.php | 139 - .../src/Google/Apps/Chat/V1/DriveDataRef.php | 67 - .../src/Google/Apps/Chat/V1/DriveLinkData.php | 119 - .../proto/src/Google/Apps/Chat/V1/Emoji.php | 108 - .../Apps/Chat/V1/EmojiReactionSummary.php | 121 - .../Apps/Chat/V1/FindDirectMessageRequest.php | 111 - .../Apps/Chat/V1/FindGroupChatsRequest.php | 277 -- .../Apps/Chat/V1/FindGroupChatsResponse.php | 106 - .../Google/Apps/Chat/V1/ForwardedMetadata.php | 121 - .../Apps/Chat/V1/GetAttachmentRequest.php | 86 - .../Apps/Chat/V1/GetCustomEmojiRequest.php | 103 - .../Apps/Chat/V1/GetMembershipRequest.php | 185 - .../Google/Apps/Chat/V1/GetMessageRequest.php | 108 - .../Apps/Chat/V1/GetSpaceEventRequest.php | 87 - .../V1/GetSpaceNotificationSettingRequest.php | 103 - .../Apps/Chat/V1/GetSpaceReadStateRequest.php | 127 - .../Google/Apps/Chat/V1/GetSpaceRequest.php | 145 - .../Chat/V1/GetThreadReadStateRequest.php | 132 - .../proto/src/Google/Apps/Chat/V1/Group.php | 83 - .../src/Google/Apps/Chat/V1/HistoryState.php | 65 - .../Apps/Chat/V1/ListCustomEmojisRequest.php | 199 - .../Apps/Chat/V1/ListCustomEmojisResponse.php | 105 - .../Apps/Chat/V1/ListMembershipsRequest.php | 512 --- .../Apps/Chat/V1/ListMembershipsResponse.php | 105 - .../Apps/Chat/V1/ListMessagesRequest.php | 417 --- .../Apps/Chat/V1/ListMessagesResponse.php | 105 - .../Apps/Chat/V1/ListReactionsRequest.php | 345 -- .../Apps/Chat/V1/ListReactionsResponse.php | 105 - .../Apps/Chat/V1/ListSectionItemsRequest.php | 258 -- .../Apps/Chat/V1/ListSectionItemsResponse.php | 105 - .../Apps/Chat/V1/ListSectionsRequest.php | 219 -- .../Apps/Chat/V1/ListSectionsResponse.php | 105 - .../Apps/Chat/V1/ListSpaceEventsRequest.php | 444 --- .../Apps/Chat/V1/ListSpaceEventsResponse.php | 113 - .../Google/Apps/Chat/V1/ListSpacesRequest.php | 219 -- .../Apps/Chat/V1/ListSpacesResponse.php | 113 - .../src/Google/Apps/Chat/V1/MatchedUrl.php | 69 - .../Google/Apps/Chat/V1/MeetSpaceLinkData.php | 139 - .../V1/MeetSpaceLinkData/HuddleStatus.php | 70 - .../Apps/Chat/V1/MeetSpaceLinkData/Type.php | 61 - .../src/Google/Apps/Chat/V1/Membership.php | 348 -- .../Chat/V1/Membership/MembershipRole.php | 111 - .../Chat/V1/Membership/MembershipState.php | 70 - .../V1/MembershipBatchCreatedEventData.php | 68 - .../V1/MembershipBatchDeletedEventData.php | 68 - .../V1/MembershipBatchUpdatedEventData.php | 68 - .../Chat/V1/MembershipCreatedEventData.php | 78 - .../Chat/V1/MembershipDeletedEventData.php | 78 - .../Chat/V1/MembershipUpdatedEventData.php | 78 - .../proto/src/Google/Apps/Chat/V1/Message.php | 1496 -------- .../Chat/V1/MessageBatchCreatedEventData.php | 68 - .../Chat/V1/MessageBatchDeletedEventData.php | 68 - .../Chat/V1/MessageBatchUpdatedEventData.php | 68 - .../Apps/Chat/V1/MessageCreatedEventData.php | 78 - .../Apps/Chat/V1/MessageDeletedEventData.php | 82 - .../Apps/Chat/V1/MessageUpdatedEventData.php | 78 - .../Apps/Chat/V1/MoveSectionItemRequest.php | 130 - .../Apps/Chat/V1/MoveSectionItemResponse.php | 77 - .../Apps/Chat/V1/PositionSectionRequest.php | 161 - .../V1/PositionSectionRequest/Position.php | 61 - .../Apps/Chat/V1/PositionSectionResponse.php | 77 - .../Apps/Chat/V1/QuotedMessageMetadata.php | 269 -- .../V1/QuotedMessageMetadata/QuoteType.php | 67 - .../Apps/Chat/V1/QuotedMessageSnapshot.php | 228 -- .../src/Google/Apps/Chat/V1/Reaction.php | 159 - .../Chat/V1/ReactionBatchCreatedEventData.php | 68 - .../Chat/V1/ReactionBatchDeletedEventData.php | 68 - .../Apps/Chat/V1/ReactionCreatedEventData.php | 78 - .../Apps/Chat/V1/ReactionDeletedEventData.php | 78 - .../Google/Apps/Chat/V1/RichLinkMetadata.php | 245 -- .../Chat/V1/RichLinkMetadata/RichLinkType.php | 84 - .../Apps/Chat/V1/SearchSpacesRequest.php | 539 --- .../Apps/Chat/V1/SearchSpacesResponse.php | 143 - .../proto/src/Google/Apps/Chat/V1/Section.php | 218 -- .../Apps/Chat/V1/Section/SectionType.php | 79 - .../src/Google/Apps/Chat/V1/SectionItem.php | 117 - .../Google/Apps/Chat/V1/SetUpSpaceRequest.php | 317 -- .../src/Google/Apps/Chat/V1/SlashCommand.php | 69 - .../Apps/Chat/V1/SlashCommandMetadata.php | 213 -- .../Chat/V1/SlashCommandMetadata/Type.php | 59 - .../proto/src/Google/Apps/Chat/V1/Space.php | 1125 ------ .../Apps/Chat/V1/Space/AccessSettings.php | 186 - .../V1/Space/AccessSettings/AccessState.php | 73 - .../Apps/Chat/V1/Space/MembershipCount.php | 105 - .../Apps/Chat/V1/Space/PermissionSetting.php | 169 - .../Apps/Chat/V1/Space/PermissionSettings.php | 392 -- .../V1/Space/PredefinedPermissionSettings.php | 66 - .../Apps/Chat/V1/Space/SpaceDetails.php | 113 - .../Chat/V1/Space/SpaceThreadingState.php | 72 - .../Google/Apps/Chat/V1/Space/SpaceType.php | 71 - .../src/Google/Apps/Chat/V1/Space/Type.php | 62 - .../Chat/V1/SpaceBatchUpdatedEventData.php | 68 - .../src/Google/Apps/Chat/V1/SpaceEvent.php | 956 ----- .../Apps/Chat/V1/SpaceNotificationSetting.php | 159 - .../SpaceNotificationSetting/MuteSetting.php | 63 - .../NotificationSetting.php | 80 - .../Google/Apps/Chat/V1/SpaceReadState.php | 124 - .../Apps/Chat/V1/SpaceUpdatedEventData.php | 78 - .../src/Google/Apps/Chat/V1/SpaceView.php | 70 - .../proto/src/Google/Apps/Chat/V1/Thread.php | 134 - .../Google/Apps/Chat/V1/ThreadReadState.php | 120 - .../Apps/Chat/V1/UpdateMembershipRequest.php | 216 -- .../Apps/Chat/V1/UpdateMessageRequest.php | 244 -- .../Apps/Chat/V1/UpdateSectionRequest.php | 148 - .../UpdateSpaceNotificationSettingRequest.php | 164 - .../Chat/V1/UpdateSpaceReadStateRequest.php | 230 -- .../Apps/Chat/V1/UpdateSpaceRequest.php | 485 --- .../Apps/Chat/V1/UploadAttachmentRequest.php | 105 - .../Apps/Chat/V1/UploadAttachmentResponse.php | 77 - .../v1/proto/src/Google/Apps/Chat/V1/User.php | 275 -- .../src/Google/Apps/Chat/V1/User/Type.php | 59 - .../Apps/Chat/V1/UserMentionMetadata.php | 111 - .../Apps/Chat/V1/UserMentionMetadata/Type.php | 59 - .../src/Google/Apps/Chat/V1/WidgetMarkup.php | 179 - .../Apps/Chat/V1/WidgetMarkup/Button.php | 108 - .../Apps/Chat/V1/WidgetMarkup/FormAction.php | 114 - .../FormAction/ActionParameter.php | 104 - .../Google/Apps/Chat/V1/WidgetMarkup/Icon.php | 195 - .../Apps/Chat/V1/WidgetMarkup/Image.php | 157 - .../Apps/Chat/V1/WidgetMarkup/ImageButton.php | 193 - .../Apps/Chat/V1/WidgetMarkup/KeyValue.php | 422 --- .../Apps/Chat/V1/WidgetMarkup/OnClick.php | 108 - .../Apps/Chat/V1/WidgetMarkup/OpenLink.php | 67 - .../Apps/Chat/V1/WidgetMarkup/TextButton.php | 111 - .../Chat/V1/WidgetMarkup/TextParagraph.php | 67 - .../complete_import_space.php | 86 - .../ChatServiceClient/create_custom_emoji.php | 73 - .../ChatServiceClient/create_membership.php | 119 - .../V1/ChatServiceClient/create_message.php | 118 - .../V1/ChatServiceClient/create_reaction.php | 90 - .../V1/ChatServiceClient/create_section.php | 90 - .../V1/ChatServiceClient/create_space.php | 100 - .../ChatServiceClient/delete_custom_emoji.php | 93 - .../ChatServiceClient/delete_membership.php | 122 - .../V1/ChatServiceClient/delete_message.php | 96 - .../V1/ChatServiceClient/delete_reaction.php | 82 - .../V1/ChatServiceClient/delete_section.php | 84 - .../V1/ChatServiceClient/delete_space.php | 97 - .../ChatServiceClient/find_direct_message.php | 109 - .../V1/ChatServiceClient/find_group_chats.php | 81 - .../V1/ChatServiceClient/get_attachment.php | 84 - .../V1/ChatServiceClient/get_custom_emoji.php | 92 - .../V1/ChatServiceClient/get_membership.php | 104 - .../V1/ChatServiceClient/get_message.php | 105 - .../V1/ChatServiceClient/get_space.php | 104 - .../V1/ChatServiceClient/get_space_event.php | 117 - .../get_space_notification_setting.php | 85 - .../get_space_read_state.php | 96 - .../get_thread_read_state.php | 97 - .../ChatServiceClient/list_custom_emojis.php | 77 - .../V1/ChatServiceClient/list_memberships.php | 112 - .../V1/ChatServiceClient/list_messages.php | 105 - .../V1/ChatServiceClient/list_reactions.php | 90 - .../ChatServiceClient/list_section_items.php | 94 - .../V1/ChatServiceClient/list_sections.php | 97 - .../ChatServiceClient/list_space_events.php | 175 - .../V1/ChatServiceClient/list_spaces.php | 83 - .../ChatServiceClient/move_section_item.php | 89 - .../V1/ChatServiceClient/position_section.php | 81 - .../V1/ChatServiceClient/search_spaces.php | 154 - .../V1/ChatServiceClient/set_up_space.php | 115 - .../ChatServiceClient/update_membership.php | 85 - .../V1/ChatServiceClient/update_message.php | 85 - .../V1/ChatServiceClient/update_section.php | 85 - .../V1/ChatServiceClient/update_space.php | 95 - .../update_space_notification_setting.php | 71 - .../update_space_read_state.php | 71 - .../ChatServiceClient/upload_attachment.php | 90 - .../v1/src/V1/Client/ChatServiceClient.php | 2632 -------------- .../AppsChat/v1/src/V1/gapic_metadata.json | 233 -- .../resources/chat_service_client_config.json | 249 -- .../chat_service_descriptor_config.php | 583 --- .../chat_service_rest_client_config.php | 500 --- .../Unit/V1/Client/ChatServiceClientTest.php | 3189 ----------------- 311 files changed, 11 insertions(+), 51523 deletions(-) delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php delete mode 100644 owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/User.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php delete mode 100644 owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php delete mode 100644 owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php delete mode 100644 owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php delete mode 100644 owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json delete mode 100644 owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php delete mode 100644 owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php delete mode 100644 owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php diff --git a/AppsChat/metadata/Chat/V1/Message.php b/AppsChat/metadata/Chat/V1/Message.php index d188d7201f67..667e69ec7d11 100644 --- a/AppsChat/metadata/Chat/V1/Message.php +++ b/AppsChat/metadata/Chat/V1/Message.php @@ -30,7 +30,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x90*\x0A\x1Cgoogle/chat/v1/message.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/apps/card/v1/card.proto\x1A\"google/chat/v1/action_status.proto\x1A\x1Fgoogle/chat/v1/annotation.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A%google/chat/v1/contextual_addon.proto\x1A&google/chat/v1/deletion_metadata.proto\x1A google/chat/v1/matched_url.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\"google/chat/v1/slash_command.proto\x1A\x1Agoogle/chat/v1/space.proto\x1A\x19google/chat/v1/user.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE9\x0A\x0A\x07Message\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12)\x0A\x06sender\x18\x02 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x03\x127\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x129\x0A\x10last_update_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x1A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Eformatted_text\x18+ \x01(\x09B\x03\xE0A\x03\x12=\x0A\x05cards\x18\x05 \x03(\x0B2*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x121\x0A\x08cards_v2\x18\x16 \x03(\x0B2\x1A.google.chat.v1.CardWithIdB\x03\xE0A\x01\x124\x0A\x0Bannotations\x18\x0A \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x12&\x0A\x06thread\x18\x0B \x01(\x0B2\x16.google.chat.v1.Thread\x12)\x0A\x05space\x18\x0C \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x03\x12\x1A\x0A\x0Dfallback_text\x18\x0D \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Faction_response\x18\x0E \x01(\x0B2\x1E.google.chat.v1.ActionResponseB\x03\xE0A\x04\x12\x1A\x0A\x0Dargument_text\x18\x0F \x01(\x09B\x03\xE0A\x03\x128\x0A\x0Dslash_command\x18\x11 \x01(\x0B2\x1C.google.chat.v1.SlashCommandB\x03\xE0A\x03\x123\x0A\x0Aattachment\x18\x12 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x01\x124\x0A\x0Bmatched_url\x18\x14 \x01(\x0B2\x1A.google.chat.v1.MatchedUrlB\x03\xE0A\x03\x12\x19\x0A\x0Cthread_reply\x18\x19 \x01(\x08B\x03\xE0A\x03\x12\x13\x0A\x06silent\x18. \x01(\x08B\x03\xE0A\x03\x12'\x0A\x1Aclient_assigned_message_id\x18 \x01(\x09B\x03\xE0A\x01\x12K\x0A\x18emoji_reaction_summaries\x18! \x03(\x0B2\$.google.chat.v1.EmojiReactionSummaryB\x03\xE0A\x03\x12<\x0A\x16private_message_viewer\x18\$ \x01(\x0B2\x14.google.chat.v1.UserB\x06\xE0A\x05\xE0A\x01\x12@\x0A\x11deletion_metadata\x18& \x01(\x0B2 .google.chat.v1.DeletionMetadataB\x03\xE0A\x03\x12K\x0A\x17quoted_message_metadata\x18' \x01(\x0B2%.google.chat.v1.QuotedMessageMetadataB\x03\xE0A\x01\x127\x0A\x0Dattached_gifs\x18* \x03(\x0B2\x1B.google.chat.v1.AttachedGifB\x03\xE0A\x03\x12?\x0A\x11accessory_widgets\x18, \x03(\x0B2\x1F.google.chat.v1.AccessoryWidgetB\x03\xE0A\x01:C\xEAA@\x0A\x1Bchat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\"\x1F\x0A\x0BAttachedGif\x12\x10\x0A\x03uri\x18\x01 \x01(\x09B\x03\xE0A\x03\"\x98\x04\x0A\x15QuotedMessageMetadata\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x129\x0A\x10last_update_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x12H\x0A\x0Aquote_type\x18\x04 \x01(\x0E2/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x03\xE0A\x01\x12K\x0A\x17quoted_message_snapshot\x18\x05 \x01(\x0B2%.google.chat.v1.QuotedMessageSnapshotB\x03\xE0A\x03\x12B\x0A\x12forwarded_metadata\x18\x06 \x01(\x0B2!.google.chat.v1.ForwardedMetadataB\x03\xE0A\x03\"2\x0A\x09QuoteType\x12\x1A\x0A\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05REPLY\x10\x01:\x81\x01\xEAA~\x0A)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xC8\x01\x0A\x15QuotedMessageSnapshot\x12\x13\x0A\x06sender\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eformatted_text\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bannotations\x18\x04 \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x124\x0A\x0Battachments\x18\x05 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x03\"f\x0A\x11ForwardedMetadata\x120\x0A\x05space\x18\x01 \x01(\x09B!\xE0A\x03\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1F\x0A\x12space_display_name\x18\x02 \x01(\x09B\x03\xE0A\x03\"v\x0A\x06Thread\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x17\x0A\x0Athread_key\x18\x03 \x01(\x09B\x03\xE0A\x01:@\xEAA=\x0A\x1Achat.googleapis.com/Thread\x12\x1Fspaces/{space}/threads/{thread}\"\xD2\x04\x0A\x0EActionResponse\x12>\x0A\x04type\x18\x01 \x01(\x0E2+.google.chat.v1.ActionResponse.ResponseTypeB\x03\xE0A\x04\x12\x10\x0A\x03url\x18\x02 \x01(\x09B\x03\xE0A\x04\x128\x0A\x0Ddialog_action\x18\x03 \x01(\x0B2\x1C.google.chat.v1.DialogActionB\x03\xE0A\x04\x12I\x0A\x0Eupdated_widget\x18\x04 \x01(\x0B2,.google.chat.v1.ActionResponse.UpdatedWidgetB\x03\xE0A\x04\x1AR\x0A\x0ESelectionItems\x12@\x0A\x05items\x18\x01 \x03(\x0B21.google.apps.card.v1.SelectionInput.SelectionItem\x1Aw\x0A\x0DUpdatedWidget\x12D\x0A\x0Bsuggestions\x18\x01 \x01(\x0B2-.google.chat.v1.ActionResponse.SelectionItemsH\x00\x12\x0E\x0A\x06widget\x18\x02 \x01(\x09B\x10\x0A\x0Eupdated_widget\"\x9B\x01\x0A\x0CResponseType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_MESSAGE\x10\x01\x12\x12\x0A\x0EUPDATE_MESSAGE\x10\x02\x12\x1D\x0A\x19UPDATE_USER_MESSAGE_CARDS\x10\x06\x12\x12\x0A\x0EREQUEST_CONFIG\x10\x03\x12\x0A\x0A\x06DIALOG\x10\x04\x12\x11\x0A\x0DUPDATE_WIDGET\x10\x07\"S\x0A\x0FAccessoryWidget\x126\x0A\x0Bbutton_list\x18\x01 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00B\x08\x0A\x06action\"F\x0A\x11GetMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\"]\x0A\x14DeleteMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\x97\x01\x0A\x14UpdateMessageRequest\x12-\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x88\x04\x0A\x14CreateMessageRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12-\x0A\x07message\x18\x04 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x12\x19\x0A\x0Athread_key\x18\x06 \x01(\x09B\x05\x18\x01\xE0A\x01\x12\x17\x0A\x0Arequest_id\x18\x07 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x14message_reply_option\x18\x08 \x01(\x0E27.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x03\xE0A\x01\x12\x17\x0A\x0Amessage_id\x18\x09 \x01(\x09B\x03\xE0A\x01\x12b\x0A#create_message_notification_options\x18\x0A \x01(\x0B20.google.chat.v1.CreateMessageNotificationOptionsB\x03\xE0A\x01\"\x7F\x0A\x12MessageReplyOption\x12\$\x0A MESSAGE_REPLY_OPTION_UNSPECIFIED\x10\x00\x12(\x0A\$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\x10\x01\x12\x19\x0A\x15REPLY_MESSAGE_OR_FAIL\x10\x02\"\xF2\x01\x0A CreateMessageNotificationOptions\x12\\\x0A\x11notification_type\x18\x01 \x01(\x0E2A.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\x0A\x10NotificationType\x12\x1A\x0A\x16NOTIFICATION_TYPE_NONE\x10\x00\x12\"\x0A\x1ENOTIFICATION_TYPE_FORCE_NOTIFY\x10\x02\x12\x1C\x0A\x18NOTIFICATION_TYPE_SILENT\x10\x03\"\xC2\x01\x0A\x13ListMessagesRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\"Z\x0A\x14ListMessagesResponse\x12)\x0A\x08messages\x18\x01 \x03(\x0B2\x17.google.chat.v1.Message\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x0CDialogAction\x12-\x0A\x06dialog\x18\x01 \x01(\x0B2\x16.google.chat.v1.DialogB\x03\xE0A\x04H\x00\x128\x0A\x0Daction_status\x18\x02 \x01(\x0B2\x1C.google.chat.v1.ActionStatusB\x03\xE0A\x04B\x08\x0A\x06action\"6\x0A\x06Dialog\x12,\x0A\x04body\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.CardB\x03\xE0A\x04\"F\x0A\x0ACardWithId\x12\x0F\x0A\x07card_id\x18\x01 \x01(\x09\x12'\x0A\x04card\x18\x02 \x01(\x0B2\x19.google.apps.card.v1.CardB\xA5\x01\x0A\x12com.google.chat.v1B\x0CMessageProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" + "\x0A\x9D*\x0A\x1Cgoogle/chat/v1/message.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/apps/card/v1/card.proto\x1A\"google/chat/v1/action_status.proto\x1A\x1Fgoogle/chat/v1/annotation.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A%google/chat/v1/contextual_addon.proto\x1A&google/chat/v1/deletion_metadata.proto\x1A google/chat/v1/matched_url.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\"google/chat/v1/slash_command.proto\x1A\x1Agoogle/chat/v1/space.proto\x1A\x19google/chat/v1/user.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE9\x0A\x0A\x07Message\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12)\x0A\x06sender\x18\x02 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x03\x127\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x129\x0A\x10last_update_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x1A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Eformatted_text\x18+ \x01(\x09B\x03\xE0A\x03\x12=\x0A\x05cards\x18\x05 \x03(\x0B2*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x121\x0A\x08cards_v2\x18\x16 \x03(\x0B2\x1A.google.chat.v1.CardWithIdB\x03\xE0A\x01\x124\x0A\x0Bannotations\x18\x0A \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x12&\x0A\x06thread\x18\x0B \x01(\x0B2\x16.google.chat.v1.Thread\x12)\x0A\x05space\x18\x0C \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x03\x12\x1A\x0A\x0Dfallback_text\x18\x0D \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Faction_response\x18\x0E \x01(\x0B2\x1E.google.chat.v1.ActionResponseB\x03\xE0A\x04\x12\x1A\x0A\x0Dargument_text\x18\x0F \x01(\x09B\x03\xE0A\x03\x128\x0A\x0Dslash_command\x18\x11 \x01(\x0B2\x1C.google.chat.v1.SlashCommandB\x03\xE0A\x03\x123\x0A\x0Aattachment\x18\x12 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x01\x124\x0A\x0Bmatched_url\x18\x14 \x01(\x0B2\x1A.google.chat.v1.MatchedUrlB\x03\xE0A\x03\x12\x19\x0A\x0Cthread_reply\x18\x19 \x01(\x08B\x03\xE0A\x03\x12\x13\x0A\x06silent\x18. \x01(\x08B\x03\xE0A\x03\x12'\x0A\x1Aclient_assigned_message_id\x18 \x01(\x09B\x03\xE0A\x01\x12K\x0A\x18emoji_reaction_summaries\x18! \x03(\x0B2\$.google.chat.v1.EmojiReactionSummaryB\x03\xE0A\x03\x12<\x0A\x16private_message_viewer\x18\$ \x01(\x0B2\x14.google.chat.v1.UserB\x06\xE0A\x05\xE0A\x01\x12@\x0A\x11deletion_metadata\x18& \x01(\x0B2 .google.chat.v1.DeletionMetadataB\x03\xE0A\x03\x12K\x0A\x17quoted_message_metadata\x18' \x01(\x0B2%.google.chat.v1.QuotedMessageMetadataB\x03\xE0A\x01\x127\x0A\x0Dattached_gifs\x18* \x03(\x0B2\x1B.google.chat.v1.AttachedGifB\x03\xE0A\x03\x12?\x0A\x11accessory_widgets\x18, \x03(\x0B2\x1F.google.chat.v1.AccessoryWidgetB\x03\xE0A\x01:C\xEAA@\x0A\x1Bchat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\"\x1F\x0A\x0BAttachedGif\x12\x10\x0A\x03uri\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xA5\x04\x0A\x15QuotedMessageMetadata\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x129\x0A\x10last_update_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x12H\x0A\x0Aquote_type\x18\x04 \x01(\x0E2/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x03\xE0A\x01\x12K\x0A\x17quoted_message_snapshot\x18\x05 \x01(\x0B2%.google.chat.v1.QuotedMessageSnapshotB\x03\xE0A\x03\x12B\x0A\x12forwarded_metadata\x18\x06 \x01(\x0B2!.google.chat.v1.ForwardedMetadataB\x03\xE0A\x03\"?\x0A\x09QuoteType\x12\x1A\x0A\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05REPLY\x10\x01\x12\x0B\x0A\x07FORWARD\x10\x02:\x81\x01\xEAA~\x0A)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xC8\x01\x0A\x15QuotedMessageSnapshot\x12\x13\x0A\x06sender\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eformatted_text\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bannotations\x18\x04 \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x124\x0A\x0Battachments\x18\x05 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x03\"f\x0A\x11ForwardedMetadata\x120\x0A\x05space\x18\x01 \x01(\x09B!\xE0A\x03\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1F\x0A\x12space_display_name\x18\x02 \x01(\x09B\x03\xE0A\x03\"v\x0A\x06Thread\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x17\x0A\x0Athread_key\x18\x03 \x01(\x09B\x03\xE0A\x01:@\xEAA=\x0A\x1Achat.googleapis.com/Thread\x12\x1Fspaces/{space}/threads/{thread}\"\xD2\x04\x0A\x0EActionResponse\x12>\x0A\x04type\x18\x01 \x01(\x0E2+.google.chat.v1.ActionResponse.ResponseTypeB\x03\xE0A\x04\x12\x10\x0A\x03url\x18\x02 \x01(\x09B\x03\xE0A\x04\x128\x0A\x0Ddialog_action\x18\x03 \x01(\x0B2\x1C.google.chat.v1.DialogActionB\x03\xE0A\x04\x12I\x0A\x0Eupdated_widget\x18\x04 \x01(\x0B2,.google.chat.v1.ActionResponse.UpdatedWidgetB\x03\xE0A\x04\x1AR\x0A\x0ESelectionItems\x12@\x0A\x05items\x18\x01 \x03(\x0B21.google.apps.card.v1.SelectionInput.SelectionItem\x1Aw\x0A\x0DUpdatedWidget\x12D\x0A\x0Bsuggestions\x18\x01 \x01(\x0B2-.google.chat.v1.ActionResponse.SelectionItemsH\x00\x12\x0E\x0A\x06widget\x18\x02 \x01(\x09B\x10\x0A\x0Eupdated_widget\"\x9B\x01\x0A\x0CResponseType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_MESSAGE\x10\x01\x12\x12\x0A\x0EUPDATE_MESSAGE\x10\x02\x12\x1D\x0A\x19UPDATE_USER_MESSAGE_CARDS\x10\x06\x12\x12\x0A\x0EREQUEST_CONFIG\x10\x03\x12\x0A\x0A\x06DIALOG\x10\x04\x12\x11\x0A\x0DUPDATE_WIDGET\x10\x07\"S\x0A\x0FAccessoryWidget\x126\x0A\x0Bbutton_list\x18\x01 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00B\x08\x0A\x06action\"F\x0A\x11GetMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\"]\x0A\x14DeleteMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\x97\x01\x0A\x14UpdateMessageRequest\x12-\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x88\x04\x0A\x14CreateMessageRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12-\x0A\x07message\x18\x04 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x12\x19\x0A\x0Athread_key\x18\x06 \x01(\x09B\x05\x18\x01\xE0A\x01\x12\x17\x0A\x0Arequest_id\x18\x07 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x14message_reply_option\x18\x08 \x01(\x0E27.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x03\xE0A\x01\x12\x17\x0A\x0Amessage_id\x18\x09 \x01(\x09B\x03\xE0A\x01\x12b\x0A#create_message_notification_options\x18\x0A \x01(\x0B20.google.chat.v1.CreateMessageNotificationOptionsB\x03\xE0A\x01\"\x7F\x0A\x12MessageReplyOption\x12\$\x0A MESSAGE_REPLY_OPTION_UNSPECIFIED\x10\x00\x12(\x0A\$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\x10\x01\x12\x19\x0A\x15REPLY_MESSAGE_OR_FAIL\x10\x02\"\xF2\x01\x0A CreateMessageNotificationOptions\x12\\\x0A\x11notification_type\x18\x01 \x01(\x0E2A.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\x0A\x10NotificationType\x12\x1A\x0A\x16NOTIFICATION_TYPE_NONE\x10\x00\x12\"\x0A\x1ENOTIFICATION_TYPE_FORCE_NOTIFY\x10\x02\x12\x1C\x0A\x18NOTIFICATION_TYPE_SILENT\x10\x03\"\xC2\x01\x0A\x13ListMessagesRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\"Z\x0A\x14ListMessagesResponse\x12)\x0A\x08messages\x18\x01 \x03(\x0B2\x17.google.chat.v1.Message\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x0CDialogAction\x12-\x0A\x06dialog\x18\x01 \x01(\x0B2\x16.google.chat.v1.DialogB\x03\xE0A\x04H\x00\x128\x0A\x0Daction_status\x18\x02 \x01(\x0B2\x1C.google.chat.v1.ActionStatusB\x03\xE0A\x04B\x08\x0A\x06action\"6\x0A\x06Dialog\x12,\x0A\x04body\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.CardB\x03\xE0A\x04\"F\x0A\x0ACardWithId\x12\x0F\x0A\x07card_id\x18\x01 \x01(\x09\x12'\x0A\x04card\x18\x02 \x01(\x0B2\x19.google.apps.card.v1.CardB\xA5\x01\x0A\x12com.google.chat.v1B\x0CMessageProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AppsChat/src/Chat/V1/QuotedMessageMetadata.php b/AppsChat/src/Chat/V1/QuotedMessageMetadata.php index b57da4a16685..1d39ce930f7b 100644 --- a/AppsChat/src/Chat/V1/QuotedMessageMetadata.php +++ b/AppsChat/src/Chat/V1/QuotedMessageMetadata.php @@ -10,9 +10,6 @@ /** * Information about a message that another message quotes. - * When you create a message, you can quote messages within the same - * thread, or quote a root message to create a new root message. - * However, you can't quote a message reply from a different thread. * When you update a message, you can't add or replace the * `quotedMessageMetadata` field, but you can remove it. * For example usage, see [Quote another diff --git a/AppsChat/src/Chat/V1/QuotedMessageMetadata/QuoteType.php b/AppsChat/src/Chat/V1/QuotedMessageMetadata/QuoteType.php index 545f02328cd1..8eec514fd54f 100644 --- a/AppsChat/src/Chat/V1/QuotedMessageMetadata/QuoteType.php +++ b/AppsChat/src/Chat/V1/QuotedMessageMetadata/QuoteType.php @@ -20,20 +20,28 @@ class QuoteType */ const QUOTE_TYPE_UNSPECIFIED = 0; /** - * If quote_type is `REPLY`, you can do the following: + * When `quote_type` is `REPLY`, you can do the following: * * If you're replying in a thread, you can quote another message in that * thread. * * If you're creating a root message, you can quote another root message * in that space. - * You can't quote a message reply from a different thread. * * Generated from protobuf enum REPLY = 1; */ const REPLY = 1; + /** + * When `quote_type` is `FORWARD`, you can quote a: + * * Message from a different space. + * * Message reply from a different thread in the same space. + * + * Generated from protobuf enum FORWARD = 2; + */ + const FORWARD = 2; private static $valueToName = [ self::QUOTE_TYPE_UNSPECIFIED => 'QUOTE_TYPE_UNSPECIFIED', self::REPLY => 'REPLY', + self::FORWARD => 'FORWARD', ]; public static function name($value) diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php deleted file mode 100644 index 0ee68861dccb..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB7R\x0A\x1Egoogle/apps/card/v1/card.proto\x12\x13google.apps.card.v1\"\xC3\x0A\x0A\x04Card\x124\x0A\x06header\x18\x01 \x01(\x0B2\$.google.apps.card.v1.Card.CardHeader\x123\x0A\x08sections\x18\x02 \x03(\x0B2!.google.apps.card.v1.Card.Section\x12E\x0A\x15section_divider_style\x18\x09 \x01(\x0E2&.google.apps.card.v1.Card.DividerStyle\x12:\x0A\x0Ccard_actions\x18\x03 \x03(\x0B2\$.google.apps.card.v1.Card.CardAction\x12\x0C\x0A\x04name\x18\x04 \x01(\x09\x12?\x0A\x0Cfixed_footer\x18\x05 \x01(\x0B2).google.apps.card.v1.Card.CardFixedFooter\x12=\x0A\x0Ddisplay_style\x18\x06 \x01(\x0E2&.google.apps.card.v1.Card.DisplayStyle\x12>\x0A\x10peek_card_header\x18\x07 \x01(\x0B2\$.google.apps.card.v1.Card.CardHeader\x1A\x93\x01\x0A\x0ACardHeader\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x10\x0A\x08subtitle\x18\x02 \x01(\x09\x129\x0A\x0Aimage_type\x18\x03 \x01(\x0E2%.google.apps.card.v1.Widget.ImageType\x12\x11\x0A\x09image_url\x18\x04 \x01(\x09\x12\x16\x0A\x0Eimage_alt_text\x18\x05 \x01(\x09\x1A\xC1\x01\x0A\x07Section\x12\x0E\x0A\x06header\x18\x01 \x01(\x09\x12,\x0A\x07widgets\x18\x02 \x03(\x0B2\x1B.google.apps.card.v1.Widget\x12\x13\x0A\x0Bcollapsible\x18\x05 \x01(\x08\x12#\x0A\x1Buncollapsible_widgets_count\x18\x06 \x01(\x05\x12>\x0A\x10collapse_control\x18\x08 \x01(\x0B2\$.google.apps.card.v1.CollapseControl\x1AR\x0A\x0ACardAction\x12\x14\x0A\x0Caction_label\x18\x01 \x01(\x09\x12.\x0A\x08on_click\x18\x02 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x1A\xB9\x01\x0A\x0CNestedWidget\x12<\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2\".google.apps.card.v1.TextParagraphH\x00\x126\x0A\x0Bbutton_list\x18\x03 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00\x12+\x0A\x05image\x18\x0A \x01(\x0B2\x1A.google.apps.card.v1.ImageH\x00B\x06\x0A\x04data\x1A}\x0A\x0FCardFixedFooter\x123\x0A\x0Eprimary_button\x18\x01 \x01(\x0B2\x1B.google.apps.card.v1.Button\x125\x0A\x10secondary_button\x18\x02 \x01(\x0B2\x1B.google.apps.card.v1.Button\"P\x0A\x0CDividerStyle\x12\x1D\x0A\x19DIVIDER_STYLE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DSOLID_DIVIDER\x10\x01\x12\x0E\x0A\x0ANO_DIVIDER\x10\x02\"D\x0A\x0CDisplayStyle\x12\x1D\x0A\x19DISPLAY_STYLE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04PEEK\x10\x01\x12\x0B\x0A\x07REPLACE\x10\x02\"\xC7\x07\x0A\x06Widget\x12<\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2\".google.apps.card.v1.TextParagraphH\x00\x12+\x0A\x05image\x18\x02 \x01(\x0B2\x1A.google.apps.card.v1.ImageH\x00\x12<\x0A\x0Edecorated_text\x18\x03 \x01(\x0B2\".google.apps.card.v1.DecoratedTextH\x00\x126\x0A\x0Bbutton_list\x18\x04 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00\x124\x0A\x0Atext_input\x18\x05 \x01(\x0B2\x1E.google.apps.card.v1.TextInputH\x00\x12>\x0A\x0Fselection_input\x18\x06 \x01(\x0B2#.google.apps.card.v1.SelectionInputH\x00\x12?\x0A\x10date_time_picker\x18\x07 \x01(\x0B2#.google.apps.card.v1.DateTimePickerH\x00\x12/\x0A\x07divider\x18\x09 \x01(\x0B2\x1C.google.apps.card.v1.DividerH\x00\x12)\x0A\x04grid\x18\x0A \x01(\x0B2\x19.google.apps.card.v1.GridH\x00\x12/\x0A\x07columns\x18\x0B \x01(\x0B2\x1C.google.apps.card.v1.ColumnsH\x00\x121\x0A\x08carousel\x18\x0D \x01(\x0B2\x1D.google.apps.card.v1.CarouselH\x00\x122\x0A\x09chip_list\x18\x0E \x01(\x0B2\x1D.google.apps.card.v1.ChipListH\x00\x12M\x0A\x14horizontal_alignment\x18\x08 \x01(\x0E2/.google.apps.card.v1.Widget.HorizontalAlignment\"#\x0A\x09ImageType\x12\x0A\x0A\x06SQUARE\x10\x00\x12\x0A\x0A\x06CIRCLE\x10\x01\"[\x0A\x13HorizontalAlignment\x12\$\x0A HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x0A\x0A\x06CENTER\x10\x02\x12\x07\x0A\x03END\x10\x03\"X\x0A\x11VerticalAlignment\x12\"\x0A\x1EVERTICAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x0A\x0A\x06MIDDLE\x10\x02\x12\x0A\x0A\x06BOTTOM\x10\x03B\x06\x0A\x04data\"\xB7\x01\x0A\x0DTextParagraph\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x11\x0A\x09max_lines\x18\x02 \x01(\x05\x12B\x0A\x0Btext_syntax\x18\x04 \x01(\x0E2-.google.apps.card.v1.TextParagraph.TextSyntax\"A\x0A\x0ATextSyntax\x12\x1B\x0A\x17TEXT_SYNTAX_UNSPECIFIED\x10\x00\x12\x08\x0A\x04HTML\x10\x01\x12\x0C\x0A\x08MARKDOWN\x10\x02\"\\\x0A\x05Image\x12\x11\x0A\x09image_url\x18\x01 \x01(\x09\x12.\x0A\x08on_click\x18\x02 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x10\x0A\x08alt_text\x18\x03 \x01(\x09\"\x09\x0A\x07Divider\"\xA9\x07\x0A\x0DDecoratedText\x12+\x0A\x04icon\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.IconB\x02\x18\x01\x12-\x0A\x0Astart_icon\x18\x0C \x01(\x0B2\x19.google.apps.card.v1.Icon\x12T\x0A\x1Dstart_icon_vertical_alignment\x18\x0D \x01(\x0E2-.google.apps.card.v1.Widget.VerticalAlignment\x12\x11\x0A\x09top_label\x18\x03 \x01(\x09\x12:\x0A\x0Etop_label_text\x18\x11 \x01(\x0B2\".google.apps.card.v1.TextParagraph\x12\x0C\x0A\x04text\x18\x04 \x01(\x09\x128\x0A\x0Ccontent_text\x18\x12 \x01(\x0B2\".google.apps.card.v1.TextParagraph\x12\x11\x0A\x09wrap_text\x18\x05 \x01(\x08\x12\x14\x0A\x0Cbottom_label\x18\x06 \x01(\x09\x12=\x0A\x11bottom_label_text\x18\x13 \x01(\x0B2\".google.apps.card.v1.TextParagraph\x12.\x0A\x08on_click\x18\x07 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12-\x0A\x06button\x18\x08 \x01(\x0B2\x1B.google.apps.card.v1.ButtonH\x00\x12J\x0A\x0Eswitch_control\x18\x09 \x01(\x0B20.google.apps.card.v1.DecoratedText.SwitchControlH\x00\x12-\x0A\x08end_icon\x18\x0B \x01(\x0B2\x19.google.apps.card.v1.IconH\x00\x1A\x81\x02\x0A\x0DSwitchControl\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\x12\x10\x0A\x08selected\x18\x03 \x01(\x08\x125\x0A\x10on_change_action\x18\x04 \x01(\x0B2\x1B.google.apps.card.v1.Action\x12R\x0A\x0Ccontrol_type\x18\x05 \x01(\x0E2<.google.apps.card.v1.DecoratedText.SwitchControl.ControlType\"6\x0A\x0BControlType\x12\x0A\x0A\x06SWITCH\x10\x00\x12\x0C\x0A\x08CHECKBOX\x10\x01\x12\x0D\x0A\x09CHECK_BOX\x10\x02B\x09\x0A\x07control\"\xA9\x03\x0A\x09TextInput\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12\x11\x0A\x09hint_text\x18\x03 \x01(\x09\x12\x0D\x0A\x05value\x18\x04 \x01(\x09\x121\x0A\x04type\x18\x05 \x01(\x0E2#.google.apps.card.v1.TextInput.Type\x125\x0A\x10on_change_action\x18\x06 \x01(\x0B2\x1B.google.apps.card.v1.Action\x12=\x0A\x13initial_suggestions\x18\x07 \x01(\x0B2 .google.apps.card.v1.Suggestions\x129\x0A\x14auto_complete_action\x18\x08 \x01(\x0B2\x1B.google.apps.card.v1.Action\x123\x0A\x0Avalidation\x18\x0B \x01(\x0B2\x1F.google.apps.card.v1.Validation\x12\x18\x0A\x10placeholder_text\x18\x0C \x01(\x09\"*\x0A\x04Type\x12\x0F\x0A\x0BSINGLE_LINE\x10\x00\x12\x11\x0A\x0DMULTIPLE_LINE\x10\x01\"z\x0A\x0BSuggestions\x12>\x0A\x05items\x18\x01 \x03(\x0B2/.google.apps.card.v1.Suggestions.SuggestionItem\x1A+\x0A\x0ESuggestionItem\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00B\x09\x0A\x07content\":\x0A\x0AButtonList\x12,\x0A\x07buttons\x18\x01 \x03(\x0B2\x1B.google.apps.card.v1.Button\"\xA4\x07\x0A\x0ESelectionInput\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12?\x0A\x04type\x18\x03 \x01(\x0E21.google.apps.card.v1.SelectionInput.SelectionType\x12@\x0A\x05items\x18\x04 \x03(\x0B21.google.apps.card.v1.SelectionInput.SelectionItem\x125\x0A\x10on_change_action\x18\x05 \x01(\x0B2\x1B.google.apps.card.v1.Action\x12,\x0A\x1Fmulti_select_max_selected_items\x18\x06 \x01(\x05H\x01\x88\x01\x01\x12%\x0A\x1Dmulti_select_min_query_length\x18\x07 \x01(\x05\x12;\x0A\x14external_data_source\x18\x08 \x01(\x0B2\x1B.google.apps.card.v1.ActionH\x00\x12V\x0A\x14platform_data_source\x18\x09 \x01(\x0B26.google.apps.card.v1.SelectionInput.PlatformDataSourceH\x00\x1A{\x0A\x0DSelectionItem\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\x12\x10\x0A\x08selected\x18\x03 \x01(\x08\x12\x18\x0A\x0Estart_icon_uri\x18\x04 \x01(\x09H\x00\x12\x13\x0A\x0Bbottom_text\x18\x05 \x01(\x09B\x0C\x0A\x0Astart_icon\x1A\xB5\x01\x0A\x12PlatformDataSource\x12e\x0A\x12common_data_source\x18\x01 \x01(\x0E2G.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSourceH\x00\")\x0A\x10CommonDataSource\x12\x0B\x0A\x07UNKNOWN\x10\x00\x12\x08\x0A\x04USER\x10\x01B\x0D\x0A\x0Bdata_source\"\\\x0A\x0DSelectionType\x12\x0D\x0A\x09CHECK_BOX\x10\x00\x12\x10\x0A\x0CRADIO_BUTTON\x10\x01\x12\x0A\x0A\x06SWITCH\x10\x02\x12\x0C\x0A\x08DROPDOWN\x10\x03\x12\x10\x0A\x0CMULTI_SELECT\x10\x04B\x1A\x0A\x18multi_select_data_sourceB\"\x0A _multi_select_max_selected_items\"\xBF\x02\x0A\x0EDateTimePicker\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12D\x0A\x04type\x18\x03 \x01(\x0E26.google.apps.card.v1.DateTimePicker.DateTimePickerType\x12\x1B\x0A\x0Evalue_ms_epoch\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x1C\x0A\x14timezone_offset_date\x18\x05 \x01(\x05\x125\x0A\x10on_change_action\x18\x06 \x01(\x0B2\x1B.google.apps.card.v1.Action\"E\x0A\x12DateTimePickerType\x12\x11\x0A\x0DDATE_AND_TIME\x10\x00\x12\x0D\x0A\x09DATE_ONLY\x10\x01\x12\x0D\x0A\x09TIME_ONLY\x10\x02B\x11\x0A\x0F_value_ms_epoch\"\xE5\x01\x0A\x0COverflowMenu\x12A\x0A\x05items\x18\x01 \x03(\x0B22.google.apps.card.v1.OverflowMenu.OverflowMenuItem\x1A\x91\x01\x0A\x10OverflowMenuItem\x12-\x0A\x0Astart_icon\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.Icon\x12\x0C\x0A\x04text\x18\x02 \x01(\x09\x12.\x0A\x08on_click\x18\x03 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x10\x0A\x08disabled\x18\x04 \x01(\x08\"\xC0\x02\x0A\x06Button\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12'\x0A\x04icon\x18\x02 \x01(\x0B2\x19.google.apps.card.v1.Icon\x12!\x0A\x05color\x18\x03 \x01(\x0B2\x12.google.type.Color\x12.\x0A\x08on_click\x18\x04 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x10\x0A\x08disabled\x18\x05 \x01(\x08\x12\x10\x0A\x08alt_text\x18\x06 \x01(\x09\x12.\x0A\x04type\x18\x07 \x01(\x0E2 .google.apps.card.v1.Button.Type\"X\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08OUTLINED\x10\x01\x12\x0A\x0A\x06FILLED\x10\x02\x12\x10\x0A\x0CFILLED_TONAL\x10\x03\x12\x0E\x0A\x0ABORDERLESS\x10\x04\"\xC2\x01\x0A\x04Icon\x12\x14\x0A\x0Aknown_icon\x18\x01 \x01(\x09H\x00\x12\x12\x0A\x08icon_url\x18\x02 \x01(\x09H\x00\x12:\x0A\x0Dmaterial_icon\x18\x05 \x01(\x0B2!.google.apps.card.v1.MaterialIconH\x00\x12\x10\x0A\x08alt_text\x18\x03 \x01(\x09\x129\x0A\x0Aimage_type\x18\x04 \x01(\x0E2%.google.apps.card.v1.Widget.ImageTypeB\x07\x0A\x05icons\"I\x0A\x0CMaterialIcon\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04fill\x18\x02 \x01(\x08\x12\x0E\x0A\x06weight\x18\x03 \x01(\x05\x12\x0D\x0A\x05grade\x18\x04 \x01(\x05\"\xDA\x01\x0A\x0EImageCropStyle\x12?\x0A\x04type\x18\x01 \x01(\x0E21.google.apps.card.v1.ImageCropStyle.ImageCropType\x12\x14\x0A\x0Caspect_ratio\x18\x02 \x01(\x01\"q\x0A\x0DImageCropType\x12\x1F\x0A\x1BIMAGE_CROP_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SQUARE\x10\x01\x12\x0A\x0A\x06CIRCLE\x10\x02\x12\x14\x0A\x10RECTANGLE_CUSTOM\x10\x03\x12\x11\x0A\x0DRECTANGLE_4_3\x10\x04\"\xCF\x01\x0A\x0BBorderStyle\x129\x0A\x04type\x18\x01 \x01(\x0E2+.google.apps.card.v1.BorderStyle.BorderType\x12(\x0A\x0Cstroke_color\x18\x02 \x01(\x0B2\x12.google.type.Color\x12\x15\x0A\x0Dcorner_radius\x18\x03 \x01(\x05\"D\x0A\x0ABorderType\x12\x1B\x0A\x17BORDER_TYPE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NO_BORDER\x10\x01\x12\x0A\x0A\x06STROKE\x10\x02\"\xA6\x01\x0A\x0EImageComponent\x12\x11\x0A\x09image_uri\x18\x01 \x01(\x09\x12\x10\x0A\x08alt_text\x18\x02 \x01(\x09\x127\x0A\x0Acrop_style\x18\x03 \x01(\x0B2#.google.apps.card.v1.ImageCropStyle\x126\x0A\x0Cborder_style\x18\x04 \x01(\x0B2 .google.apps.card.v1.BorderStyle\"\xCB\x03\x0A\x04Grid\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x121\x0A\x05items\x18\x02 \x03(\x0B2\".google.apps.card.v1.Grid.GridItem\x126\x0A\x0Cborder_style\x18\x03 \x01(\x0B2 .google.apps.card.v1.BorderStyle\x12\x14\x0A\x0Ccolumn_count\x18\x04 \x01(\x05\x12.\x0A\x08on_click\x18\x05 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x1A\x82\x02\x0A\x08GridItem\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x122\x0A\x05image\x18\x02 \x01(\x0B2#.google.apps.card.v1.ImageComponent\x12\x0D\x0A\x05title\x18\x03 \x01(\x09\x12\x10\x0A\x08subtitle\x18\x04 \x01(\x09\x12A\x0A\x06layout\x18\x09 \x01(\x0E21.google.apps.card.v1.Grid.GridItem.GridItemLayout\"R\x0A\x0EGridItemLayout\x12 \x0A\x1CGRID_ITEM_LAYOUT_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ATEXT_BELOW\x10\x01\x12\x0E\x0A\x0ATEXT_ABOVE\x10\x02\"\xB1\x08\x0A\x07Columns\x129\x0A\x0Ccolumn_items\x18\x02 \x03(\x0B2#.google.apps.card.v1.Columns.Column\x1A\xEA\x07\x0A\x06Column\x12V\x0A\x15horizontal_size_style\x18\x01 \x01(\x0E27.google.apps.card.v1.Columns.Column.HorizontalSizeStyle\x12M\x0A\x14horizontal_alignment\x18\x02 \x01(\x0E2/.google.apps.card.v1.Widget.HorizontalAlignment\x12Q\x0A\x12vertical_alignment\x18\x03 \x01(\x0E25.google.apps.card.v1.Columns.Column.VerticalAlignment\x12<\x0A\x07widgets\x18\x04 \x03(\x0B2+.google.apps.card.v1.Columns.Column.Widgets\x1A\xDD\x03\x0A\x07Widgets\x12<\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2\".google.apps.card.v1.TextParagraphH\x00\x12+\x0A\x05image\x18\x02 \x01(\x0B2\x1A.google.apps.card.v1.ImageH\x00\x12<\x0A\x0Edecorated_text\x18\x03 \x01(\x0B2\".google.apps.card.v1.DecoratedTextH\x00\x126\x0A\x0Bbutton_list\x18\x04 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00\x124\x0A\x0Atext_input\x18\x05 \x01(\x0B2\x1E.google.apps.card.v1.TextInputH\x00\x12>\x0A\x0Fselection_input\x18\x06 \x01(\x0B2#.google.apps.card.v1.SelectionInputH\x00\x12?\x0A\x10date_time_picker\x18\x07 \x01(\x0B2#.google.apps.card.v1.DateTimePickerH\x00\x122\x0A\x09chip_list\x18\x08 \x01(\x0B2\x1D.google.apps.card.v1.ChipListH\x00B\x06\x0A\x04data\"n\x0A\x13HorizontalSizeStyle\x12%\x0A!HORIZONTAL_SIZE_STYLE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14FILL_AVAILABLE_SPACE\x10\x01\x12\x16\x0A\x12FILL_MINIMUM_SPACE\x10\x02\"X\x0A\x11VerticalAlignment\x12\"\x0A\x1EVERTICAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CENTER\x10\x01\x12\x07\x0A\x03TOP\x10\x02\x12\x0A\x0A\x06BOTTOM\x10\x03\"\xD8\x01\x0A\x08Carousel\x12B\x0A\x0Ecarousel_cards\x18\x04 \x03(\x0B2*.google.apps.card.v1.Carousel.CarouselCard\x1A\x87\x01\x0A\x0CCarouselCard\x127\x0A\x07widgets\x18\x01 \x03(\x0B2&.google.apps.card.v1.Card.NestedWidget\x12>\x0A\x0Efooter_widgets\x18\x02 \x03(\x0B2&.google.apps.card.v1.Card.NestedWidget\"\xCA\x01\x0A\x0FCollapseControl\x12M\x0A\x14horizontal_alignment\x18\x01 \x01(\x0E2/.google.apps.card.v1.Widget.HorizontalAlignment\x122\x0A\x0Dexpand_button\x18\x02 \x01(\x0B2\x1B.google.apps.card.v1.Button\x124\x0A\x0Fcollapse_button\x18\x03 \x01(\x0B2\x1B.google.apps.card.v1.Button\"\x9C\x02\x0A\x07OnClick\x12-\x0A\x06action\x18\x01 \x01(\x0B2\x1B.google.apps.card.v1.ActionH\x00\x122\x0A\x09open_link\x18\x02 \x01(\x0B2\x1D.google.apps.card.v1.OpenLinkH\x00\x12?\x0A\x18open_dynamic_link_action\x18\x03 \x01(\x0B2\x1B.google.apps.card.v1.ActionH\x00\x12)\x0A\x04card\x18\x04 \x01(\x0B2\x19.google.apps.card.v1.CardH\x00\x12:\x0A\x0Doverflow_menu\x18\x08 \x01(\x0B2!.google.apps.card.v1.OverflowMenuH\x00B\x06\x0A\x04data\"\xD1\x01\x0A\x08OpenLink\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x125\x0A\x07open_as\x18\x02 \x01(\x0E2\$.google.apps.card.v1.OpenLink.OpenAs\x127\x0A\x08on_close\x18\x03 \x01(\x0E2%.google.apps.card.v1.OpenLink.OnClose\"\$\x0A\x06OpenAs\x12\x0D\x0A\x09FULL_SIZE\x10\x00\x12\x0B\x0A\x07OVERLAY\x10\x01\"\"\x0A\x07OnClose\x12\x0B\x0A\x07NOTHING\x10\x00\x12\x0A\x0A\x06RELOAD\x10\x01\"\xC4\x03\x0A\x06Action\x12\x10\x0A\x08function\x18\x01 \x01(\x09\x12?\x0A\x0Aparameters\x18\x02 \x03(\x0B2+.google.apps.card.v1.Action.ActionParameter\x12A\x0A\x0Eload_indicator\x18\x03 \x01(\x0E2).google.apps.card.v1.Action.LoadIndicator\x12\x16\x0A\x0Epersist_values\x18\x04 \x01(\x08\x12<\x0A\x0Binteraction\x18\x05 \x01(\x0E2'.google.apps.card.v1.Action.Interaction\x12\x18\x0A\x10required_widgets\x18\x06 \x03(\x09\x12 \x0A\x18all_widgets_are_required\x18\x07 \x01(\x08\x1A-\x0A\x0FActionParameter\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"&\x0A\x0DLoadIndicator\x12\x0B\x0A\x07SPINNER\x10\x00\x12\x08\x0A\x04NONE\x10\x01\";\x0A\x0BInteraction\x12\x1B\x0A\x17INTERACTION_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BOPEN_DIALOG\x10\x01\"\xCC\x01\x0A\x0AValidation\x12\x17\x0A\x0Fcharacter_limit\x18\x01 \x01(\x05\x12=\x0A\x0Ainput_type\x18\x02 \x01(\x0E2).google.apps.card.v1.Validation.InputType\"f\x0A\x09InputType\x12\x1A\x0A\x16INPUT_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04TEXT\x10\x01\x12\x0B\x0A\x07INTEGER\x10\x02\x12\x09\x0A\x05FLOAT\x10\x03\x12\x09\x0A\x05EMAIL\x10\x04\x12\x10\x0A\x0CEMOJI_PICKER\x10\x05\"\xB4\x01\x0A\x08ChipList\x124\x0A\x06layout\x18\x01 \x01(\x0E2\$.google.apps.card.v1.ChipList.Layout\x12(\x0A\x05chips\x18\x02 \x03(\x0B2\x19.google.apps.card.v1.Chip\"H\x0A\x06Layout\x12\x16\x0A\x12LAYOUT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07WRAPPED\x10\x01\x12\x19\x0A\x15HORIZONTAL_SCROLLABLE\x10\x02\"\xA7\x01\x0A\x04Chip\x12'\x0A\x04icon\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.Icon\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\x12.\x0A\x08on_click\x18\x03 \x01(\x0B2\x1C.google.apps.card.v1.OnClick\x12\x13\x0A\x07enabled\x18\x04 \x01(\x08B\x02\x18\x01\x12\x10\x0A\x08disabled\x18\x06 \x01(\x08\x12\x10\x0A\x08alt_text\x18\x05 \x01(\x09B\xA4\x01\x0A\x17com.google.apps.card.v1B\x09CardProtoP\x01Z7google.golang.org/genproto/googleapis/apps/card/v1;card\xAA\x02\x13Google.Apps.Card.V1\xCA\x02\x13Google\\Apps\\Card\\V1\xEA\x02\x16Google::Apps::Card::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php deleted file mode 100644 index 971fee1c72f6..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php +++ /dev/null @@ -1,431 +0,0 @@ -google.apps.card.v1.Action - */ -class Action extends \Google\Protobuf\Internal\Message -{ - /** - * A custom function to invoke when the containing element is - * clicked or otherwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string function = 1; - */ - protected $function = ''; - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; - */ - private $parameters; - /** - * Specifies the loading indicator that the action displays while - * making the call to the action. - * - * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; - */ - protected $load_indicator = 0; - /** - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * - * Generated from protobuf field bool persist_values = 4; - */ - protected $persist_values = false; - /** - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; - */ - protected $interaction = 0; - /** - * Optional. Fill this list with the names of widgets that this Action - * needs for a valid submission. - * If the widgets listed here don't have a value when this Action is invoked, - * the form submission is aborted. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field repeated string required_widgets = 6; - */ - private $required_widgets; - /** - * Optional. If this is true, then all widgets are considered required by - * this action. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field bool all_widgets_are_required = 7; - */ - protected $all_widgets_are_required = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $function - * A custom function to invoke when the containing element is - * clicked or otherwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type \Google\Apps\Card\V1\Action\ActionParameter[] $parameters - * List of action parameters. - * @type int $load_indicator - * Specifies the loading indicator that the action displays while - * making the call to the action. - * @type bool $persist_values - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * @type int $interaction - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * @type string[] $required_widgets - * Optional. Fill this list with the names of widgets that this Action - * needs for a valid submission. - * If the widgets listed here don't have a value when this Action is invoked, - * the form submission is aborted. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * @type bool $all_widgets_are_required - * Optional. If this is true, then all widgets are considered required by - * this action. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A custom function to invoke when the containing element is - * clicked or otherwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string function = 1; - * @return string - */ - public function getFunction() - { - return $this->function; - } - - /** - * A custom function to invoke when the containing element is - * clicked or otherwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string function = 1; - * @param string $var - * @return $this - */ - public function setFunction($var) - { - GPBUtil::checkString($var, True); - $this->function = $var; - - return $this; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; - * @return RepeatedField<\Google\Apps\Card\V1\Action\ActionParameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; - * @param \Google\Apps\Card\V1\Action\ActionParameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Action\ActionParameter::class); - $this->parameters = $arr; - - return $this; - } - - /** - * Specifies the loading indicator that the action displays while - * making the call to the action. - * - * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; - * @return int - */ - public function getLoadIndicator() - { - return $this->load_indicator; - } - - /** - * Specifies the loading indicator that the action displays while - * making the call to the action. - * - * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; - * @param int $var - * @return $this - */ - public function setLoadIndicator($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Action\LoadIndicator::class); - $this->load_indicator = $var; - - return $this; - } - - /** - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * - * Generated from protobuf field bool persist_values = 4; - * @return bool - */ - public function getPersistValues() - { - return $this->persist_values; - } - - /** - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * - * Generated from protobuf field bool persist_values = 4; - * @param bool $var - * @return $this - */ - public function setPersistValues($var) - { - GPBUtil::checkBool($var); - $this->persist_values = $var; - - return $this; - } - - /** - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; - * @return int - */ - public function getInteraction() - { - return $this->interaction; - } - - /** - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; - * @param int $var - * @return $this - */ - public function setInteraction($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Action\Interaction::class); - $this->interaction = $var; - - return $this; - } - - /** - * Optional. Fill this list with the names of widgets that this Action - * needs for a valid submission. - * If the widgets listed here don't have a value when this Action is invoked, - * the form submission is aborted. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field repeated string required_widgets = 6; - * @return RepeatedField - */ - public function getRequiredWidgets() - { - return $this->required_widgets; - } - - /** - * Optional. Fill this list with the names of widgets that this Action - * needs for a valid submission. - * If the widgets listed here don't have a value when this Action is invoked, - * the form submission is aborted. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field repeated string required_widgets = 6; - * @param string[] $var - * @return $this - */ - public function setRequiredWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_widgets = $arr; - - return $this; - } - - /** - * Optional. If this is true, then all widgets are considered required by - * this action. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field bool all_widgets_are_required = 7; - * @return bool - */ - public function getAllWidgetsAreRequired() - { - return $this->all_widgets_are_required; - } - - /** - * Optional. If this is true, then all widgets are considered required by - * this action. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field bool all_widgets_are_required = 7; - * @param bool $var - * @return $this - */ - public function setAllWidgetsAreRequired($var) - { - GPBUtil::checkBool($var); - $this->all_widgets_are_required = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php deleted file mode 100644 index c0b2110fe223..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php +++ /dev/null @@ -1,108 +0,0 @@ -google.apps.card.v1.Action.ActionParameter - */ -class ActionParameter extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The name of the parameter for the action script. - * @type string $value - * The value of the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php deleted file mode 100644 index 80add2d0e65c..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php +++ /dev/null @@ -1,71 +0,0 @@ -google.apps.card.v1.Action.Interaction - */ -class Interaction -{ - /** - * Default value. The `action` executes as normal. - * - * Generated from protobuf enum INTERACTION_UNSPECIFIED = 0; - */ - const INTERACTION_UNSPECIFIED = 0; - /** - * Opens a [dialog](https://developers.google.com/workspace/chat/dialogs), a - * windowed, card-based interface that Chat apps use to interact with users. - * Only supported by Chat apps in response to button-clicks on card - * messages. If specified for - * an add-on, the entire card is stripped and nothing is shown in the - * client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf enum OPEN_DIALOG = 1; - */ - const OPEN_DIALOG = 1; - - private static $valueToName = [ - self::INTERACTION_UNSPECIFIED => 'INTERACTION_UNSPECIFIED', - self::OPEN_DIALOG => 'OPEN_DIALOG', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php deleted file mode 100644 index 1af72ac535a9..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php +++ /dev/null @@ -1,57 +0,0 @@ -google.apps.card.v1.Action.LoadIndicator - */ -class LoadIndicator -{ - /** - * Displays a spinner to indicate that content is loading. - * - * Generated from protobuf enum SPINNER = 0; - */ - const SPINNER = 0; - /** - * Nothing is displayed. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - - private static $valueToName = [ - self::SPINNER => 'SPINNER', - self::NONE => 'NONE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php deleted file mode 100644 index f07482954e84..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php +++ /dev/null @@ -1,208 +0,0 @@ -google.apps.card.v1.BorderStyle - */ -class BorderStyle extends \Google\Protobuf\Internal\Message -{ - /** - * The border type. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; - */ - protected $type = 0; - /** - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * To set the stroke color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for stroke color. If specified, this field - * is ignored. - * - * Generated from protobuf field .google.type.Color stroke_color = 2; - */ - protected $stroke_color = null; - /** - * The corner radius for the border. - * - * Generated from protobuf field int32 corner_radius = 3; - */ - protected $corner_radius = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The border type. - * @type \Google\Type\Color $stroke_color - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * To set the stroke color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for stroke color. If specified, this field - * is ignored. - * @type int $corner_radius - * The corner radius for the border. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The border type. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The border type. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\BorderStyle\BorderType::class); - $this->type = $var; - - return $this; - } - - /** - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * To set the stroke color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for stroke color. If specified, this field - * is ignored. - * - * Generated from protobuf field .google.type.Color stroke_color = 2; - * @return \Google\Type\Color|null - */ - public function getStrokeColor() - { - return $this->stroke_color; - } - - public function hasStrokeColor() - { - return isset($this->stroke_color); - } - - public function clearStrokeColor() - { - unset($this->stroke_color); - } - - /** - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * To set the stroke color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for stroke color. If specified, this field - * is ignored. - * - * Generated from protobuf field .google.type.Color stroke_color = 2; - * @param \Google\Type\Color $var - * @return $this - */ - public function setStrokeColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->stroke_color = $var; - - return $this; - } - - /** - * The corner radius for the border. - * - * Generated from protobuf field int32 corner_radius = 3; - * @return int - */ - public function getCornerRadius() - { - return $this->corner_radius; - } - - /** - * The corner radius for the border. - * - * Generated from protobuf field int32 corner_radius = 3; - * @param int $var - * @return $this - */ - public function setCornerRadius($var) - { - GPBUtil::checkInt32($var); - $this->corner_radius = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php deleted file mode 100644 index cb89ca1ab6ad..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php +++ /dev/null @@ -1,63 +0,0 @@ -google.apps.card.v1.BorderStyle.BorderType - */ -class BorderType -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum BORDER_TYPE_UNSPECIFIED = 0; - */ - const BORDER_TYPE_UNSPECIFIED = 0; - /** - * No border. - * - * Generated from protobuf enum NO_BORDER = 1; - */ - const NO_BORDER = 1; - /** - * Default value. Outline. - * - * Generated from protobuf enum STROKE = 2; - */ - const STROKE = 2; - - private static $valueToName = [ - self::BORDER_TYPE_UNSPECIFIED => 'BORDER_TYPE_UNSPECIFIED', - self::NO_BORDER => 'NO_BORDER', - self::STROKE => 'STROKE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php deleted file mode 100644 index a50d057c3b9a..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php +++ /dev/null @@ -1,418 +0,0 @@ -google.apps.card.v1.Button - */ -class Button extends \Google\Protobuf\Internal\Message -{ - /** - * The text displayed inside the button. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * An icon displayed inside the button. If both `icon` and `text` are set, - * then the icon appears before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; - */ - protected $icon = null; - /** - * Optional. The color of the button. If set, the button `type` is set to - * `FILLED` and the color of `text` and `icon` fields are set to a - * contrasting color for readability. For example, if the button color is - * set to blue, any text or icons in the button are set to white. - * To set the button color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for button color. If specified, this field - * is ignored. - * - * Generated from protobuf field .google.type.Color color = 3; - */ - protected $color = null; - /** - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; - */ - protected $on_click = null; - /** - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * - * Generated from protobuf field bool disabled = 5; - */ - protected $disabled = false; - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 6; - */ - protected $alt_text = ''; - /** - * Optional. The type of a button. If unset, button type defaults to - * `OUTLINED`. If the `color` field is set, the button type is forced to - * `FILLED` and any value set for this field is ignored. - * - * Generated from protobuf field .google.apps.card.v1.Button.Type type = 7; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text displayed inside the button. - * @type \Google\Apps\Card\V1\Icon $icon - * An icon displayed inside the button. If both `icon` and `text` are set, - * then the icon appears before the text. - * @type \Google\Type\Color $color - * Optional. The color of the button. If set, the button `type` is set to - * `FILLED` and the color of `text` and `icon` fields are set to a - * contrasting color for readability. For example, if the button color is - * set to blue, any text or icons in the button are set to white. - * To set the button color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for button color. If specified, this field - * is ignored. - * @type \Google\Apps\Card\V1\OnClick $on_click - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * @type bool $disabled - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * @type string $alt_text - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * @type int $type - * Optional. The type of a button. If unset, button type defaults to - * `OUTLINED`. If the `color` field is set, the button type is forced to - * `FILLED` and any value set for this field is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text displayed inside the button. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text displayed inside the button. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * An icon displayed inside the button. If both `icon` and `text` are set, - * then the icon appears before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getIcon() - { - return $this->icon; - } - - public function hasIcon() - { - return isset($this->icon); - } - - public function clearIcon() - { - unset($this->icon); - } - - /** - * An icon displayed inside the button. If both `icon` and `text` are set, - * then the icon appears before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->icon = $var; - - return $this; - } - - /** - * Optional. The color of the button. If set, the button `type` is set to - * `FILLED` and the color of `text` and `icon` fields are set to a - * contrasting color for readability. For example, if the button color is - * set to blue, any text or icons in the button are set to white. - * To set the button color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for button color. If specified, this field - * is ignored. - * - * Generated from protobuf field .google.type.Color color = 3; - * @return \Google\Type\Color|null - */ - public function getColor() - { - return $this->color; - } - - public function hasColor() - { - return isset($this->color); - } - - public function clearColor() - { - unset($this->color); - } - - /** - * Optional. The color of the button. If set, the button `type` is set to - * `FILLED` and the color of `text` and `icon` fields are set to a - * contrasting color for readability. For example, if the button color is - * set to blue, any text or icons in the button are set to white. - * To set the button color, specify a value for the `red`, `green`, and `blue` - * fields. - * The value must be a float number between 0 and 1 based on the RGB color - * value, where `0` (0/255) represents the absence of color and `1` (255/255) - * represents the maximum intensity of the color. - * For example, the following sets the color to red at its maximum intensity: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * } - * ``` - * The `alpha` field is unavailable for button color. If specified, this field - * is ignored. - * - * Generated from protobuf field .google.type.Color color = 3; - * @param \Google\Type\Color $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->color = $var; - - return $this; - } - - /** - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * - * Generated from protobuf field bool disabled = 5; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * - * Generated from protobuf field bool disabled = 5; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 6; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 6; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - - /** - * Optional. The type of a button. If unset, button type defaults to - * `OUTLINED`. If the `color` field is set, the button type is forced to - * `FILLED` and any value set for this field is ignored. - * - * Generated from protobuf field .google.apps.card.v1.Button.Type type = 7; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of a button. If unset, button type defaults to - * `OUTLINED`. If the `color` field is set, the button type is forced to - * `FILLED` and any value set for this field is ignored. - * - * Generated from protobuf field .google.apps.card.v1.Button.Type type = 7; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Button\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php deleted file mode 100644 index aabd8e013396..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button/Type.php +++ /dev/null @@ -1,86 +0,0 @@ -google.apps.card.v1.Button.Type - */ -class Type -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Outlined buttons are medium-emphasis buttons. They usually contain - * actions that are important, but aren’t the primary action in a Chat app - * or an add-on. - * - * Generated from protobuf enum OUTLINED = 1; - */ - const OUTLINED = 1; - /** - * A filled button has a container with a solid color. It has the most - * visual impact and is recommended for the important and primary action in - * a Chat app or an add-on. - * - * Generated from protobuf enum FILLED = 2; - */ - const FILLED = 2; - /** - * A filled tonal button is an alternative middle ground between filled and - * outlined buttons. They’re useful in contexts where a lower-priority - * button requires slightly more emphasis than an outline button would give. - * - * Generated from protobuf enum FILLED_TONAL = 3; - */ - const FILLED_TONAL = 3; - /** - * A button does not have an invisible container in its default state. It is - * often used for the lowest priority actions, especially when presenting - * multiple options. - * - * Generated from protobuf enum BORDERLESS = 4; - */ - const BORDERLESS = 4; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::OUTLINED => 'OUTLINED', - self::FILLED => 'FILLED', - self::FILLED_TONAL => 'FILLED_TONAL', - self::BORDERLESS => 'BORDERLESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php deleted file mode 100644 index 52389c27c5a3..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php +++ /dev/null @@ -1,72 +0,0 @@ -google.apps.card.v1.ButtonList - */ -class ButtonList extends \Google\Protobuf\Internal\Message -{ - /** - * An array of buttons. - * - * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; - */ - private $buttons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Button[] $buttons - * An array of buttons. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * An array of buttons. - * - * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; - * @return RepeatedField<\Google\Apps\Card\V1\Button> - */ - public function getButtons() - { - return $this->buttons; - } - - /** - * An array of buttons. - * - * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; - * @param \Google\Apps\Card\V1\Button[] $var - * @return $this - */ - public function setButtons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Button::class); - $this->buttons = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php deleted file mode 100644 index 3404b4457fad..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php +++ /dev/null @@ -1,641 +0,0 @@ -Online" - * } - * }, - * { - * "decoratedText": { - * "startIcon": { - * "knownIcon": "PHONE" - * }, - * "text": "+1 (555) 555-1234" - * } - * }, - * { - * "buttonList": { - * "buttons": [ - * { - * "text": "Share", - * "onClick": { - * "openLink": { - * "url": "https://example.com/share" - * } - * } - * }, - * { - * "text": "Edit", - * "onClick": { - * "action": { - * "function": "goToView", - * "parameters": [ - * { - * "key": "viewType", - * "value": "EDIT" - * } - * ] - * } - * } - * } - * ] - * } - * } - * ] - * } - * ] - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf message google.apps.card.v1.Card - */ -class Card extends \Google\Protobuf\Internal\Message -{ - /** - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; - */ - protected $header = null; - /** - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; - */ - private $sections; - /** - * The divider style between the header, sections and footer. - * - * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; - */ - protected $section_divider_style = 0; - /** - * 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" - * } - * } - * } - * ] - * ``` - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; - */ - private $card_actions; - /** - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - /** - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; - */ - protected $fixed_footer = null; - /** - * In Google Workspace add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; - */ - protected $display_style = 0; - /** - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; - */ - protected $peek_card_header = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Card\CardHeader $header - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * @type \Google\Apps\Card\V1\Card\Section[] $sections - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * @type int $section_divider_style - * The divider style between the header, sections and footer. - * @type \Google\Apps\Card\V1\Card\CardAction[] $card_actions - * 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" - * } - * } - * } - * ] - * ``` - * @type string $name - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\Card\CardFixedFooter $fixed_footer - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * @type int $display_style - * In Google Workspace add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\Card\CardHeader $peek_card_header - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; - * @return \Google\Apps\Card\V1\Card\CardHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; - * @param \Google\Apps\Card\V1\Card\CardHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; - * @return RepeatedField<\Google\Apps\Card\V1\Card\Section> - */ - public function getSections() - { - return $this->sections; - } - - /** - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; - * @param \Google\Apps\Card\V1\Card\Section[] $var - * @return $this - */ - public function setSections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\Section::class); - $this->sections = $arr; - - return $this; - } - - /** - * The divider style between the header, sections and footer. - * - * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; - * @return int - */ - public function getSectionDividerStyle() - { - return $this->section_divider_style; - } - - /** - * The divider style between the header, sections and footer. - * - * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; - * @param int $var - * @return $this - */ - public function setSectionDividerStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Card\DividerStyle::class); - $this->section_divider_style = $var; - - return $this; - } - - /** - * 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" - * } - * } - * } - * ] - * ``` - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; - * @return RepeatedField<\Google\Apps\Card\V1\Card\CardAction> - */ - public function getCardActions() - { - return $this->card_actions; - } - - /** - * 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" - * } - * } - * } - * ] - * ``` - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; - * @param \Google\Apps\Card\V1\Card\CardAction[] $var - * @return $this - */ - public function setCardActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\CardAction::class); - $this->card_actions = $arr; - - return $this; - } - - /** - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; - * @return \Google\Apps\Card\V1\Card\CardFixedFooter|null - */ - public function getFixedFooter() - { - return $this->fixed_footer; - } - - public function hasFixedFooter() - { - return isset($this->fixed_footer); - } - - public function clearFixedFooter() - { - unset($this->fixed_footer); - } - - /** - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; - * @param \Google\Apps\Card\V1\Card\CardFixedFooter $var - * @return $this - */ - public function setFixedFooter($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardFixedFooter::class); - $this->fixed_footer = $var; - - return $this; - } - - /** - * In Google Workspace add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; - * @return int - */ - public function getDisplayStyle() - { - return $this->display_style; - } - - /** - * In Google Workspace add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; - * @param int $var - * @return $this - */ - public function setDisplayStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Card\DisplayStyle::class); - $this->display_style = $var; - - return $this; - } - - /** - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; - * @return \Google\Apps\Card\V1\Card\CardHeader|null - */ - public function getPeekCardHeader() - { - return $this->peek_card_header; - } - - public function hasPeekCardHeader() - { - return isset($this->peek_card_header); - } - - public function clearPeekCardHeader() - { - unset($this->peek_card_header); - } - - /** - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; - * @param \Google\Apps\Card\V1\Card\CardHeader $var - * @return $this - */ - public function setPeekCardHeader($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardHeader::class); - $this->peek_card_header = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php deleted file mode 100644 index d60710da9cd4..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php +++ /dev/null @@ -1,115 +0,0 @@ -google.apps.card.v1.Card.CardAction - */ -class CardAction extends \Google\Protobuf\Internal\Message -{ - /** - * The label that displays as the action menu item. - * - * Generated from protobuf field string action_label = 1; - */ - protected $action_label = ''; - /** - * The `onClick` action for this action item. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $action_label - * The label that displays as the action menu item. - * @type \Google\Apps\Card\V1\OnClick $on_click - * The `onClick` action for this action item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The label that displays as the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @return string - */ - public function getActionLabel() - { - return $this->action_label; - } - - /** - * The label that displays as the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @param string $var - * @return $this - */ - public function setActionLabel($var) - { - GPBUtil::checkString($var, True); - $this->action_label = $var; - - return $this; - } - - /** - * The `onClick` action for this action item. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onClick` action for this action item. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php deleted file mode 100644 index 5b63b6b844fb..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php +++ /dev/null @@ -1,143 +0,0 @@ -google.apps.card.v1.Card.CardFixedFooter - */ -class CardFixedFooter extends \Google\Protobuf\Internal\Message -{ - /** - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * - * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; - */ - protected $primary_button = null; - /** - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * - * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; - */ - protected $secondary_button = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Button $primary_button - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * @type \Google\Apps\Card\V1\Button $secondary_button - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * - * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getPrimaryButton() - { - return $this->primary_button; - } - - public function hasPrimaryButton() - { - return isset($this->primary_button); - } - - public function clearPrimaryButton() - { - unset($this->primary_button); - } - - /** - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * - * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setPrimaryButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->primary_button = $var; - - return $this; - } - - /** - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * - * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getSecondaryButton() - { - return $this->secondary_button; - } - - public function hasSecondaryButton() - { - return isset($this->secondary_button); - } - - public function clearSecondaryButton() - { - unset($this->secondary_button); - } - - /** - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * - * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setSecondaryButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->secondary_button = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php deleted file mode 100644 index f27bfc04ad05..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php +++ /dev/null @@ -1,230 +0,0 @@ -google.apps.card.v1.Card.CardHeader - */ -class CardHeader extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * - * Generated from protobuf field string subtitle = 2; - */ - protected $subtitle = ''; - /** - * The shape used to crop the image. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; - */ - protected $image_type = 0; - /** - * The HTTPS URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - */ - protected $image_url = ''; - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string image_alt_text = 5; - */ - protected $image_alt_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * @type string $subtitle - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * @type int $image_type - * The shape used to crop the image. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * @type string $image_url - * The HTTPS URL of the image in the card header. - * @type string $image_alt_text - * The alternative text of this image that's used for accessibility. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * - * Generated from protobuf field string subtitle = 2; - * @return string - */ - public function getSubtitle() - { - return $this->subtitle; - } - - /** - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * - * Generated from protobuf field string subtitle = 2; - * @param string $var - * @return $this - */ - public function setSubtitle($var) - { - GPBUtil::checkString($var, True); - $this->subtitle = $var; - - return $this; - } - - /** - * The shape used to crop the image. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; - * @return int - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The shape used to crop the image. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; - * @param int $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\ImageType::class); - $this->image_type = $var; - - return $this; - } - - /** - * The HTTPS URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The HTTPS URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string image_alt_text = 5; - * @return string - */ - public function getImageAltText() - { - return $this->image_alt_text; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string image_alt_text = 5; - * @param string $var - * @return $this - */ - public function setImageAltText($var) - { - GPBUtil::checkString($var, True); - $this->image_alt_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php deleted file mode 100644 index f925d12ddd5c..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php +++ /dev/null @@ -1,68 +0,0 @@ -google.apps.card.v1.Card.DisplayStyle - */ -class DisplayStyle -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum DISPLAY_STYLE_UNSPECIFIED = 0; - */ - const DISPLAY_STYLE_UNSPECIFIED = 0; - /** - * The header of the card appears at the bottom of the - * sidebar, partially covering the current top card of the stack. Clicking - * the header pops the card into the card stack. If the card has no header, - * a generated header is used instead. - * - * Generated from protobuf enum PEEK = 1; - */ - const PEEK = 1; - /** - * Default value. The card is shown by replacing the view of the top card in - * the card stack. - * - * Generated from protobuf enum REPLACE = 2; - */ - const REPLACE = 2; - - private static $valueToName = [ - self::DISPLAY_STYLE_UNSPECIFIED => 'DISPLAY_STYLE_UNSPECIFIED', - self::PEEK => 'PEEK', - self::REPLACE => 'REPLACE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php deleted file mode 100644 index 5406eadfb194..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php +++ /dev/null @@ -1,65 +0,0 @@ -google.apps.card.v1.Card.DividerStyle - */ -class DividerStyle -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum DIVIDER_STYLE_UNSPECIFIED = 0; - */ - const DIVIDER_STYLE_UNSPECIFIED = 0; - /** - * Default option. Render a solid divider. - * - * Generated from protobuf enum SOLID_DIVIDER = 1; - */ - const SOLID_DIVIDER = 1; - /** - * If set, no divider is rendered. This style completely removes the divider - * from the layout. The result is equivalent to not adding a divider at all. - * - * Generated from protobuf enum NO_DIVIDER = 2; - */ - const NO_DIVIDER = 2; - - private static $valueToName = [ - self::DIVIDER_STYLE_UNSPECIFIED => 'DIVIDER_STYLE_UNSPECIFIED', - self::SOLID_DIVIDER => 'SOLID_DIVIDER', - self::NO_DIVIDER => 'NO_DIVIDER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php deleted file mode 100644 index bd90bcb35eda..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/NestedWidget.php +++ /dev/null @@ -1,143 +0,0 @@ -google.apps.card.v1.Card.NestedWidget - */ -class NestedWidget extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph - * A text paragraph widget. - * @type \Google\Apps\Card\V1\ButtonList $button_list - * A button list widget. - * @type \Google\Apps\Card\V1\Image $image - * An image widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A text paragraph widget. - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getTextParagraph() - { - return $this->readOneof(1); - } - - public function hasTextParagraph() - { - return $this->hasOneof(1); - } - - /** - * A text paragraph widget. - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setTextParagraph($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A button list widget. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 3; - * @return \Google\Apps\Card\V1\ButtonList|null - */ - public function getButtonList() - { - return $this->readOneof(3); - } - - public function hasButtonList() - { - return $this->hasOneof(3); - } - - /** - * A button list widget. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 3; - * @param \Google\Apps\Card\V1\ButtonList $var - * @return $this - */ - public function setButtonList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * An image widget. - * - * Generated from protobuf field .google.apps.card.v1.Image image = 10; - * @return \Google\Apps\Card\V1\Image|null - */ - public function getImage() - { - return $this->readOneof(10); - } - - public function hasImage() - { - return $this->hasOneof(10); - } - - /** - * An image widget. - * - * Generated from protobuf field .google.apps.card.v1.Image image = 10; - * @param \Google\Apps\Card\V1\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php deleted file mode 100644 index 6da3959b363b..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php +++ /dev/null @@ -1,304 +0,0 @@ -google.apps.card.v1.Card.Section - */ -class Section extends \Google\Protobuf\Internal\Message -{ - /** - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - */ - protected $header = ''; - /** - * All the widgets in the section. - * Must contain at least one widget. - * - * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; - */ - private $widgets; - /** - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * - * Generated from protobuf field bool collapsible = 5; - */ - protected $collapsible = false; - /** - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * - * Generated from protobuf field int32 uncollapsible_widgets_count = 6; - */ - protected $uncollapsible_widgets_count = 0; - /** - * Optional. Define the expand and collapse button of the section. - * This button will be shown only if the section is collapsible. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.CollapseControl collapse_control = 8; - */ - protected $collapse_control = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $header - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type \Google\Apps\Card\V1\Widget[] $widgets - * All the widgets in the section. - * Must contain at least one widget. - * @type bool $collapsible - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * @type int $uncollapsible_widgets_count - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * @type \Google\Apps\Card\V1\CollapseControl $collapse_control - * Optional. Define the expand and collapse button of the section. - * This button will be shown only if the section is collapsible. - * If this field isn't set, the default button is used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @return string - */ - public function getHeader() - { - return $this->header; - } - - /** - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @param string $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkString($var, True); - $this->header = $var; - - return $this; - } - - /** - * All the widgets in the section. - * Must contain at least one widget. - * - * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; - * @return RepeatedField<\Google\Apps\Card\V1\Widget> - */ - public function getWidgets() - { - return $this->widgets; - } - - /** - * All the widgets in the section. - * Must contain at least one widget. - * - * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; - * @param \Google\Apps\Card\V1\Widget[] $var - * @return $this - */ - public function setWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Widget::class); - $this->widgets = $arr; - - return $this; - } - - /** - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * - * Generated from protobuf field bool collapsible = 5; - * @return bool - */ - public function getCollapsible() - { - return $this->collapsible; - } - - /** - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * - * Generated from protobuf field bool collapsible = 5; - * @param bool $var - * @return $this - */ - public function setCollapsible($var) - { - GPBUtil::checkBool($var); - $this->collapsible = $var; - - return $this; - } - - /** - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * - * Generated from protobuf field int32 uncollapsible_widgets_count = 6; - * @return int - */ - public function getUncollapsibleWidgetsCount() - { - return $this->uncollapsible_widgets_count; - } - - /** - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * - * Generated from protobuf field int32 uncollapsible_widgets_count = 6; - * @param int $var - * @return $this - */ - public function setUncollapsibleWidgetsCount($var) - { - GPBUtil::checkInt32($var); - $this->uncollapsible_widgets_count = $var; - - return $this; - } - - /** - * Optional. Define the expand and collapse button of the section. - * This button will be shown only if the section is collapsible. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.CollapseControl collapse_control = 8; - * @return \Google\Apps\Card\V1\CollapseControl|null - */ - public function getCollapseControl() - { - return $this->collapse_control; - } - - public function hasCollapseControl() - { - return isset($this->collapse_control); - } - - public function clearCollapseControl() - { - unset($this->collapse_control); - } - - /** - * Optional. Define the expand and collapse button of the section. - * This button will be shown only if the section is collapsible. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.CollapseControl collapse_control = 8; - * @param \Google\Apps\Card\V1\CollapseControl $var - * @return $this - */ - public function setCollapseControl($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\CollapseControl::class); - $this->collapse_control = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php deleted file mode 100644 index 370429291404..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel.php +++ /dev/null @@ -1,104 +0,0 @@ -google.apps.card.v1.Carousel - */ -class Carousel extends \Google\Protobuf\Internal\Message -{ - /** - * A list of cards included in the carousel. - * - * Generated from protobuf field repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4; - */ - private $carousel_cards; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Carousel\CarouselCard[] $carousel_cards - * A list of cards included in the carousel. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A list of cards included in the carousel. - * - * Generated from protobuf field repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4; - * @return RepeatedField<\Google\Apps\Card\V1\Carousel\CarouselCard> - */ - public function getCarouselCards() - { - return $this->carousel_cards; - } - - /** - * A list of cards included in the carousel. - * - * Generated from protobuf field repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4; - * @param \Google\Apps\Card\V1\Carousel\CarouselCard[] $var - * @return $this - */ - public function setCarouselCards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Carousel\CarouselCard::class); - $this->carousel_cards = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php deleted file mode 100644 index f7807ea8291d..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Carousel/CarouselCard.php +++ /dev/null @@ -1,110 +0,0 @@ -google.apps.card.v1.Carousel.CarouselCard - */ -class CarouselCard extends \Google\Protobuf\Internal\Message -{ - /** - * A list of widgets displayed in the carousel card. The widgets are - * displayed in the order that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget widgets = 1; - */ - private $widgets; - /** - * A list of widgets displayed at the bottom of the carousel card. The - * widgets are displayed in the order that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2; - */ - private $footer_widgets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Card\NestedWidget[] $widgets - * A list of widgets displayed in the carousel card. The widgets are - * displayed in the order that they are specified. - * @type \Google\Apps\Card\V1\Card\NestedWidget[] $footer_widgets - * A list of widgets displayed at the bottom of the carousel card. The - * widgets are displayed in the order that they are specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A list of widgets displayed in the carousel card. The widgets are - * displayed in the order that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget widgets = 1; - * @return RepeatedField<\Google\Apps\Card\V1\Card\NestedWidget> - */ - public function getWidgets() - { - return $this->widgets; - } - - /** - * A list of widgets displayed in the carousel card. The widgets are - * displayed in the order that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget widgets = 1; - * @param \Google\Apps\Card\V1\Card\NestedWidget[] $var - * @return $this - */ - public function setWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\NestedWidget::class); - $this->widgets = $arr; - - return $this; - } - - /** - * A list of widgets displayed at the bottom of the carousel card. The - * widgets are displayed in the order that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2; - * @return RepeatedField<\Google\Apps\Card\V1\Card\NestedWidget> - */ - public function getFooterWidgets() - { - return $this->footer_widgets; - } - - /** - * A list of widgets displayed at the bottom of the carousel card. The - * widgets are displayed in the order that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2; - * @param \Google\Apps\Card\V1\Card\NestedWidget[] $var - * @return $this - */ - public function setFooterWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\NestedWidget::class); - $this->footer_widgets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php deleted file mode 100644 index 9a79307e8b5b..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Chip.php +++ /dev/null @@ -1,302 +0,0 @@ -google.apps.card.v1.Chip - */ -class Chip extends \Google\Protobuf\Internal\Message -{ - /** - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1; - */ - protected $icon = null; - /** - * The text displayed inside the chip. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * Optional. The action to perform when a user clicks the chip, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; - */ - protected $on_click = null; - /** - * Whether the chip is in an active state and responds to user actions. - * Defaults to `true`. - * Deprecated. Use `disabled` instead. - * - * Generated from protobuf field bool enabled = 4 [deprecated = true]; - * @deprecated - */ - protected $enabled = false; - /** - * Whether the chip is in an inactive state and ignores user actions. - * Defaults to `false`. - * - * Generated from protobuf field bool disabled = 6; - */ - protected $disabled = false; - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the chip does. For - * example, if a chip opens a hyperlink, write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 5; - */ - protected $alt_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Icon $icon - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * @type string $label - * The text displayed inside the chip. - * @type \Google\Apps\Card\V1\OnClick $on_click - * Optional. The action to perform when a user clicks the chip, such as - * opening a hyperlink or running a custom function. - * @type bool $enabled - * Whether the chip is in an active state and responds to user actions. - * Defaults to `true`. - * Deprecated. Use `disabled` instead. - * @type bool $disabled - * Whether the chip is in an inactive state and ignores user actions. - * Defaults to `false`. - * @type string $alt_text - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the chip does. For - * example, if a chip opens a hyperlink, write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getIcon() - { - return $this->icon; - } - - public function hasIcon() - { - return isset($this->icon); - } - - public function clearIcon() - { - unset($this->icon); - } - - /** - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->icon = $var; - - return $this; - } - - /** - * The text displayed inside the chip. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * The text displayed inside the chip. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Optional. The action to perform when a user clicks the chip, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * Optional. The action to perform when a user clicks the chip, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * Whether the chip is in an active state and responds to user actions. - * Defaults to `true`. - * Deprecated. Use `disabled` instead. - * - * Generated from protobuf field bool enabled = 4 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getEnabled() - { - if ($this->enabled !== false) { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - } - return $this->enabled; - } - - /** - * Whether the chip is in an active state and responds to user actions. - * Defaults to `true`. - * Deprecated. Use `disabled` instead. - * - * Generated from protobuf field bool enabled = 4 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setEnabled($var) - { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Whether the chip is in an inactive state and ignores user actions. - * Defaults to `false`. - * - * Generated from protobuf field bool disabled = 6; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the chip is in an inactive state and ignores user actions. - * Defaults to `false`. - * - * Generated from protobuf field bool disabled = 6; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the chip does. For - * example, if a chip opens a hyperlink, write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 5; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the chip does. For - * example, if a chip opens a hyperlink, write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 5; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php deleted file mode 100644 index 776b2a1678e0..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList.php +++ /dev/null @@ -1,104 +0,0 @@ -google.apps.card.v1.ChipList - */ -class ChipList extends \Google\Protobuf\Internal\Message -{ - /** - * Specified chip list layout. - * - * Generated from protobuf field .google.apps.card.v1.ChipList.Layout layout = 1; - */ - protected $layout = 0; - /** - * An array of chips. - * - * Generated from protobuf field repeated .google.apps.card.v1.Chip chips = 2; - */ - private $chips; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $layout - * Specified chip list layout. - * @type \Google\Apps\Card\V1\Chip[] $chips - * An array of chips. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Specified chip list layout. - * - * Generated from protobuf field .google.apps.card.v1.ChipList.Layout layout = 1; - * @return int - */ - public function getLayout() - { - return $this->layout; - } - - /** - * Specified chip list layout. - * - * Generated from protobuf field .google.apps.card.v1.ChipList.Layout layout = 1; - * @param int $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\ChipList\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * An array of chips. - * - * Generated from protobuf field repeated .google.apps.card.v1.Chip chips = 2; - * @return RepeatedField<\Google\Apps\Card\V1\Chip> - */ - public function getChips() - { - return $this->chips; - } - - /** - * An array of chips. - * - * Generated from protobuf field repeated .google.apps.card.v1.Chip chips = 2; - * @param \Google\Apps\Card\V1\Chip[] $var - * @return $this - */ - public function setChips($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Chip::class); - $this->chips = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php deleted file mode 100644 index a00bb29a8eeb..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ChipList/Layout.php +++ /dev/null @@ -1,62 +0,0 @@ -google.apps.card.v1.ChipList.Layout - */ -class Layout -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum LAYOUT_UNSPECIFIED = 0; - */ - const LAYOUT_UNSPECIFIED = 0; - /** - * Default value. The chip list wraps to the next line if there isn't enough - * horizontal space. - * - * Generated from protobuf enum WRAPPED = 1; - */ - const WRAPPED = 1; - /** - * The chips scroll horizontally if they don't fit in the available space. - * - * Generated from protobuf enum HORIZONTAL_SCROLLABLE = 2; - */ - const HORIZONTAL_SCROLLABLE = 2; - - private static $valueToName = [ - self::LAYOUT_UNSPECIFIED => 'LAYOUT_UNSPECIFIED', - self::WRAPPED => 'WRAPPED', - self::HORIZONTAL_SCROLLABLE => 'HORIZONTAL_SCROLLABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php deleted file mode 100644 index 6ba9a42cd1b7..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/CollapseControl.php +++ /dev/null @@ -1,181 +0,0 @@ -google.apps.card.v1.CollapseControl - */ -class CollapseControl extends \Google\Protobuf\Internal\Message -{ - /** - * The horizontal alignment of the expand and collapse button. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1; - */ - protected $horizontal_alignment = 0; - /** - * Optional. Define a customizable button to expand the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.Button expand_button = 2; - */ - protected $expand_button = null; - /** - * Optional. Define a customizable button to collapse the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.Button collapse_button = 3; - */ - protected $collapse_button = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $horizontal_alignment - * The horizontal alignment of the expand and collapse button. - * @type \Google\Apps\Card\V1\Button $expand_button - * Optional. Define a customizable button to expand the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * @type \Google\Apps\Card\V1\Button $collapse_button - * Optional. Define a customizable button to collapse the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The horizontal alignment of the expand and collapse button. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1; - * @return int - */ - public function getHorizontalAlignment() - { - return $this->horizontal_alignment; - } - - /** - * The horizontal alignment of the expand and collapse button. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1; - * @param int $var - * @return $this - */ - public function setHorizontalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); - $this->horizontal_alignment = $var; - - return $this; - } - - /** - * Optional. Define a customizable button to expand the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.Button expand_button = 2; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getExpandButton() - { - return $this->expand_button; - } - - public function hasExpandButton() - { - return isset($this->expand_button); - } - - public function clearExpandButton() - { - unset($this->expand_button); - } - - /** - * Optional. Define a customizable button to expand the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.Button expand_button = 2; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setExpandButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->expand_button = $var; - - return $this; - } - - /** - * Optional. Define a customizable button to collapse the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.Button collapse_button = 3; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getCollapseButton() - { - return $this->collapse_button; - } - - public function hasCollapseButton() - { - return isset($this->collapse_button); - } - - public function clearCollapseButton() - { - unset($this->collapse_button); - } - - /** - * Optional. Define a customizable button to collapse the section. - * Both expand_button and collapse_button field must be set. Only one - * field set will not take into effect. - * If this field isn't set, the default button is used. - * - * Generated from protobuf field .google.apps.card.v1.Button collapse_button = 3; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setCollapseButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->collapse_button = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php deleted file mode 100644 index 3f51a47ab0fe..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php +++ /dev/null @@ -1,93 +0,0 @@ -google.apps.card.v1.Columns - */ -class Columns extends \Google\Protobuf\Internal\Message -{ - /** - * An array of columns. You can include up to 2 columns in a card or dialog. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; - */ - private $column_items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Columns\Column[] $column_items - * An array of columns. You can include up to 2 columns in a card or dialog. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * An array of columns. You can include up to 2 columns in a card or dialog. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; - * @return RepeatedField<\Google\Apps\Card\V1\Columns\Column> - */ - public function getColumnItems() - { - return $this->column_items; - } - - /** - * An array of columns. You can include up to 2 columns in a card or dialog. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; - * @param \Google\Apps\Card\V1\Columns\Column[] $var - * @return $this - */ - public function setColumnItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Columns\Column::class); - $this->column_items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php deleted file mode 100644 index 857e18876161..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php +++ /dev/null @@ -1,183 +0,0 @@ -google.apps.card.v1.Columns.Column - */ -class Column extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies how a column fills the width of the card. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; - */ - protected $horizontal_size_style = 0; - /** - * Specifies whether widgets align to the left, right, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; - */ - protected $horizontal_alignment = 0; - /** - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; - */ - protected $vertical_alignment = 0; - /** - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; - */ - private $widgets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $horizontal_size_style - * Specifies how a column fills the width of the card. - * @type int $horizontal_alignment - * Specifies whether widgets align to the left, right, or center of a - * column. - * @type int $vertical_alignment - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * @type \Google\Apps\Card\V1\Columns\Column\Widgets[] $widgets - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Specifies how a column fills the width of the card. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; - * @return int - */ - public function getHorizontalSizeStyle() - { - return $this->horizontal_size_style; - } - - /** - * Specifies how a column fills the width of the card. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; - * @param int $var - * @return $this - */ - public function setHorizontalSizeStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Columns\Column\HorizontalSizeStyle::class); - $this->horizontal_size_style = $var; - - return $this; - } - - /** - * Specifies whether widgets align to the left, right, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; - * @return int - */ - public function getHorizontalAlignment() - { - return $this->horizontal_alignment; - } - - /** - * Specifies whether widgets align to the left, right, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; - * @param int $var - * @return $this - */ - public function setHorizontalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); - $this->horizontal_alignment = $var; - - return $this; - } - - /** - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; - * @return int - */ - public function getVerticalAlignment() - { - return $this->vertical_alignment; - } - - /** - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; - * @param int $var - * @return $this - */ - public function setVerticalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Columns\Column\VerticalAlignment::class); - $this->vertical_alignment = $var; - - return $this; - } - - /** - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; - * @return RepeatedField<\Google\Apps\Card\V1\Columns\Column\Widgets> - */ - public function getWidgets() - { - return $this->widgets; - } - - /** - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; - * @param \Google\Apps\Card\V1\Columns\Column\Widgets[] $var - * @return $this - */ - public function setWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Columns\Column\Widgets::class); - $this->widgets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php deleted file mode 100644 index 13134df4d8cc..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php +++ /dev/null @@ -1,68 +0,0 @@ -google.apps.card.v1.Columns.Column.HorizontalSizeStyle - */ -class HorizontalSizeStyle -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0; - */ - const HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0; - /** - * Default value. Column fills the available space, up to 70% of the - * card's width. If both columns are set to `FILL_AVAILABLE_SPACE`, each - * column fills 50% of the space. - * - * Generated from protobuf enum FILL_AVAILABLE_SPACE = 1; - */ - const FILL_AVAILABLE_SPACE = 1; - /** - * Column fills the least amount of space possible and no more than 30% of - * the card's width. - * - * Generated from protobuf enum FILL_MINIMUM_SPACE = 2; - */ - const FILL_MINIMUM_SPACE = 2; - - private static $valueToName = [ - self::HORIZONTAL_SIZE_STYLE_UNSPECIFIED => 'HORIZONTAL_SIZE_STYLE_UNSPECIFIED', - self::FILL_AVAILABLE_SPACE => 'FILL_AVAILABLE_SPACE', - self::FILL_MINIMUM_SPACE => 'FILL_MINIMUM_SPACE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php deleted file mode 100644 index 622609759b52..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php +++ /dev/null @@ -1,71 +0,0 @@ -google.apps.card.v1.Columns.Column.VerticalAlignment - */ -class VerticalAlignment -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum VERTICAL_ALIGNMENT_UNSPECIFIED = 0; - */ - const VERTICAL_ALIGNMENT_UNSPECIFIED = 0; - /** - * Default value. Aligns widgets to the center of a column. - * - * Generated from protobuf enum CENTER = 1; - */ - const CENTER = 1; - /** - * Aligns widgets to the top of a column. - * - * Generated from protobuf enum TOP = 2; - */ - const TOP = 2; - /** - * Aligns widgets to the bottom of a column. - * - * Generated from protobuf enum BOTTOM = 3; - */ - const BOTTOM = 3; - - private static $valueToName = [ - self::VERTICAL_ALIGNMENT_UNSPECIFIED => 'VERTICAL_ALIGNMENT_UNSPECIFIED', - self::CENTER => 'CENTER', - self::TOP => 'TOP', - self::BOTTOM => 'BOTTOM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php deleted file mode 100644 index 9b4c6f312538..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php +++ /dev/null @@ -1,308 +0,0 @@ -google.apps.card.v1.Columns.Column.Widgets - */ -class Widgets extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph - * [TextParagraph][google.apps.card.v1.TextParagraph] widget. - * @type \Google\Apps\Card\V1\Image $image - * [Image][google.apps.card.v1.Image] widget. - * @type \Google\Apps\Card\V1\DecoratedText $decorated_text - * [DecoratedText][google.apps.card.v1.DecoratedText] widget. - * @type \Google\Apps\Card\V1\ButtonList $button_list - * [ButtonList][google.apps.card.v1.ButtonList] widget. - * @type \Google\Apps\Card\V1\TextInput $text_input - * [TextInput][google.apps.card.v1.TextInput] widget. - * @type \Google\Apps\Card\V1\SelectionInput $selection_input - * [SelectionInput][google.apps.card.v1.SelectionInput] widget. - * @type \Google\Apps\Card\V1\DateTimePicker $date_time_picker - * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. - * @type \Google\Apps\Card\V1\ChipList $chip_list - * [ChipList][google.apps.card.v1.ChipList] widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * [TextParagraph][google.apps.card.v1.TextParagraph] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getTextParagraph() - { - return $this->readOneof(1); - } - - public function hasTextParagraph() - { - return $this->hasOneof(1); - } - - /** - * [TextParagraph][google.apps.card.v1.TextParagraph] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setTextParagraph($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * [Image][google.apps.card.v1.Image] widget. - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @return \Google\Apps\Card\V1\Image|null - */ - public function getImage() - { - return $this->readOneof(2); - } - - public function hasImage() - { - return $this->hasOneof(2); - } - - /** - * [Image][google.apps.card.v1.Image] widget. - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @param \Google\Apps\Card\V1\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * [DecoratedText][google.apps.card.v1.DecoratedText] widget. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @return \Google\Apps\Card\V1\DecoratedText|null - */ - public function getDecoratedText() - { - return $this->readOneof(3); - } - - public function hasDecoratedText() - { - return $this->hasOneof(3); - } - - /** - * [DecoratedText][google.apps.card.v1.DecoratedText] widget. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @param \Google\Apps\Card\V1\DecoratedText $var - * @return $this - */ - public function setDecoratedText($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * [ButtonList][google.apps.card.v1.ButtonList] widget. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @return \Google\Apps\Card\V1\ButtonList|null - */ - public function getButtonList() - { - return $this->readOneof(4); - } - - public function hasButtonList() - { - return $this->hasOneof(4); - } - - /** - * [ButtonList][google.apps.card.v1.ButtonList] widget. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @param \Google\Apps\Card\V1\ButtonList $var - * @return $this - */ - public function setButtonList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * [TextInput][google.apps.card.v1.TextInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @return \Google\Apps\Card\V1\TextInput|null - */ - public function getTextInput() - { - return $this->readOneof(5); - } - - public function hasTextInput() - { - return $this->hasOneof(5); - } - - /** - * [TextInput][google.apps.card.v1.TextInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @param \Google\Apps\Card\V1\TextInput $var - * @return $this - */ - public function setTextInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextInput::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * [SelectionInput][google.apps.card.v1.SelectionInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @return \Google\Apps\Card\V1\SelectionInput|null - */ - public function getSelectionInput() - { - return $this->readOneof(6); - } - - public function hasSelectionInput() - { - return $this->hasOneof(6); - } - - /** - * [SelectionInput][google.apps.card.v1.SelectionInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @param \Google\Apps\Card\V1\SelectionInput $var - * @return $this - */ - public function setSelectionInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @return \Google\Apps\Card\V1\DateTimePicker|null - */ - public function getDateTimePicker() - { - return $this->readOneof(7); - } - - public function hasDateTimePicker() - { - return $this->hasOneof(7); - } - - /** - * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @param \Google\Apps\Card\V1\DateTimePicker $var - * @return $this - */ - public function setDateTimePicker($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DateTimePicker::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * [ChipList][google.apps.card.v1.ChipList] widget. - * - * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 8; - * @return \Google\Apps\Card\V1\ChipList|null - */ - public function getChipList() - { - return $this->readOneof(8); - } - - public function hasChipList() - { - return $this->hasOneof(8); - } - - /** - * [ChipList][google.apps.card.v1.ChipList] widget. - * - * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 8; - * @param \Google\Apps\Card\V1\ChipList $var - * @return $this - */ - public function setChipList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ChipList::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php deleted file mode 100644 index d435c5d2f694..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php +++ /dev/null @@ -1,327 +0,0 @@ -google.apps.card.v1.DateTimePicker - */ -class DateTimePicker extends \Google\Protobuf\Internal\Message -{ - /** - * The name by which the `DateTimePicker` is identified 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). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * Whether the widget supports inputting a date, a time, or the date and time. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; - */ - protected $type = 0; - /** - * Optional. The default value displayed in the widget, in milliseconds since - * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * - * Generated from protobuf field optional int64 value_ms_epoch = 4; - */ - protected $value_ms_epoch = null; - /** - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * - * Generated from protobuf field int32 timezone_offset_date = 5; - */ - protected $timezone_offset_date = 0; - /** - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - */ - protected $on_change_action = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name by which the `DateTimePicker` is identified 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). - * @type string $label - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * @type int $type - * Whether the widget supports inputting a date, a time, or the date and time. - * @type int|string $value_ms_epoch - * Optional. The default value displayed in the widget, in milliseconds since - * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * @type int $timezone_offset_date - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * @type \Google\Apps\Card\V1\Action $on_change_action - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name by which the `DateTimePicker` is identified 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). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name by which the `DateTimePicker` is identified 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). - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Whether the widget supports inputting a date, a time, or the date and time. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Whether the widget supports inputting a date, a time, or the date and time. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\DateTimePicker\DateTimePickerType::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The default value displayed in the widget, in milliseconds since - * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * - * Generated from protobuf field optional int64 value_ms_epoch = 4; - * @return int|string - */ - public function getValueMsEpoch() - { - return isset($this->value_ms_epoch) ? $this->value_ms_epoch : 0; - } - - public function hasValueMsEpoch() - { - return isset($this->value_ms_epoch); - } - - public function clearValueMsEpoch() - { - unset($this->value_ms_epoch); - } - - /** - * Optional. The default value displayed in the widget, in milliseconds since - * [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * - * Generated from protobuf field optional int64 value_ms_epoch = 4; - * @param int|string $var - * @return $this - */ - public function setValueMsEpoch($var) - { - GPBUtil::checkInt64($var); - $this->value_ms_epoch = $var; - - return $this; - } - - /** - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * - * Generated from protobuf field int32 timezone_offset_date = 5; - * @return int - */ - public function getTimezoneOffsetDate() - { - return $this->timezone_offset_date; - } - - /** - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * - * Generated from protobuf field int32 timezone_offset_date = 5; - * @param int $var - * @return $this - */ - public function setTimezoneOffsetDate($var) - { - GPBUtil::checkInt32($var); - $this->timezone_offset_date = $var; - - return $this; - } - - /** - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php deleted file mode 100644 index 94453212d2d6..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.apps.card.v1.DateTimePicker.DateTimePickerType - */ -class DateTimePickerType -{ - /** - * Users input a date and time. - * - * Generated from protobuf enum DATE_AND_TIME = 0; - */ - const DATE_AND_TIME = 0; - /** - * Users input a date. - * - * Generated from protobuf enum DATE_ONLY = 1; - */ - const DATE_ONLY = 1; - /** - * Users input a time. - * - * Generated from protobuf enum TIME_ONLY = 2; - */ - const TIME_ONLY = 2; - - private static $valueToName = [ - self::DATE_AND_TIME => 'DATE_AND_TIME', - self::DATE_ONLY => 'DATE_ONLY', - self::TIME_ONLY => 'TIME_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php deleted file mode 100644 index a34cad35b875..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php +++ /dev/null @@ -1,682 +0,0 @@ -google.apps.card.v1.DecoratedText - */ -class DecoratedText extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated in favor of `startIcon`. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; - * @deprecated - */ - protected $icon = null; - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; - */ - protected $start_icon = null; - /** - * Optional. Vertical alignment of the start icon. If not set, the icon - * will be vertically centered. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13; - */ - protected $start_icon_vertical_alignment = 0; - /** - * The text that appears above `text`. Always truncates. - * - * Generated from protobuf field string top_label = 3; - */ - protected $top_label = ''; - /** - * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for - * more complex formatting than `top_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph top_label_text = 17; - */ - protected $top_label_text = null; - /** - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string text = 4; - */ - protected $text = ''; - /** - * `TextParagraph` equivalent of `text`. Allows for more complex formatting - * than `text`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph content_text = 18; - */ - protected $content_text = null; - /** - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * - * Generated from protobuf field bool wrap_text = 5; - */ - protected $wrap_text = false; - /** - * The text that appears below `text`. Always wraps. - * - * Generated from protobuf field string bottom_label = 6; - */ - protected $bottom_label = ''; - /** - * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for - * more complex formatting than `bottom_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph bottom_label_text = 19; - */ - protected $bottom_label_text = null; - /** - * This action is triggered when users click `topLabel` or `bottomLabel`. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; - */ - protected $on_click = null; - protected $control; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Icon $icon - * Deprecated in favor of `startIcon`. - * @type \Google\Apps\Card\V1\Icon $start_icon - * The icon displayed in front of the text. - * @type int $start_icon_vertical_alignment - * Optional. Vertical alignment of the start icon. If not set, the icon - * will be vertically centered. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * @type string $top_label - * The text that appears above `text`. Always truncates. - * @type \Google\Apps\Card\V1\TextParagraph $top_label_text - * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for - * more complex formatting than `top_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * @type string $text - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type \Google\Apps\Card\V1\TextParagraph $content_text - * `TextParagraph` equivalent of `text`. Allows for more complex formatting - * than `text`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * @type bool $wrap_text - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * @type string $bottom_label - * The text that appears below `text`. Always wraps. - * @type \Google\Apps\Card\V1\TextParagraph $bottom_label_text - * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for - * more complex formatting than `bottom_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * @type \Google\Apps\Card\V1\OnClick $on_click - * This action is triggered when users click `topLabel` or `bottomLabel`. - * @type \Google\Apps\Card\V1\Button $button - * A button that a user can click to trigger an action. - * @type \Google\Apps\Card\V1\DecoratedText\SwitchControl $switch_control - * A switch widget that a user can click to change its state and trigger an - * action. - * @type \Google\Apps\Card\V1\Icon $end_icon - * An icon displayed after the text. - * Supports - * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) - * and - * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) - * icons. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated in favor of `startIcon`. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; - * @return \Google\Apps\Card\V1\Icon|null - * @deprecated - */ - public function getIcon() - { - if (isset($this->icon)) { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - } - return $this->icon; - } - - public function hasIcon() - { - if (isset($this->icon)) { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - } - return isset($this->icon); - } - - public function clearIcon() - { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - unset($this->icon); - } - - /** - * Deprecated in favor of `startIcon`. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - * @deprecated - */ - public function setIcon($var) - { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->icon = $var; - - return $this; - } - - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getStartIcon() - { - return $this->start_icon; - } - - public function hasStartIcon() - { - return isset($this->start_icon); - } - - public function clearStartIcon() - { - unset($this->start_icon); - } - - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setStartIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->start_icon = $var; - - return $this; - } - - /** - * Optional. Vertical alignment of the start icon. If not set, the icon - * will be vertically centered. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13; - * @return int - */ - public function getStartIconVerticalAlignment() - { - return $this->start_icon_vertical_alignment; - } - - /** - * Optional. Vertical alignment of the start icon. If not set, the icon - * will be vertically centered. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Widget.VerticalAlignment start_icon_vertical_alignment = 13; - * @param int $var - * @return $this - */ - public function setStartIconVerticalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\VerticalAlignment::class); - $this->start_icon_vertical_alignment = $var; - - return $this; - } - - /** - * The text that appears above `text`. Always truncates. - * - * Generated from protobuf field string top_label = 3; - * @return string - */ - public function getTopLabel() - { - return $this->top_label; - } - - /** - * The text that appears above `text`. Always truncates. - * - * Generated from protobuf field string top_label = 3; - * @param string $var - * @return $this - */ - public function setTopLabel($var) - { - GPBUtil::checkString($var, True); - $this->top_label = $var; - - return $this; - } - - /** - * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for - * more complex formatting than `top_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph top_label_text = 17; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getTopLabelText() - { - return $this->top_label_text; - } - - public function hasTopLabelText() - { - return isset($this->top_label_text); - } - - public function clearTopLabelText() - { - unset($this->top_label_text); - } - - /** - * `TextParagraph` equivalent of `top_label`. Always truncates. Allows for - * more complex formatting than `top_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph top_label_text = 17; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setTopLabelText($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->top_label_text = $var; - - return $this; - } - - /** - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string text = 4; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string text = 4; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * `TextParagraph` equivalent of `text`. Allows for more complex formatting - * than `text`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph content_text = 18; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getContentText() - { - return $this->content_text; - } - - public function hasContentText() - { - return isset($this->content_text); - } - - public function clearContentText() - { - unset($this->content_text); - } - - /** - * `TextParagraph` equivalent of `text`. Allows for more complex formatting - * than `text`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph content_text = 18; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setContentText($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->content_text = $var; - - return $this; - } - - /** - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * - * Generated from protobuf field bool wrap_text = 5; - * @return bool - */ - public function getWrapText() - { - return $this->wrap_text; - } - - /** - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * - * Generated from protobuf field bool wrap_text = 5; - * @param bool $var - * @return $this - */ - public function setWrapText($var) - { - GPBUtil::checkBool($var); - $this->wrap_text = $var; - - return $this; - } - - /** - * The text that appears below `text`. Always wraps. - * - * Generated from protobuf field string bottom_label = 6; - * @return string - */ - public function getBottomLabel() - { - return $this->bottom_label; - } - - /** - * The text that appears below `text`. Always wraps. - * - * Generated from protobuf field string bottom_label = 6; - * @param string $var - * @return $this - */ - public function setBottomLabel($var) - { - GPBUtil::checkString($var, True); - $this->bottom_label = $var; - - return $this; - } - - /** - * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for - * more complex formatting than `bottom_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph bottom_label_text = 19; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getBottomLabelText() - { - return $this->bottom_label_text; - } - - public function hasBottomLabelText() - { - return isset($this->bottom_label_text); - } - - public function clearBottomLabelText() - { - unset($this->bottom_label_text); - } - - /** - * `TextParagraph` equivalent of `bottom_label`. Always wraps. Allows for - * more complex formatting than `bottom_label`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph bottom_label_text = 19; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setBottomLabelText($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->bottom_label_text = $var; - - return $this; - } - - /** - * This action is triggered when users click `topLabel` or `bottomLabel`. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * This action is triggered when users click `topLabel` or `bottomLabel`. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * A button that a user can click to trigger an action. - * - * Generated from protobuf field .google.apps.card.v1.Button button = 8; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getButton() - { - return $this->readOneof(8); - } - - public function hasButton() - { - return $this->hasOneof(8); - } - - /** - * A button that a user can click to trigger an action. - * - * Generated from protobuf field .google.apps.card.v1.Button button = 8; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * A switch widget that a user can click to change its state and trigger an - * action. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; - * @return \Google\Apps\Card\V1\DecoratedText\SwitchControl|null - */ - public function getSwitchControl() - { - return $this->readOneof(9); - } - - public function hasSwitchControl() - { - return $this->hasOneof(9); - } - - /** - * A switch widget that a user can click to change its state and trigger an - * action. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; - * @param \Google\Apps\Card\V1\DecoratedText\SwitchControl $var - * @return $this - */ - public function setSwitchControl($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText\SwitchControl::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * An icon displayed after the text. - * Supports - * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) - * and - * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) - * icons. - * - * Generated from protobuf field .google.apps.card.v1.Icon end_icon = 11; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getEndIcon() - { - return $this->readOneof(11); - } - - public function hasEndIcon() - { - return $this->hasOneof(11); - } - - /** - * An icon displayed after the text. - * Supports - * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) - * and - * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) - * icons. - * - * Generated from protobuf field .google.apps.card.v1.Icon end_icon = 11; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setEndIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * @return string - */ - public function getControl() - { - return $this->whichOneof("control"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php deleted file mode 100644 index 76aa52b4de14..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php +++ /dev/null @@ -1,244 +0,0 @@ -google.apps.card.v1.DecoratedText.SwitchControl - */ -class SwitchControl extends \Google\Protobuf\Internal\Message -{ - /** - * The name by which the switch widget is identified 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). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * 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). - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * When `true`, the switch is selected. - * - * Generated from protobuf field bool selected = 3; - */ - protected $selected = false; - /** - * The action to perform when the switch state is changed, such as what - * function to run. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; - */ - protected $on_change_action = null; - /** - * How the switch appears in the user interface. - * [Google Workspace add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; - */ - protected $control_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name by which the switch widget is identified 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). - * @type string $value - * 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). - * @type bool $selected - * When `true`, the switch is selected. - * @type \Google\Apps\Card\V1\Action $on_change_action - * The action to perform when the switch state is changed, such as what - * function to run. - * @type int $control_type - * How the switch appears in the user interface. - * [Google Workspace add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name by which the switch widget is identified 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). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name by which the switch widget is identified 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). - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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). - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * 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). - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * When `true`, the switch is selected. - * - * Generated from protobuf field bool selected = 3; - * @return bool - */ - public function getSelected() - { - return $this->selected; - } - - /** - * When `true`, the switch is selected. - * - * Generated from protobuf field bool selected = 3; - * @param bool $var - * @return $this - */ - public function setSelected($var) - { - GPBUtil::checkBool($var); - $this->selected = $var; - - return $this; - } - - /** - * The action to perform when the switch state is changed, such as what - * function to run. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * The action to perform when the switch state is changed, such as what - * function to run. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - - /** - * How the switch appears in the user interface. - * [Google Workspace add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; - * @return int - */ - public function getControlType() - { - return $this->control_type; - } - - /** - * How the switch appears in the user interface. - * [Google Workspace add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; - * @param int $var - * @return $this - */ - public function setControlType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\DecoratedText\SwitchControl\ControlType::class); - $this->control_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php deleted file mode 100644 index bfcdb4eaa1b3..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.card.v1.DecoratedText.SwitchControl.ControlType - */ -class ControlType -{ - /** - * A toggle-style switch. - * - * Generated from protobuf enum SWITCH = 0; - */ - const PBSWITCH = 0; - /** - * Deprecated in favor of `CHECK_BOX`. - * - * Generated from protobuf enum CHECKBOX = 1; - */ - const CHECKBOX = 1; - /** - * A checkbox. - * - * Generated from protobuf enum CHECK_BOX = 2; - */ - const CHECK_BOX = 2; - - private static $valueToName = [ - self::PBSWITCH => 'SWITCH', - self::CHECKBOX => 'CHECKBOX', - self::CHECK_BOX => 'CHECK_BOX', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php deleted file mode 100644 index 86678be6a504..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php +++ /dev/null @@ -1,42 +0,0 @@ -google.apps.card.v1.Divider - */ -class Divider extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php deleted file mode 100644 index 28894502253f..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php +++ /dev/null @@ -1,281 +0,0 @@ -google.apps.card.v1.Grid - */ -class Grid extends \Google\Protobuf\Internal\Message -{ - /** - * The text that displays in the grid header. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * The items to display in the grid. - * - * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; - */ - private $items; - /** - * The border style to apply to each grid item. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; - */ - protected $border_style = null; - /** - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * - * Generated from protobuf field int32 column_count = 4; - */ - protected $column_count = 0; - /** - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * The text that displays in the grid header. - * @type \Google\Apps\Card\V1\Grid\GridItem[] $items - * The items to display in the grid. - * @type \Google\Apps\Card\V1\BorderStyle $border_style - * The border style to apply to each grid item. - * @type int $column_count - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * @type \Google\Apps\Card\V1\OnClick $on_click - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text that displays in the grid header. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The text that displays in the grid header. - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The items to display in the grid. - * - * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; - * @return RepeatedField<\Google\Apps\Card\V1\Grid\GridItem> - */ - public function getItems() - { - return $this->items; - } - - /** - * The items to display in the grid. - * - * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; - * @param \Google\Apps\Card\V1\Grid\GridItem[] $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Grid\GridItem::class); - $this->items = $arr; - - return $this; - } - - /** - * The border style to apply to each grid item. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; - * @return \Google\Apps\Card\V1\BorderStyle|null - */ - public function getBorderStyle() - { - return $this->border_style; - } - - public function hasBorderStyle() - { - return isset($this->border_style); - } - - public function clearBorderStyle() - { - unset($this->border_style); - } - - /** - * The border style to apply to each grid item. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; - * @param \Google\Apps\Card\V1\BorderStyle $var - * @return $this - */ - public function setBorderStyle($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\BorderStyle::class); - $this->border_style = $var; - - return $this; - } - - /** - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * - * Generated from protobuf field int32 column_count = 4; - * @return int - */ - public function getColumnCount() - { - return $this->column_count; - } - - /** - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * - * Generated from protobuf field int32 column_count = 4; - * @param int $var - * @return $this - */ - public function setColumnCount($var) - { - GPBUtil::checkInt32($var); - $this->column_count = $var; - - return $this; - } - - /** - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php deleted file mode 100644 index d0e29ce4119c..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php +++ /dev/null @@ -1,220 +0,0 @@ -google.apps.card.v1.Grid.GridItem - */ -class GridItem extends \Google\Protobuf\Internal\Message -{ - /** - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The image that displays in the grid item. - * - * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; - */ - protected $image = null; - /** - * The grid item's title. - * - * Generated from protobuf field string title = 3; - */ - protected $title = ''; - /** - * The grid item's subtitle. - * - * Generated from protobuf field string subtitle = 4; - */ - protected $subtitle = ''; - /** - * The layout to use for the grid item. - * - * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; - */ - protected $layout = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * @type \Google\Apps\Card\V1\ImageComponent $image - * The image that displays in the grid item. - * @type string $title - * The grid item's title. - * @type string $subtitle - * The grid item's subtitle. - * @type int $layout - * The layout to use for the grid item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The image that displays in the grid item. - * - * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; - * @return \Google\Apps\Card\V1\ImageComponent|null - */ - public function getImage() - { - return $this->image; - } - - public function hasImage() - { - return isset($this->image); - } - - public function clearImage() - { - unset($this->image); - } - - /** - * The image that displays in the grid item. - * - * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; - * @param \Google\Apps\Card\V1\ImageComponent $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ImageComponent::class); - $this->image = $var; - - return $this; - } - - /** - * The grid item's title. - * - * Generated from protobuf field string title = 3; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The grid item's title. - * - * Generated from protobuf field string title = 3; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The grid item's subtitle. - * - * Generated from protobuf field string subtitle = 4; - * @return string - */ - public function getSubtitle() - { - return $this->subtitle; - } - - /** - * The grid item's subtitle. - * - * Generated from protobuf field string subtitle = 4; - * @param string $var - * @return $this - */ - public function setSubtitle($var) - { - GPBUtil::checkString($var, True); - $this->subtitle = $var; - - return $this; - } - - /** - * The layout to use for the grid item. - * - * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; - * @return int - */ - public function getLayout() - { - return $this->layout; - } - - /** - * The layout to use for the grid item. - * - * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; - * @param int $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Grid\GridItem\GridItemLayout::class); - $this->layout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php deleted file mode 100644 index 93efcec6c329..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php +++ /dev/null @@ -1,63 +0,0 @@ -google.apps.card.v1.Grid.GridItem.GridItemLayout - */ -class GridItemLayout -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum GRID_ITEM_LAYOUT_UNSPECIFIED = 0; - */ - const GRID_ITEM_LAYOUT_UNSPECIFIED = 0; - /** - * The title and subtitle are shown below the grid item's image. - * - * Generated from protobuf enum TEXT_BELOW = 1; - */ - const TEXT_BELOW = 1; - /** - * The title and subtitle are shown above the grid item's image. - * - * Generated from protobuf enum TEXT_ABOVE = 2; - */ - const TEXT_ABOVE = 2; - - private static $valueToName = [ - self::GRID_ITEM_LAYOUT_UNSPECIFIED => 'GRID_ITEM_LAYOUT_UNSPECIFIED', - self::TEXT_BELOW => 'TEXT_BELOW', - self::TEXT_ABOVE => 'TEXT_ABOVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php deleted file mode 100644 index 79a44f28e80b..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php +++ /dev/null @@ -1,318 +0,0 @@ -google.apps.card.v1.Icon - */ -class Icon extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * - * Generated from protobuf field string alt_text = 3; - */ - protected $alt_text = ''; - /** - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; - */ - protected $image_type = 0; - protected $icons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $known_icon - * Display one of the built-in icons provided by Google Workspace. - * For example, to display an airplane icon, specify `AIRPLANE`. - * For a bus, specify `BUS`. - * For a full list of supported icons, see [built-in - * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). - * @type string $icon_url - * Display a custom icon hosted at an HTTPS URL. - * For example: - * ``` - * "iconUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" - * ``` - * Supported file types include `.png` and `.jpg`. - * @type \Google\Apps\Card\V1\MaterialIcon $material_icon - * Display one of the [Google Material - * Icons](https://fonts.google.com/icons). - * For example, to display a [checkbox - * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), - * use - * ``` - * "material_icon": { - * "name": "check_box" - * } - * ``` - * [Google Chat apps](https://developers.google.com/workspace/chat): - * @type string $alt_text - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * @type int $image_type - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Display one of the built-in icons provided by Google Workspace. - * For example, to display an airplane icon, specify `AIRPLANE`. - * For a bus, specify `BUS`. - * For a full list of supported icons, see [built-in - * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). - * - * Generated from protobuf field string known_icon = 1; - * @return string - */ - public function getKnownIcon() - { - return $this->readOneof(1); - } - - public function hasKnownIcon() - { - return $this->hasOneof(1); - } - - /** - * Display one of the built-in icons provided by Google Workspace. - * For example, to display an airplane icon, specify `AIRPLANE`. - * For a bus, specify `BUS`. - * For a full list of supported icons, see [built-in - * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). - * - * Generated from protobuf field string known_icon = 1; - * @param string $var - * @return $this - */ - public function setKnownIcon($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Display a custom icon hosted at an HTTPS URL. - * For example: - * ``` - * "iconUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" - * ``` - * Supported file types include `.png` and `.jpg`. - * - * Generated from protobuf field string icon_url = 2; - * @return string - */ - public function getIconUrl() - { - return $this->readOneof(2); - } - - public function hasIconUrl() - { - return $this->hasOneof(2); - } - - /** - * Display a custom icon hosted at an HTTPS URL. - * For example: - * ``` - * "iconUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" - * ``` - * Supported file types include `.png` and `.jpg`. - * - * Generated from protobuf field string icon_url = 2; - * @param string $var - * @return $this - */ - public function setIconUrl($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Display one of the [Google Material - * Icons](https://fonts.google.com/icons). - * For example, to display a [checkbox - * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), - * use - * ``` - * "material_icon": { - * "name": "check_box" - * } - * ``` - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.MaterialIcon material_icon = 5; - * @return \Google\Apps\Card\V1\MaterialIcon|null - */ - public function getMaterialIcon() - { - return $this->readOneof(5); - } - - public function hasMaterialIcon() - { - return $this->hasOneof(5); - } - - /** - * Display one of the [Google Material - * Icons](https://fonts.google.com/icons). - * For example, to display a [checkbox - * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), - * use - * ``` - * "material_icon": { - * "name": "check_box" - * } - * ``` - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.MaterialIcon material_icon = 5; - * @param \Google\Apps\Card\V1\MaterialIcon $var - * @return $this - */ - public function setMaterialIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\MaterialIcon::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * - * Generated from protobuf field string alt_text = 3; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * - * Generated from protobuf field string alt_text = 3; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - - /** - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; - * @return int - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; - * @param int $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\ImageType::class); - $this->image_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getIcons() - { - return $this->whichOneof("icons"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php deleted file mode 100644 index 9abce5ad4a4a..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php +++ /dev/null @@ -1,165 +0,0 @@ -google.apps.card.v1.Image - */ -class Image extends \Google\Protobuf\Internal\Message -{ - /** - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * - * Generated from protobuf field string image_url = 1; - */ - protected $image_url = ''; - /** - * When a user clicks the image, the click triggers this action. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - */ - protected $on_click = null; - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string alt_text = 3; - */ - protected $alt_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_url - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * @type \Google\Apps\Card\V1\OnClick $on_click - * When a user clicks the image, the click triggers this action. - * @type string $alt_text - * The alternative text of this image that's used for accessibility. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * - * Generated from protobuf field string image_url = 1; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * - * Generated from protobuf field string image_url = 1; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - - /** - * When a user clicks the image, the click triggers this action. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * When a user clicks the image, the click triggers this action. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string alt_text = 3; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string alt_text = 3; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php deleted file mode 100644 index cce24d68a94c..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php +++ /dev/null @@ -1,191 +0,0 @@ -google.apps.card.v1.ImageComponent - */ -class ImageComponent extends \Google\Protobuf\Internal\Message -{ - /** - * The image URL. - * - * Generated from protobuf field string image_uri = 1; - */ - protected $image_uri = ''; - /** - * The accessibility label for the image. - * - * Generated from protobuf field string alt_text = 2; - */ - protected $alt_text = ''; - /** - * The crop style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; - */ - protected $crop_style = null; - /** - * The border style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; - */ - protected $border_style = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_uri - * The image URL. - * @type string $alt_text - * The accessibility label for the image. - * @type \Google\Apps\Card\V1\ImageCropStyle $crop_style - * The crop style to apply to the image. - * @type \Google\Apps\Card\V1\BorderStyle $border_style - * The border style to apply to the image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The image URL. - * - * Generated from protobuf field string image_uri = 1; - * @return string - */ - public function getImageUri() - { - return $this->image_uri; - } - - /** - * The image URL. - * - * Generated from protobuf field string image_uri = 1; - * @param string $var - * @return $this - */ - public function setImageUri($var) - { - GPBUtil::checkString($var, True); - $this->image_uri = $var; - - return $this; - } - - /** - * The accessibility label for the image. - * - * Generated from protobuf field string alt_text = 2; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * The accessibility label for the image. - * - * Generated from protobuf field string alt_text = 2; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - - /** - * The crop style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; - * @return \Google\Apps\Card\V1\ImageCropStyle|null - */ - public function getCropStyle() - { - return $this->crop_style; - } - - public function hasCropStyle() - { - return isset($this->crop_style); - } - - public function clearCropStyle() - { - unset($this->crop_style); - } - - /** - * The crop style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; - * @param \Google\Apps\Card\V1\ImageCropStyle $var - * @return $this - */ - public function setCropStyle($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ImageCropStyle::class); - $this->crop_style = $var; - - return $this; - } - - /** - * The border style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; - * @return \Google\Apps\Card\V1\BorderStyle|null - */ - public function getBorderStyle() - { - return $this->border_style; - } - - public function hasBorderStyle() - { - return isset($this->border_style); - } - - public function clearBorderStyle() - { - unset($this->border_style); - } - - /** - * The border style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; - * @param \Google\Apps\Card\V1\BorderStyle $var - * @return $this - */ - public function setBorderStyle($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\BorderStyle::class); - $this->border_style = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php deleted file mode 100644 index 29db41e9f7e7..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php +++ /dev/null @@ -1,138 +0,0 @@ -google.apps.card.v1.ImageCropStyle - */ -class ImageCropStyle extends \Google\Protobuf\Internal\Message -{ - /** - * The crop type. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; - */ - protected $type = 0; - /** - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * - * Generated from protobuf field double aspect_ratio = 2; - */ - protected $aspect_ratio = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The crop type. - * @type float $aspect_ratio - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The crop type. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The crop type. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\ImageCropStyle\ImageCropType::class); - $this->type = $var; - - return $this; - } - - /** - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * - * Generated from protobuf field double aspect_ratio = 2; - * @return float - */ - public function getAspectRatio() - { - return $this->aspect_ratio; - } - - /** - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * - * Generated from protobuf field double aspect_ratio = 2; - * @param float $var - * @return $this - */ - public function setAspectRatio($var) - { - GPBUtil::checkDouble($var); - $this->aspect_ratio = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php deleted file mode 100644 index fbb2623a6ee0..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php +++ /dev/null @@ -1,78 +0,0 @@ -google.apps.card.v1.ImageCropStyle.ImageCropType - */ -class ImageCropType -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum IMAGE_CROP_TYPE_UNSPECIFIED = 0; - */ - const IMAGE_CROP_TYPE_UNSPECIFIED = 0; - /** - * Default value. Applies a square crop. - * - * Generated from protobuf enum SQUARE = 1; - */ - const SQUARE = 1; - /** - * Applies a circular crop. - * - * Generated from protobuf enum CIRCLE = 2; - */ - const CIRCLE = 2; - /** - * Applies a rectangular crop with a custom aspect ratio. Set the custom - * aspect ratio with `aspectRatio`. - * - * Generated from protobuf enum RECTANGLE_CUSTOM = 3; - */ - const RECTANGLE_CUSTOM = 3; - /** - * Applies a rectangular crop with a 4:3 aspect ratio. - * - * Generated from protobuf enum RECTANGLE_4_3 = 4; - */ - const RECTANGLE_4_3 = 4; - - private static $valueToName = [ - self::IMAGE_CROP_TYPE_UNSPECIFIED => 'IMAGE_CROP_TYPE_UNSPECIFIED', - self::SQUARE => 'SQUARE', - self::CIRCLE => 'CIRCLE', - self::RECTANGLE_CUSTOM => 'RECTANGLE_CUSTOM', - self::RECTANGLE_4_3 => 'RECTANGLE_4_3', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php deleted file mode 100644 index 697974cc1dfe..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php +++ /dev/null @@ -1,250 +0,0 @@ -google.apps.card.v1.MaterialIcon - */ -class MaterialIcon extends \Google\Protobuf\Internal\Message -{ - /** - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field bool fill = 2; - */ - protected $fill = false; - /** - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 weight = 3; - */ - protected $weight = 0; - /** - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 grade = 4; - */ - protected $grade = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * @type bool $fill - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * @type int $weight - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * @type int $grade - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field bool fill = 2; - * @return bool - */ - public function getFill() - { - return $this->fill; - } - - /** - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field bool fill = 2; - * @param bool $var - * @return $this - */ - public function setFill($var) - { - GPBUtil::checkBool($var); - $this->fill = $var; - - return $this; - } - - /** - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 weight = 3; - * @return int - */ - public function getWeight() - { - return $this->weight; - } - - /** - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 weight = 3; - * @param int $var - * @return $this - */ - public function setWeight($var) - { - GPBUtil::checkInt32($var); - $this->weight = $var; - - return $this; - } - - /** - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 grade = 4; - * @return int - */ - public function getGrade() - { - return $this->grade; - } - - /** - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 grade = 4; - * @param int $var - * @return $this - */ - public function setGrade($var) - { - GPBUtil::checkInt32($var); - $this->grade = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php deleted file mode 100644 index ba0ec7fabadd..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php +++ /dev/null @@ -1,231 +0,0 @@ -google.apps.card.v1.OnClick - */ -class OnClick extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Action $action - * If specified, an action is triggered by this `onClick`. - * @type \Google\Apps\Card\V1\OpenLink $open_link - * If specified, this `onClick` triggers an open link action. - * @type \Google\Apps\Card\V1\Action $open_dynamic_link_action - * An add-on triggers this action when the action needs to open a - * link. This differs from the `open_link` above in that this needs to talk - * to server to get the link. Thus some preparation work is required for - * web client to do before the open link action response comes back. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\Card $card - * A new card is pushed to the card stack after clicking if specified. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\OverflowMenu $overflow_menu - * If specified, this `onClick` opens an overflow menu. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * If specified, an action is triggered by this `onClick`. - * - * Generated from protobuf field .google.apps.card.v1.Action action = 1; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getAction() - { - return $this->readOneof(1); - } - - public function hasAction() - { - return $this->hasOneof(1); - } - - /** - * If specified, an action is triggered by this `onClick`. - * - * Generated from protobuf field .google.apps.card.v1.Action action = 1; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * If specified, this `onClick` triggers an open link action. - * - * Generated from protobuf field .google.apps.card.v1.OpenLink open_link = 2; - * @return \Google\Apps\Card\V1\OpenLink|null - */ - public function getOpenLink() - { - return $this->readOneof(2); - } - - public function hasOpenLink() - { - return $this->hasOneof(2); - } - - /** - * If specified, this `onClick` triggers an open link action. - * - * Generated from protobuf field .google.apps.card.v1.OpenLink open_link = 2; - * @param \Google\Apps\Card\V1\OpenLink $var - * @return $this - */ - public function setOpenLink($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OpenLink::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * An add-on triggers this action when the action needs to open a - * link. This differs from the `open_link` above in that this needs to talk - * to server to get the link. Thus some preparation work is required for - * web client to do before the open link action response comes back. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action open_dynamic_link_action = 3; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOpenDynamicLinkAction() - { - return $this->readOneof(3); - } - - public function hasOpenDynamicLinkAction() - { - return $this->hasOneof(3); - } - - /** - * An add-on triggers this action when the action needs to open a - * link. This differs from the `open_link` above in that this needs to talk - * to server to get the link. Thus some preparation work is required for - * web client to do before the open link action response comes back. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action open_dynamic_link_action = 3; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOpenDynamicLinkAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A new card is pushed to the card stack after clicking if specified. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card card = 4; - * @return \Google\Apps\Card\V1\Card|null - */ - public function getCard() - { - return $this->readOneof(4); - } - - public function hasCard() - { - return $this->hasOneof(4); - } - - /** - * A new card is pushed to the card stack after clicking if specified. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card card = 4; - * @param \Google\Apps\Card\V1\Card $var - * @return $this - */ - public function setCard($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * If specified, this `onClick` opens an overflow menu. - * - * Generated from protobuf field .google.apps.card.v1.OverflowMenu overflow_menu = 8; - * @return \Google\Apps\Card\V1\OverflowMenu|null - */ - public function getOverflowMenu() - { - return $this->readOneof(8); - } - - public function hasOverflowMenu() - { - return $this->hasOneof(8); - } - - /** - * If specified, this `onClick` opens an overflow menu. - * - * Generated from protobuf field .google.apps.card.v1.OverflowMenu overflow_menu = 8; - * @param \Google\Apps\Card\V1\OverflowMenu $var - * @return $this - */ - public function setOverflowMenu($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OverflowMenu::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php deleted file mode 100644 index df7e655bd1c3..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php +++ /dev/null @@ -1,157 +0,0 @@ -google.apps.card.v1.OpenLink - */ -class OpenLink extends \Google\Protobuf\Internal\Message -{ - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * How to open a link. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; - */ - protected $open_as = 0; - /** - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; - */ - protected $on_close = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The URL to open. - * @type int $open_as - * How to open a link. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * @type int $on_close - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * How to open a link. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; - * @return int - */ - public function getOpenAs() - { - return $this->open_as; - } - - /** - * How to open a link. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; - * @param int $var - * @return $this - */ - public function setOpenAs($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\OpenLink\OpenAs::class); - $this->open_as = $var; - - return $this; - } - - /** - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; - * @return int - */ - public function getOnClose() - { - return $this->on_close; - } - - /** - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; - * @param int $var - * @return $this - */ - public function setOnClose($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\OpenLink\OnClose::class); - $this->on_close = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php deleted file mode 100644 index a60827fdb08a..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php +++ /dev/null @@ -1,64 +0,0 @@ -google.apps.card.v1.OpenLink.OnClose - */ -class OnClose -{ - /** - * Default value. The card doesn't reload; nothing happens. - * - * Generated from protobuf enum NOTHING = 0; - */ - const NOTHING = 0; - /** - * Reloads the card after the child window closes. - * If used in conjunction with - * [`OpenAs.OVERLAY`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#openas), - * the child window acts as a modal dialog and the parent card is blocked - * until the child window closes. - * - * Generated from protobuf enum RELOAD = 1; - */ - const RELOAD = 1; - - private static $valueToName = [ - self::NOTHING => 'NOTHING', - self::RELOAD => 'RELOAD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php deleted file mode 100644 index c14f12237c6e..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php +++ /dev/null @@ -1,61 +0,0 @@ -google.apps.card.v1.OpenLink.OpenAs - */ -class OpenAs -{ - /** - * The link opens as a full-size window (if that's the frame used by the - * client). - * - * Generated from protobuf enum FULL_SIZE = 0; - */ - const FULL_SIZE = 0; - /** - * The link opens as an overlay, such as a pop-up. - * - * Generated from protobuf enum OVERLAY = 1; - */ - const OVERLAY = 1; - - private static $valueToName = [ - self::FULL_SIZE => 'FULL_SIZE', - self::OVERLAY => 'OVERLAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php deleted file mode 100644 index df4de7c968fc..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu.php +++ /dev/null @@ -1,73 +0,0 @@ -google.apps.card.v1.OverflowMenu - */ -class OverflowMenu extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of menu options. - * - * Generated from protobuf field repeated .google.apps.card.v1.OverflowMenu.OverflowMenuItem items = 1; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem[] $items - * Required. The list of menu options. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of menu options. - * - * Generated from protobuf field repeated .google.apps.card.v1.OverflowMenu.OverflowMenuItem items = 1; - * @return RepeatedField<\Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem> - */ - public function getItems() - { - return $this->items; - } - - /** - * Required. The list of menu options. - * - * Generated from protobuf field repeated .google.apps.card.v1.OverflowMenu.OverflowMenuItem items = 1; - * @param \Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem[] $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\OverflowMenu\OverflowMenuItem::class); - $this->items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php deleted file mode 100644 index 935c13ea3789..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OverflowMenu/OverflowMenuItem.php +++ /dev/null @@ -1,203 +0,0 @@ -google.apps.card.v1.OverflowMenu.OverflowMenuItem - */ -class OverflowMenuItem extends \Google\Protobuf\Internal\Message -{ - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 1; - */ - protected $start_icon = null; - /** - * Required. The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 2; - */ - protected $text = ''; - /** - * Required. The action invoked when a menu option is selected. - * This `OnClick` cannot contain an `OverflowMenu`, any specified - * `OverflowMenu` is dropped and the menu item disabled. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; - */ - protected $on_click = null; - /** - * Whether the menu option is disabled. - * Defaults to false. - * - * Generated from protobuf field bool disabled = 4; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Icon $start_icon - * The icon displayed in front of the text. - * @type string $text - * Required. The text that identifies or describes the item to users. - * @type \Google\Apps\Card\V1\OnClick $on_click - * Required. The action invoked when a menu option is selected. - * This `OnClick` cannot contain an `OverflowMenu`, any specified - * `OverflowMenu` is dropped and the menu item disabled. - * @type bool $disabled - * Whether the menu option is disabled. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 1; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getStartIcon() - { - return $this->start_icon; - } - - public function hasStartIcon() - { - return isset($this->start_icon); - } - - public function clearStartIcon() - { - unset($this->start_icon); - } - - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 1; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setStartIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->start_icon = $var; - - return $this; - } - - /** - * Required. The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 2; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Required. The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 2; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Required. The action invoked when a menu option is selected. - * This `OnClick` cannot contain an `OverflowMenu`, any specified - * `OverflowMenu` is dropped and the menu item disabled. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * Required. The action invoked when a menu option is selected. - * This `OnClick` cannot contain an `OverflowMenu`, any specified - * `OverflowMenu` is dropped and the menu item disabled. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 3; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * Whether the menu option is disabled. - * Defaults to false. - * - * Generated from protobuf field bool disabled = 4; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the menu option is disabled. - * Defaults to false. - * - * Generated from protobuf field bool disabled = 4; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php deleted file mode 100644 index c22edf659561..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php +++ /dev/null @@ -1,468 +0,0 @@ -google.apps.card.v1.SelectionInput - */ -class SelectionInput extends \Google\Protobuf\Internal\Message -{ - /** - * 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). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * 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". - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * 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. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; - */ - protected $type = 0; - /** - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; - */ - private $items; - /** - * 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). - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; - */ - protected $on_change_action = null; - /** - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * - * Generated from protobuf field optional int32 multi_select_max_selected_items = 6; - */ - protected $multi_select_max_selected_items = null; - /** - * 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. - * - * Generated from protobuf field int32 multi_select_min_query_length = 7; - */ - protected $multi_select_min_query_length = 0; - protected $multi_select_data_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * 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). - * @type string $label - * 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". - * @type int $type - * 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. - * @type \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $items - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * @type \Google\Apps\Card\V1\Action $on_change_action - * 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). - * @type int $multi_select_max_selected_items - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * @type int $multi_select_min_query_length - * 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. - * @type \Google\Apps\Card\V1\Action $external_data_source - * An external data source, such as a relational database. - * @type \Google\Apps\Card\V1\SelectionInput\PlatformDataSource $platform_data_source - * A data source from Google Workspace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * 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). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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). - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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". - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * 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". - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * 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. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\SelectionInput\SelectionType::class); - $this->type = $var; - - return $this; - } - - /** - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; - * @return RepeatedField<\Google\Apps\Card\V1\SelectionInput\SelectionItem> - */ - public function getItems() - { - return $this->items; - } - - /** - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; - * @param \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\SelectionInput\SelectionItem::class); - $this->items = $arr; - - return $this; - } - - /** - * 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). - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * 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). - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - - /** - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * - * Generated from protobuf field optional int32 multi_select_max_selected_items = 6; - * @return int - */ - public function getMultiSelectMaxSelectedItems() - { - return isset($this->multi_select_max_selected_items) ? $this->multi_select_max_selected_items : 0; - } - - public function hasMultiSelectMaxSelectedItems() - { - return isset($this->multi_select_max_selected_items); - } - - public function clearMultiSelectMaxSelectedItems() - { - unset($this->multi_select_max_selected_items); - } - - /** - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * - * Generated from protobuf field optional int32 multi_select_max_selected_items = 6; - * @param int $var - * @return $this - */ - public function setMultiSelectMaxSelectedItems($var) - { - GPBUtil::checkInt32($var); - $this->multi_select_max_selected_items = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 multi_select_min_query_length = 7; - * @return int - */ - public function getMultiSelectMinQueryLength() - { - return $this->multi_select_min_query_length; - } - - /** - * 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. - * - * Generated from protobuf field int32 multi_select_min_query_length = 7; - * @param int $var - * @return $this - */ - public function setMultiSelectMinQueryLength($var) - { - GPBUtil::checkInt32($var); - $this->multi_select_min_query_length = $var; - - return $this; - } - - /** - * An external data source, such as a relational database. - * - * Generated from protobuf field .google.apps.card.v1.Action external_data_source = 8; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getExternalDataSource() - { - return $this->readOneof(8); - } - - public function hasExternalDataSource() - { - return $this->hasOneof(8); - } - - /** - * An external data source, such as a relational database. - * - * Generated from protobuf field .google.apps.card.v1.Action external_data_source = 8; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setExternalDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * A data source from Google Workspace. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9; - * @return \Google\Apps\Card\V1\SelectionInput\PlatformDataSource|null - */ - public function getPlatformDataSource() - { - return $this->readOneof(9); - } - - public function hasPlatformDataSource() - { - return $this->hasOneof(9); - } - - /** - * A data source from Google Workspace. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9; - * @param \Google\Apps\Card\V1\SelectionInput\PlatformDataSource $var - * @return $this - */ - public function setPlatformDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput\PlatformDataSource::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getMultiSelectDataSource() - { - return $this->whichOneof("multi_select_data_source"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php deleted file mode 100644 index 68986591368d..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php +++ /dev/null @@ -1,82 +0,0 @@ -google.apps.card.v1.SelectionInput.PlatformDataSource - */ -class PlatformDataSource extends \Google\Protobuf\Internal\Message -{ - protected $data_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $common_data_source - * A data source shared by all Google Workspace applications, such as - * users in a Google Workspace organization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A data source shared by all Google Workspace applications, such as - * users in a Google Workspace organization. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1; - * @return int - */ - public function getCommonDataSource() - { - return $this->readOneof(1); - } - - public function hasCommonDataSource() - { - return $this->hasOneof(1); - } - - /** - * A data source shared by all Google Workspace applications, such as - * users in a Google Workspace organization. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1; - * @param int $var - * @return $this - */ - public function setCommonDataSource($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\SelectionInput\PlatformDataSource\CommonDataSource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDataSource() - { - return $this->whichOneof("data_source"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php deleted file mode 100644 index 7db059a45f6c..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php +++ /dev/null @@ -1,58 +0,0 @@ -google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource - */ -class CommonDataSource -{ - /** - * Default value. Don't use. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Google Workspace users. The user can only view and select users from - * their Google Workspace organization. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::USER => 'USER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php deleted file mode 100644 index 5c39b15f3995..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php +++ /dev/null @@ -1,233 +0,0 @@ -google.apps.card.v1.SelectionInput.SelectionItem - */ -class SelectionItem extends \Google\Protobuf\Internal\Message -{ - /** - * The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * - * Generated from protobuf field bool selected = 3; - */ - protected $selected = false; - /** - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * - * Generated from protobuf field string bottom_text = 5; - */ - protected $bottom_text = ''; - protected $start_icon; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text that identifies or describes the item to users. - * @type string $value - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type bool $selected - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * @type string $start_icon_uri - * @type string $bottom_text - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * - * Generated from protobuf field bool selected = 3; - * @return bool - */ - public function getSelected() - { - return $this->selected; - } - - /** - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * - * Generated from protobuf field bool selected = 3; - * @param bool $var - * @return $this - */ - public function setSelected($var) - { - GPBUtil::checkBool($var); - $this->selected = $var; - - return $this; - } - - /** - * Generated from protobuf field string start_icon_uri = 4; - * @return string - */ - public function getStartIconUri() - { - return $this->readOneof(4); - } - - public function hasStartIconUri() - { - return $this->hasOneof(4); - } - - /** - * Generated from protobuf field string start_icon_uri = 4; - * @param string $var - * @return $this - */ - public function setStartIconUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * - * Generated from protobuf field string bottom_text = 5; - * @return string - */ - public function getBottomText() - { - return $this->bottom_text; - } - - /** - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * - * Generated from protobuf field string bottom_text = 5; - * @param string $var - * @return $this - */ - public function setBottomText($var) - { - GPBUtil::checkString($var, True); - $this->bottom_text = $var; - - return $this; - } - - /** - * @return string - */ - public function getStartIcon() - { - return $this->whichOneof("start_icon"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php deleted file mode 100644 index 998da8bae7bf..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php +++ /dev/null @@ -1,117 +0,0 @@ -google.apps.card.v1.SelectionInput.SelectionType - */ -class SelectionType -{ - /** - * A set of checkboxes. Users can select one or more checkboxes. - * - * Generated from protobuf enum CHECK_BOX = 0; - */ - const CHECK_BOX = 0; - /** - * A set of radio buttons. Users can select one radio button. - * - * Generated from protobuf enum RADIO_BUTTON = 1; - */ - const RADIO_BUTTON = 1; - /** - * A set of switches. Users can turn on one or more switches. - * - * Generated from protobuf enum SWITCH = 2; - */ - const PBSWITCH = 2; - /** - * 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): - * - * Generated from protobuf enum DROPDOWN = 3; - */ - const DROPDOWN = 3; - /** - * 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): - * - * Generated from protobuf enum MULTI_SELECT = 4; - */ - const MULTI_SELECT = 4; - - private static $valueToName = [ - self::CHECK_BOX => 'CHECK_BOX', - self::RADIO_BUTTON => 'RADIO_BUTTON', - self::PBSWITCH => 'SWITCH', - self::DROPDOWN => 'DROPDOWN', - self::MULTI_SELECT => 'MULTI_SELECT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php deleted file mode 100644 index 3f78c1d678d3..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php +++ /dev/null @@ -1,84 +0,0 @@ -google.apps.card.v1.Suggestions - */ -class Suggestions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * - * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Suggestions\SuggestionItem[] $items - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * - * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; - * @return RepeatedField<\Google\Apps\Card\V1\Suggestions\SuggestionItem> - */ - public function getItems() - { - return $this->items; - } - - /** - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * - * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; - * @param \Google\Apps\Card\V1\Suggestions\SuggestionItem[] $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Suggestions\SuggestionItem::class); - $this->items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php deleted file mode 100644 index e38011334b04..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php +++ /dev/null @@ -1,80 +0,0 @@ -google.apps.card.v1.Suggestions.SuggestionItem - */ -class SuggestionItem extends \Google\Protobuf\Internal\Message -{ - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The value of a suggested input to a text input field. This is - * equivalent to what users enter themselves. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The value of a suggested input to a text input field. This is - * equivalent to what users enter themselves. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->readOneof(1); - } - - public function hasText() - { - return $this->hasOneof(1); - } - - /** - * The value of a suggested input to a text input field. This is - * equivalent to what users enter themselves. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php deleted file mode 100644 index 1702c233aff6..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php +++ /dev/null @@ -1,587 +0,0 @@ -google.apps.card.v1.TextInput - */ -class TextInput extends \Google\Protobuf\Internal\Message -{ - /** - * The name by which the text input is identified 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). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string hint_text = 3; - */ - protected $hint_text = ''; - /** - * 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). - * - * Generated from protobuf field string value = 4; - */ - protected $value = ''; - /** - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * - * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; - */ - protected $type = 0; - /** - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - */ - protected $on_change_action = null; - /** - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * add-ons and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; - */ - protected $initial_suggestions = null; - /** - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; - */ - protected $auto_complete_action = null; - /** - * Specify the input format validation necessary for this text field. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Validation validation = 11; - */ - protected $validation = null; - /** - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field string placeholder_text = 12; - */ - protected $placeholder_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name by which the text input is identified 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). - * @type string $label - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * @type string $hint_text - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * @type string $value - * 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). - * @type int $type - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * @type \Google\Apps\Card\V1\Action $on_change_action - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * @type \Google\Apps\Card\V1\Suggestions $initial_suggestions - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * add-ons and Chat apps](https://developers.google.com/workspace/extend): - * @type \Google\Apps\Card\V1\Action $auto_complete_action - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\Validation $validation - * Specify the input format validation necessary for this text field. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * @type string $placeholder_text - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name by which the text input is identified 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). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name by which the text input is identified 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). - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string hint_text = 3; - * @return string - */ - public function getHintText() - { - return $this->hint_text; - } - - /** - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string hint_text = 3; - * @param string $var - * @return $this - */ - public function setHintText($var) - { - GPBUtil::checkString($var, True); - $this->hint_text = $var; - - return $this; - } - - /** - * 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). - * - * Generated from protobuf field string value = 4; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * 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). - * - * Generated from protobuf field string value = 4; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * - * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * - * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\TextInput\Type::class); - $this->type = $var; - - return $this; - } - - /** - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - - /** - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * add-ons and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; - * @return \Google\Apps\Card\V1\Suggestions|null - */ - public function getInitialSuggestions() - { - return $this->initial_suggestions; - } - - public function hasInitialSuggestions() - { - return isset($this->initial_suggestions); - } - - public function clearInitialSuggestions() - { - unset($this->initial_suggestions); - } - - /** - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * add-ons and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; - * @param \Google\Apps\Card\V1\Suggestions $var - * @return $this - */ - public function setInitialSuggestions($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Suggestions::class); - $this->initial_suggestions = $var; - - return $this; - } - - /** - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getAutoCompleteAction() - { - return $this->auto_complete_action; - } - - public function hasAutoCompleteAction() - { - return isset($this->auto_complete_action); - } - - public function clearAutoCompleteAction() - { - unset($this->auto_complete_action); - } - - /** - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setAutoCompleteAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->auto_complete_action = $var; - - return $this; - } - - /** - * Specify the input format validation necessary for this text field. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Validation validation = 11; - * @return \Google\Apps\Card\V1\Validation|null - */ - public function getValidation() - { - return $this->validation; - } - - public function hasValidation() - { - return isset($this->validation); - } - - public function clearValidation() - { - unset($this->validation); - } - - /** - * Specify the input format validation necessary for this text field. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Validation validation = 11; - * @param \Google\Apps\Card\V1\Validation $var - * @return $this - */ - public function setValidation($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Validation::class); - $this->validation = $var; - - return $this; - } - - /** - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field string placeholder_text = 12; - * @return string - */ - public function getPlaceholderText() - { - return $this->placeholder_text; - } - - /** - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field string placeholder_text = 12; - * @param string $var - * @return $this - */ - public function setPlaceholderText($var) - { - GPBUtil::checkString($var, True); - $this->placeholder_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php deleted file mode 100644 index d2454fc63362..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php +++ /dev/null @@ -1,59 +0,0 @@ -google.apps.card.v1.TextInput.Type - */ -class Type -{ - /** - * The text input field has a fixed height of one line. - * - * Generated from protobuf enum SINGLE_LINE = 0; - */ - const SINGLE_LINE = 0; - /** - * The text input field has a fixed height of multiple lines. - * - * Generated from protobuf enum MULTIPLE_LINE = 1; - */ - const MULTIPLE_LINE = 1; - - private static $valueToName = [ - self::SINGLE_LINE => 'SINGLE_LINE', - self::MULTIPLE_LINE => 'MULTIPLE_LINE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php deleted file mode 100644 index 480095adcdf9..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php +++ /dev/null @@ -1,175 +0,0 @@ -google.apps.card.v1.TextParagraph - */ -class TextParagraph extends \Google\Protobuf\Internal\Message -{ - /** - * The text that's shown in the widget. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The maximum number of lines of text that are displayed in the widget. If - * the text exceeds the specified maximum number of lines, the excess - * content is concealed behind a **show more** button. If the text is equal or - * shorter than the specified maximum number of lines, a **show more** button - * isn't displayed. - * The default value is 0, in which case - * all context is displayed. Negative values are ignored. - * - * Generated from protobuf field int32 max_lines = 2; - */ - protected $max_lines = 0; - /** - * The syntax of the text. If not set, the text is rendered as HTML. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4; - */ - protected $text_syntax = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text that's shown in the widget. - * @type int $max_lines - * The maximum number of lines of text that are displayed in the widget. If - * the text exceeds the specified maximum number of lines, the excess - * content is concealed behind a **show more** button. If the text is equal or - * shorter than the specified maximum number of lines, a **show more** button - * isn't displayed. - * The default value is 0, in which case - * all context is displayed. Negative values are ignored. - * @type int $text_syntax - * The syntax of the text. If not set, the text is rendered as HTML. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text that's shown in the widget. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text that's shown in the widget. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The maximum number of lines of text that are displayed in the widget. If - * the text exceeds the specified maximum number of lines, the excess - * content is concealed behind a **show more** button. If the text is equal or - * shorter than the specified maximum number of lines, a **show more** button - * isn't displayed. - * The default value is 0, in which case - * all context is displayed. Negative values are ignored. - * - * Generated from protobuf field int32 max_lines = 2; - * @return int - */ - public function getMaxLines() - { - return $this->max_lines; - } - - /** - * The maximum number of lines of text that are displayed in the widget. If - * the text exceeds the specified maximum number of lines, the excess - * content is concealed behind a **show more** button. If the text is equal or - * shorter than the specified maximum number of lines, a **show more** button - * isn't displayed. - * The default value is 0, in which case - * all context is displayed. Negative values are ignored. - * - * Generated from protobuf field int32 max_lines = 2; - * @param int $var - * @return $this - */ - public function setMaxLines($var) - { - GPBUtil::checkInt32($var); - $this->max_lines = $var; - - return $this; - } - - /** - * The syntax of the text. If not set, the text is rendered as HTML. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4; - * @return int - */ - public function getTextSyntax() - { - return $this->text_syntax; - } - - /** - * The syntax of the text. If not set, the text is rendered as HTML. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4; - * @param int $var - * @return $this - */ - public function setTextSyntax($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\TextParagraph\TextSyntax::class); - $this->text_syntax = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php deleted file mode 100644 index 4a65b6a4c330..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph/TextSyntax.php +++ /dev/null @@ -1,62 +0,0 @@ -google.apps.card.v1.TextParagraph.TextSyntax - */ -class TextSyntax -{ - /** - * The text is rendered as HTML if unspecified. - * - * Generated from protobuf enum TEXT_SYNTAX_UNSPECIFIED = 0; - */ - const TEXT_SYNTAX_UNSPECIFIED = 0; - /** - * The text is rendered as HTML. This is the default value. - * - * Generated from protobuf enum HTML = 1; - */ - const HTML = 1; - /** - * The text is rendered as Markdown. - * - * Generated from protobuf enum MARKDOWN = 2; - */ - const MARKDOWN = 2; - - private static $valueToName = [ - self::TEXT_SYNTAX_UNSPECIFIED => 'TEXT_SYNTAX_UNSPECIFIED', - self::HTML => 'HTML', - self::MARKDOWN => 'MARKDOWN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php deleted file mode 100644 index 9d3a22f0b807..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation.php +++ /dev/null @@ -1,123 +0,0 @@ -google.apps.card.v1.Validation - */ -class Validation extends \Google\Protobuf\Internal\Message -{ - /** - * Specify the character limit for text input widgets. Note that this is - * only used for text input and is ignored for other widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field int32 character_limit = 1; - */ - protected $character_limit = 0; - /** - * Specify the type of the input widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Validation.InputType input_type = 2; - */ - protected $input_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $character_limit - * Specify the character limit for text input widgets. Note that this is - * only used for text input and is ignored for other widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * @type int $input_type - * Specify the type of the input widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Specify the character limit for text input widgets. Note that this is - * only used for text input and is ignored for other widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field int32 character_limit = 1; - * @return int - */ - public function getCharacterLimit() - { - return $this->character_limit; - } - - /** - * Specify the character limit for text input widgets. Note that this is - * only used for text input and is ignored for other widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field int32 character_limit = 1; - * @param int $var - * @return $this - */ - public function setCharacterLimit($var) - { - GPBUtil::checkInt32($var); - $this->character_limit = $var; - - return $this; - } - - /** - * Specify the type of the input widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Validation.InputType input_type = 2; - * @return int - */ - public function getInputType() - { - return $this->input_type; - } - - /** - * Specify the type of the input widgets. - * [Google Workspace add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Validation.InputType input_type = 2; - * @param int $var - * @return $this - */ - public function setInputType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Validation\InputType::class); - $this->input_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php deleted file mode 100644 index fe87f3e2d774..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Validation/InputType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.apps.card.v1.Validation.InputType - */ -class InputType -{ - /** - * Unspecified type. Do not use. - * - * Generated from protobuf enum INPUT_TYPE_UNSPECIFIED = 0; - */ - const INPUT_TYPE_UNSPECIFIED = 0; - /** - * Regular text that accepts all characters. - * - * Generated from protobuf enum TEXT = 1; - */ - const TEXT = 1; - /** - * An integer value. - * - * Generated from protobuf enum INTEGER = 2; - */ - const INTEGER = 2; - /** - * A float value. - * - * Generated from protobuf enum FLOAT = 3; - */ - const FLOAT = 3; - /** - * An email address. - * - * Generated from protobuf enum EMAIL = 4; - */ - const EMAIL = 4; - /** - * A emoji selected from system-provided emoji picker. - * - * Generated from protobuf enum EMOJI_PICKER = 5; - */ - const EMOJI_PICKER = 5; - - private static $valueToName = [ - self::INPUT_TYPE_UNSPECIFIED => 'INPUT_TYPE_UNSPECIFIED', - self::TEXT => 'TEXT', - self::INTEGER => 'INTEGER', - self::FLOAT => 'FLOAT', - self::EMAIL => 'EMAIL', - self::EMOJI_PICKER => 'EMOJI_PICKER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php deleted file mode 100644 index eaafb7d411a0..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php +++ /dev/null @@ -1,1251 +0,0 @@ -google.apps.card.v1.Widget - */ -class Widget extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies whether widgets align to the left, right, or center of a column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; - */ - protected $horizontal_alignment = 0; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph - * Displays a text paragraph. Supports simple HTML formatted text. For more - * information about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * For example, the following JSON creates a bolded text: - * ``` - * "textParagraph": { - * "text": " bold text" - * } - * ``` - * @type \Google\Apps\Card\V1\Image $image - * Displays an image. - * For example, the following JSON creates an image with alternative text: - * ``` - * "image": { - * "imageUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", - * "altText": "Chat app avatar" - * } - * ``` - * @type \Google\Apps\Card\V1\DecoratedText $decorated_text - * Displays a decorated text item. - * For example, the following JSON creates a decorated text widget showing - * email address: - * ``` - * "decoratedText": { - * "icon": { - * "knownIcon": "EMAIL" - * }, - * "topLabel": "Email Address", - * "text": "sasha\@example.com", - * "bottomLabel": "This is a new Email address!", - * "switchControl": { - * "name": "has_send_welcome_email_to_sasha", - * "selected": false, - * "controlType": "CHECKBOX" - * } - * } - * ``` - * @type \Google\Apps\Card\V1\ButtonList $button_list - * A list of buttons. - * For example, the following JSON creates two buttons. The first - * is a blue text button and the second is an image button that opens a - * link: - * ``` - * "buttonList": { - * "buttons": [ - * { - * "text": "Edit", - * "color": { - * "red": 0, - * "green": 0, - * "blue": 1, - * }, - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * @type \Google\Apps\Card\V1\TextInput $text_input - * Displays a text box that users can type into. - * For example, the following JSON creates a text input for an email - * address: - * ``` - * "textInput": { - * "name": "mailing_address", - * "label": "Mailing Address" - * } - * ``` - * As another example, the following JSON creates a text input for a - * programming language with static suggestions: - * ``` - * "textInput": { - * "name": "preferred_programing_language", - * "label": "Preferred Language", - * "initialSuggestions": { - * "items": [ - * { - * "text": "C++" - * }, - * { - * "text": "Java" - * }, - * { - * "text": "JavaScript" - * }, - * { - * "text": "Python" - * } - * ] - * } - * } - * ``` - * @type \Google\Apps\Card\V1\SelectionInput $selection_input - * Displays a selection control that lets users select items. Selection - * controls can be checkboxes, radio buttons, switches, or dropdown menus. - * For example, the following JSON creates a dropdown menu that lets users - * choose a size: - * ``` - * "selectionInput": { - * "name": "size", - * "label": "Size" - * "type": "DROPDOWN", - * "items": [ - * { - * "text": "S", - * "value": "small", - * "selected": false - * }, - * { - * "text": "M", - * "value": "medium", - * "selected": true - * }, - * { - * "text": "L", - * "value": "large", - * "selected": false - * }, - * { - * "text": "XL", - * "value": "extra_large", - * "selected": false - * } - * ] - * } - * ``` - * @type \Google\Apps\Card\V1\DateTimePicker $date_time_picker - * Displays a widget that lets users input a date, time, or date and time. - * For example, the following JSON creates a date time picker to schedule an - * appointment: - * ``` - * "dateTimePicker": { - * "name": "appointment_time", - * "label": "Book your appointment at:", - * "type": "DATE_AND_TIME", - * "valueMsEpoch": 796435200000 - * } - * ``` - * @type \Google\Apps\Card\V1\Divider $divider - * Displays a horizontal line divider between widgets. - * For example, the following JSON creates a divider: - * ``` - * "divider": { - * } - * ``` - * @type \Google\Apps\Card\V1\Grid $grid - * Displays a grid with a collection of items. - * A grid supports any number of columns and items. The number of rows is - * determined by the upper bounds of the number items divided by the number - * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 - * items and 2 columns has 6 rows. - * [Google Workspace add-ons and - * Chat apps](https://developers.google.com/workspace/extend): - * For example, the following JSON creates a 2 column grid with a single - * item: - * ``` - * "grid": { - * "title": "A fine collection of items", - * "columnCount": 2, - * "borderStyle": { - * "type": "STROKE", - * "cornerRadius": 4 - * }, - * "items": [ - * { - * "image": { - * "imageUri": "https://www.example.com/image.png", - * "cropStyle": { - * "type": "SQUARE" - * }, - * "borderStyle": { - * "type": "STROKE" - * } - * }, - * "title": "An item", - * "textAlignment": "CENTER" - * } - * ], - * "onClick": { - * "openLink": { - * "url": "https://www.example.com" - * } - * } - * } - * ``` - * @type \Google\Apps\Card\V1\Columns $columns - * Displays up to 2 columns. - * To include more than 2 columns, or to use rows, use the `Grid` widget. - * For example, the following JSON creates 2 columns that each contain - * text paragraphs: - * ``` - * "columns": { - * "columnItems": [ - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "First column text paragraph" - * } - * } - * ] - * }, - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "Second column text paragraph" - * } - * } - * ] - * } - * ] - * } - * ``` - * @type \Google\Apps\Card\V1\Carousel $carousel - * A carousel contains a collection of nested widgets. - * For example, this is a JSON representation of a carousel that contains - * two text paragraphs. - * ``` - * { - * "widgets": [ - * { - * "textParagraph": { - * "text": "First text paragraph in the carousel." - * } - * }, - * { - * "textParagraph": { - * "text": "Second text paragraph in the carousel." - * } - * } - * ] - * } - * ``` - * @type \Google\Apps\Card\V1\ChipList $chip_list - * A list of chips. - * For example, the following JSON creates two chips. The first - * is a text chip and the second is an icon chip that opens a - * link: - * ``` - * "chipList": { - * "chips": [ - * { - * "text": "Edit", - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * @type int $horizontal_alignment - * Specifies whether widgets align to the left, right, or center of a column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Displays a text paragraph. Supports simple HTML formatted text. For more - * information about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * For example, the following JSON creates a bolded text: - * ``` - * "textParagraph": { - * "text": " bold text" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getTextParagraph() - { - return $this->readOneof(1); - } - - public function hasTextParagraph() - { - return $this->hasOneof(1); - } - - /** - * Displays a text paragraph. Supports simple HTML formatted text. For more - * information about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * For example, the following JSON creates a bolded text: - * ``` - * "textParagraph": { - * "text": " bold text" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setTextParagraph($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Displays an image. - * For example, the following JSON creates an image with alternative text: - * ``` - * "image": { - * "imageUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", - * "altText": "Chat app avatar" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @return \Google\Apps\Card\V1\Image|null - */ - public function getImage() - { - return $this->readOneof(2); - } - - public function hasImage() - { - return $this->hasOneof(2); - } - - /** - * Displays an image. - * For example, the following JSON creates an image with alternative text: - * ``` - * "image": { - * "imageUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", - * "altText": "Chat app avatar" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @param \Google\Apps\Card\V1\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Displays a decorated text item. - * For example, the following JSON creates a decorated text widget showing - * email address: - * ``` - * "decoratedText": { - * "icon": { - * "knownIcon": "EMAIL" - * }, - * "topLabel": "Email Address", - * "text": "sasha\@example.com", - * "bottomLabel": "This is a new Email address!", - * "switchControl": { - * "name": "has_send_welcome_email_to_sasha", - * "selected": false, - * "controlType": "CHECKBOX" - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @return \Google\Apps\Card\V1\DecoratedText|null - */ - public function getDecoratedText() - { - return $this->readOneof(3); - } - - public function hasDecoratedText() - { - return $this->hasOneof(3); - } - - /** - * Displays a decorated text item. - * For example, the following JSON creates a decorated text widget showing - * email address: - * ``` - * "decoratedText": { - * "icon": { - * "knownIcon": "EMAIL" - * }, - * "topLabel": "Email Address", - * "text": "sasha\@example.com", - * "bottomLabel": "This is a new Email address!", - * "switchControl": { - * "name": "has_send_welcome_email_to_sasha", - * "selected": false, - * "controlType": "CHECKBOX" - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @param \Google\Apps\Card\V1\DecoratedText $var - * @return $this - */ - public function setDecoratedText($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A list of buttons. - * For example, the following JSON creates two buttons. The first - * is a blue text button and the second is an image button that opens a - * link: - * ``` - * "buttonList": { - * "buttons": [ - * { - * "text": "Edit", - * "color": { - * "red": 0, - * "green": 0, - * "blue": 1, - * }, - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @return \Google\Apps\Card\V1\ButtonList|null - */ - public function getButtonList() - { - return $this->readOneof(4); - } - - public function hasButtonList() - { - return $this->hasOneof(4); - } - - /** - * A list of buttons. - * For example, the following JSON creates two buttons. The first - * is a blue text button and the second is an image button that opens a - * link: - * ``` - * "buttonList": { - * "buttons": [ - * { - * "text": "Edit", - * "color": { - * "red": 0, - * "green": 0, - * "blue": 1, - * }, - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @param \Google\Apps\Card\V1\ButtonList $var - * @return $this - */ - public function setButtonList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Displays a text box that users can type into. - * For example, the following JSON creates a text input for an email - * address: - * ``` - * "textInput": { - * "name": "mailing_address", - * "label": "Mailing Address" - * } - * ``` - * As another example, the following JSON creates a text input for a - * programming language with static suggestions: - * ``` - * "textInput": { - * "name": "preferred_programing_language", - * "label": "Preferred Language", - * "initialSuggestions": { - * "items": [ - * { - * "text": "C++" - * }, - * { - * "text": "Java" - * }, - * { - * "text": "JavaScript" - * }, - * { - * "text": "Python" - * } - * ] - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @return \Google\Apps\Card\V1\TextInput|null - */ - public function getTextInput() - { - return $this->readOneof(5); - } - - public function hasTextInput() - { - return $this->hasOneof(5); - } - - /** - * Displays a text box that users can type into. - * For example, the following JSON creates a text input for an email - * address: - * ``` - * "textInput": { - * "name": "mailing_address", - * "label": "Mailing Address" - * } - * ``` - * As another example, the following JSON creates a text input for a - * programming language with static suggestions: - * ``` - * "textInput": { - * "name": "preferred_programing_language", - * "label": "Preferred Language", - * "initialSuggestions": { - * "items": [ - * { - * "text": "C++" - * }, - * { - * "text": "Java" - * }, - * { - * "text": "JavaScript" - * }, - * { - * "text": "Python" - * } - * ] - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @param \Google\Apps\Card\V1\TextInput $var - * @return $this - */ - public function setTextInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextInput::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Displays a selection control that lets users select items. Selection - * controls can be checkboxes, radio buttons, switches, or dropdown menus. - * For example, the following JSON creates a dropdown menu that lets users - * choose a size: - * ``` - * "selectionInput": { - * "name": "size", - * "label": "Size" - * "type": "DROPDOWN", - * "items": [ - * { - * "text": "S", - * "value": "small", - * "selected": false - * }, - * { - * "text": "M", - * "value": "medium", - * "selected": true - * }, - * { - * "text": "L", - * "value": "large", - * "selected": false - * }, - * { - * "text": "XL", - * "value": "extra_large", - * "selected": false - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @return \Google\Apps\Card\V1\SelectionInput|null - */ - public function getSelectionInput() - { - return $this->readOneof(6); - } - - public function hasSelectionInput() - { - return $this->hasOneof(6); - } - - /** - * Displays a selection control that lets users select items. Selection - * controls can be checkboxes, radio buttons, switches, or dropdown menus. - * For example, the following JSON creates a dropdown menu that lets users - * choose a size: - * ``` - * "selectionInput": { - * "name": "size", - * "label": "Size" - * "type": "DROPDOWN", - * "items": [ - * { - * "text": "S", - * "value": "small", - * "selected": false - * }, - * { - * "text": "M", - * "value": "medium", - * "selected": true - * }, - * { - * "text": "L", - * "value": "large", - * "selected": false - * }, - * { - * "text": "XL", - * "value": "extra_large", - * "selected": false - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @param \Google\Apps\Card\V1\SelectionInput $var - * @return $this - */ - public function setSelectionInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Displays a widget that lets users input a date, time, or date and time. - * For example, the following JSON creates a date time picker to schedule an - * appointment: - * ``` - * "dateTimePicker": { - * "name": "appointment_time", - * "label": "Book your appointment at:", - * "type": "DATE_AND_TIME", - * "valueMsEpoch": 796435200000 - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @return \Google\Apps\Card\V1\DateTimePicker|null - */ - public function getDateTimePicker() - { - return $this->readOneof(7); - } - - public function hasDateTimePicker() - { - return $this->hasOneof(7); - } - - /** - * Displays a widget that lets users input a date, time, or date and time. - * For example, the following JSON creates a date time picker to schedule an - * appointment: - * ``` - * "dateTimePicker": { - * "name": "appointment_time", - * "label": "Book your appointment at:", - * "type": "DATE_AND_TIME", - * "valueMsEpoch": 796435200000 - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @param \Google\Apps\Card\V1\DateTimePicker $var - * @return $this - */ - public function setDateTimePicker($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DateTimePicker::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Displays a horizontal line divider between widgets. - * For example, the following JSON creates a divider: - * ``` - * "divider": { - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Divider divider = 9; - * @return \Google\Apps\Card\V1\Divider|null - */ - public function getDivider() - { - return $this->readOneof(9); - } - - public function hasDivider() - { - return $this->hasOneof(9); - } - - /** - * Displays a horizontal line divider between widgets. - * For example, the following JSON creates a divider: - * ``` - * "divider": { - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Divider divider = 9; - * @param \Google\Apps\Card\V1\Divider $var - * @return $this - */ - public function setDivider($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Divider::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Displays a grid with a collection of items. - * A grid supports any number of columns and items. The number of rows is - * determined by the upper bounds of the number items divided by the number - * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 - * items and 2 columns has 6 rows. - * [Google Workspace add-ons and - * Chat apps](https://developers.google.com/workspace/extend): - * For example, the following JSON creates a 2 column grid with a single - * item: - * ``` - * "grid": { - * "title": "A fine collection of items", - * "columnCount": 2, - * "borderStyle": { - * "type": "STROKE", - * "cornerRadius": 4 - * }, - * "items": [ - * { - * "image": { - * "imageUri": "https://www.example.com/image.png", - * "cropStyle": { - * "type": "SQUARE" - * }, - * "borderStyle": { - * "type": "STROKE" - * } - * }, - * "title": "An item", - * "textAlignment": "CENTER" - * } - * ], - * "onClick": { - * "openLink": { - * "url": "https://www.example.com" - * } - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Grid grid = 10; - * @return \Google\Apps\Card\V1\Grid|null - */ - public function getGrid() - { - return $this->readOneof(10); - } - - public function hasGrid() - { - return $this->hasOneof(10); - } - - /** - * Displays a grid with a collection of items. - * A grid supports any number of columns and items. The number of rows is - * determined by the upper bounds of the number items divided by the number - * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 - * items and 2 columns has 6 rows. - * [Google Workspace add-ons and - * Chat apps](https://developers.google.com/workspace/extend): - * For example, the following JSON creates a 2 column grid with a single - * item: - * ``` - * "grid": { - * "title": "A fine collection of items", - * "columnCount": 2, - * "borderStyle": { - * "type": "STROKE", - * "cornerRadius": 4 - * }, - * "items": [ - * { - * "image": { - * "imageUri": "https://www.example.com/image.png", - * "cropStyle": { - * "type": "SQUARE" - * }, - * "borderStyle": { - * "type": "STROKE" - * } - * }, - * "title": "An item", - * "textAlignment": "CENTER" - * } - * ], - * "onClick": { - * "openLink": { - * "url": "https://www.example.com" - * } - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Grid grid = 10; - * @param \Google\Apps\Card\V1\Grid $var - * @return $this - */ - public function setGrid($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Grid::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Displays up to 2 columns. - * To include more than 2 columns, or to use rows, use the `Grid` widget. - * For example, the following JSON creates 2 columns that each contain - * text paragraphs: - * ``` - * "columns": { - * "columnItems": [ - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "First column text paragraph" - * } - * } - * ] - * }, - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "Second column text paragraph" - * } - * } - * ] - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Columns columns = 11; - * @return \Google\Apps\Card\V1\Columns|null - */ - public function getColumns() - { - return $this->readOneof(11); - } - - public function hasColumns() - { - return $this->hasOneof(11); - } - - /** - * Displays up to 2 columns. - * To include more than 2 columns, or to use rows, use the `Grid` widget. - * For example, the following JSON creates 2 columns that each contain - * text paragraphs: - * ``` - * "columns": { - * "columnItems": [ - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "First column text paragraph" - * } - * } - * ] - * }, - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "Second column text paragraph" - * } - * } - * ] - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Columns columns = 11; - * @param \Google\Apps\Card\V1\Columns $var - * @return $this - */ - public function setColumns($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Columns::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * A carousel contains a collection of nested widgets. - * For example, this is a JSON representation of a carousel that contains - * two text paragraphs. - * ``` - * { - * "widgets": [ - * { - * "textParagraph": { - * "text": "First text paragraph in the carousel." - * } - * }, - * { - * "textParagraph": { - * "text": "Second text paragraph in the carousel." - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Carousel carousel = 13; - * @return \Google\Apps\Card\V1\Carousel|null - */ - public function getCarousel() - { - return $this->readOneof(13); - } - - public function hasCarousel() - { - return $this->hasOneof(13); - } - - /** - * A carousel contains a collection of nested widgets. - * For example, this is a JSON representation of a carousel that contains - * two text paragraphs. - * ``` - * { - * "widgets": [ - * { - * "textParagraph": { - * "text": "First text paragraph in the carousel." - * } - * }, - * { - * "textParagraph": { - * "text": "Second text paragraph in the carousel." - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Carousel carousel = 13; - * @param \Google\Apps\Card\V1\Carousel $var - * @return $this - */ - public function setCarousel($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Carousel::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * A list of chips. - * For example, the following JSON creates two chips. The first - * is a text chip and the second is an icon chip that opens a - * link: - * ``` - * "chipList": { - * "chips": [ - * { - * "text": "Edit", - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 14; - * @return \Google\Apps\Card\V1\ChipList|null - */ - public function getChipList() - { - return $this->readOneof(14); - } - - public function hasChipList() - { - return $this->hasOneof(14); - } - - /** - * A list of chips. - * For example, the following JSON creates two chips. The first - * is a text chip and the second is an icon chip that opens a - * link: - * ``` - * "chipList": { - * "chips": [ - * { - * "text": "Edit", - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.ChipList chip_list = 14; - * @param \Google\Apps\Card\V1\ChipList $var - * @return $this - */ - public function setChipList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ChipList::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Specifies whether widgets align to the left, right, or center of a column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; - * @return int - */ - public function getHorizontalAlignment() - { - return $this->horizontal_alignment; - } - - /** - * Specifies whether widgets align to the left, right, or center of a column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; - * @param int $var - * @return $this - */ - public function setHorizontalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); - $this->horizontal_alignment = $var; - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php deleted file mode 100644 index 89da45999785..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php +++ /dev/null @@ -1,73 +0,0 @@ -google.apps.card.v1.Widget.HorizontalAlignment - */ -class HorizontalAlignment -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; - */ - const HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; - /** - * Default value. Aligns widgets to the start position of the column. For - * left-to-right layouts, aligns to the left. For right-to-left layouts, - * aligns to the right. - * - * Generated from protobuf enum START = 1; - */ - const START = 1; - /** - * Aligns widgets to the center of the column. - * - * Generated from protobuf enum CENTER = 2; - */ - const CENTER = 2; - /** - * Aligns widgets to the end position of the column. For left-to-right - * layouts, aligns widgets to the right. For right-to-left layouts, aligns - * widgets to the left. - * - * Generated from protobuf enum END = 3; - */ - const END = 3; - - private static $valueToName = [ - self::HORIZONTAL_ALIGNMENT_UNSPECIFIED => 'HORIZONTAL_ALIGNMENT_UNSPECIFIED', - self::START => 'START', - self::CENTER => 'CENTER', - self::END => 'END', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php deleted file mode 100644 index 88f71e82a4b4..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php +++ /dev/null @@ -1,58 +0,0 @@ -google.apps.card.v1.Widget.ImageType - */ -class ImageType -{ - /** - * Default value. Applies a square mask to the image. For example, a 4x3 - * image becomes 3x3. - * - * Generated from protobuf enum SQUARE = 0; - */ - const SQUARE = 0; - /** - * Applies a circular mask to the image. For example, a 4x3 image becomes a - * circle with a diameter of 3. - * - * Generated from protobuf enum CIRCLE = 1; - */ - const CIRCLE = 1; - - private static $valueToName = [ - self::SQUARE => 'SQUARE', - self::CIRCLE => 'CIRCLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php deleted file mode 100644 index 5fc4ddd694a0..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/VerticalAlignment.php +++ /dev/null @@ -1,68 +0,0 @@ -google.apps.card.v1.Widget.VerticalAlignment - */ -class VerticalAlignment -{ - /** - * Unspecified type. Do not use. - * - * Generated from protobuf enum VERTICAL_ALIGNMENT_UNSPECIFIED = 0; - */ - const VERTICAL_ALIGNMENT_UNSPECIFIED = 0; - /** - * Alignment to the top position. - * - * Generated from protobuf enum TOP = 1; - */ - const TOP = 1; - /** - * Alignment to the middle position. - * - * Generated from protobuf enum MIDDLE = 2; - */ - const MIDDLE = 2; - /** - * Alignment to the bottom position. - * - * Generated from protobuf enum BOTTOM = 3; - */ - const BOTTOM = 3; - - private static $valueToName = [ - self::VERTICAL_ALIGNMENT_UNSPECIFIED => 'VERTICAL_ALIGNMENT_UNSPECIFIED', - self::TOP => 'TOP', - self::MIDDLE => 'MIDDLE', - self::BOTTOM => 'BOTTOM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php deleted file mode 100644 index feda69ee5614..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBD\x02\x0A\"google/chat/v1/action_status.proto\x12\x0Egoogle.chat.v1\"R\x0A\x0CActionStatus\x12%\x0A\x0Bstatus_code\x18\x01 \x01(\x0E2\x10.google.rpc.Code\x12\x1B\x0A\x13user_facing_message\x18\x02 \x01(\x09B\xAA\x01\x0A\x12com.google.chat.v1B\x11ActionStatusProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php deleted file mode 100644 index 3a6b49f7e78c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB7\x13\x0A\x1Fgoogle/chat/v1/annotation.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\x19google/chat/v1/user.proto\"\x82\x03\x0A\x0AAnnotation\x12,\x0A\x04type\x18\x01 \x01(\x0E2\x1E.google.chat.v1.AnnotationType\x12\x18\x0A\x0Bstart_index\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0E\x0A\x06length\x18\x03 \x01(\x05\x12;\x0A\x0Cuser_mention\x18\x04 \x01(\x0B2#.google.chat.v1.UserMentionMetadataH\x00\x12=\x0A\x0Dslash_command\x18\x05 \x01(\x0B2\$.google.chat.v1.SlashCommandMetadataH\x00\x12>\x0A\x12rich_link_metadata\x18\x06 \x01(\x0B2 .google.chat.v1.RichLinkMetadataH\x00\x12D\x0A\x15custom_emoji_metadata\x18\x07 \x01(\x0B2#.google.chat.v1.CustomEmojiMetadataH\x00B\x0A\x0A\x08metadataB\x0E\x0A\x0C_start_index\"\xA5\x01\x0A\x13UserMentionMetadata\x12\"\x0A\x04user\x18\x01 \x01(\x0B2\x14.google.chat.v1.User\x126\x0A\x04type\x18\x02 \x01(\x0E2(.google.chat.v1.UserMentionMetadata.Type\"2\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0B\x0A\x07MENTION\x10\x02\"\xE8\x01\x0A\x14SlashCommandMetadata\x12!\x0A\x03bot\x18\x01 \x01(\x0B2\x14.google.chat.v1.User\x127\x0A\x04type\x18\x02 \x01(\x0E2).google.chat.v1.SlashCommandMetadata.Type\x12\x14\x0A\x0Ccommand_name\x18\x03 \x01(\x09\x12\x12\x0A\x0Acommand_id\x18\x04 \x01(\x03\x12\x17\x0A\x0Ftriggers_dialog\x18\x05 \x01(\x08\"1\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06INVOKE\x10\x02\"\x81\x04\x0A\x10RichLinkMetadata\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12E\x0A\x0Erich_link_type\x18\x02 \x01(\x0E2-.google.chat.v1.RichLinkMetadata.RichLinkType\x128\x0A\x0Fdrive_link_data\x18\x03 \x01(\x0B2\x1D.google.chat.v1.DriveLinkDataH\x00\x12A\x0A\x14chat_space_link_data\x18\x04 \x01(\x0B2!.google.chat.v1.ChatSpaceLinkDataH\x00\x12A\x0A\x14meet_space_link_data\x18\x05 \x01(\x0B2!.google.chat.v1.MeetSpaceLinkDataH\x00\x12I\x0A\x18calendar_event_link_data\x18\x06 \x01(\x0B2%.google.chat.v1.CalendarEventLinkDataH\x00\"\x85\x01\x0A\x0CRichLinkType\x12\x1E\x0A\x1ARICH_LINK_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ADRIVE_FILE\x10\x01\x12\x0E\x0A\x0ACHAT_SPACE\x10\x02\x12\x11\x0A\x0DGMAIL_MESSAGE\x10\x03\x12\x0E\x0A\x0AMEET_SPACE\x10\x04\x12\x12\x0A\x0ECALENDAR_EVENT\x10\x05B\x06\x0A\x04data\"H\x0A\x13CustomEmojiMetadata\x121\x0A\x0Ccustom_emoji\x18\x01 \x01(\x0B2\x1B.google.chat.v1.CustomEmoji\"X\x0A\x0DDriveLinkData\x124\x0A\x0Edrive_data_ref\x18\x01 \x01(\x0B2\x1C.google.chat.v1.DriveDataRef\x12\x11\x0A\x09mime_type\x18\x02 \x01(\x09\"\xA6\x01\x0A\x11ChatSpaceLinkData\x12-\x0A\x05space\x18\x01 \x01(\x09B\x1E\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12/\x0A\x06thread\x18\x02 \x01(\x09B\x1F\xFAA\x1C\x0A\x1Achat.googleapis.com/Thread\x121\x0A\x07message\x18\x03 \x01(\x09B \xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\"\xB8\x02\x0A\x11MeetSpaceLinkData\x12\x14\x0A\x0Cmeeting_code\x18\x01 \x01(\x09\x124\x0A\x04type\x18\x02 \x01(\x0E2&.google.chat.v1.MeetSpaceLinkData.Type\x12M\x0A\x0Dhuddle_status\x18\x03 \x01(\x0E2..google.chat.v1.MeetSpaceLinkData.HuddleStatusB\x06\xE0A\x01\xE0A\x03\"5\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07MEETING\x10\x01\x12\x0A\x0A\x06HUDDLE\x10\x02\"Q\x0A\x0CHuddleStatus\x12\x1D\x0A\x19HUDDLE_STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STARTED\x10\x01\x12\x09\x0A\x05ENDED\x10\x02\x12\x0A\x0A\x06MISSED\x10\x03\">\x0A\x15CalendarEventLinkData\x12\x13\x0A\x0Bcalendar_id\x18\x01 \x01(\x09\x12\x10\x0A\x08event_id\x18\x02 \x01(\x09*w\x0A\x0EAnnotationType\x12\x1F\x0A\x1BANNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CUSER_MENTION\x10\x01\x12\x11\x0A\x0DSLASH_COMMAND\x10\x02\x12\x0D\x0A\x09RICH_LINK\x10\x03\x12\x10\x0A\x0CCUSTOM_EMOJI\x10\x04B\xA8\x01\x0A\x12com.google.chat.v1B\x0FAnnotationProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php deleted file mode 100644 index 6eea3a62486a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8E\x09\x0A\x1Fgoogle/chat/v1/attachment.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\"\xFD\x03\x0A\x0AAttachment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Ccontent_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Ccontent_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x13attachment_data_ref\x18\x04 \x01(\x0B2!.google.chat.v1.AttachmentDataRefB\x03\xE0A\x01H\x00\x12;\x0A\x0Edrive_data_ref\x18\x07 \x01(\x0B2\x1C.google.chat.v1.DriveDataRefB\x03\xE0A\x03H\x00\x12\x1A\x0A\x0Dthumbnail_uri\x18\x05 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdownload_uri\x18\x06 \x01(\x09B\x03\xE0A\x03\x126\x0A\x06source\x18\x09 \x01(\x0E2!.google.chat.v1.Attachment.SourceB\x03\xE0A\x03\"F\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ADRIVE_FILE\x10\x01\x12\x14\x0A\x10UPLOADED_CONTENT\x10\x02:_\xEAA\\\x0A\x1Echat.googleapis.com/Attachment\x12:spaces/{space}/messages/{message}/attachments/{attachment}B\x0A\x0A\x08data_ref\"%\x0A\x0CDriveDataRef\x12\x15\x0A\x0Ddrive_file_id\x18\x02 \x01(\x09\"U\x0A\x11AttachmentDataRef\x12\x1A\x0A\x0Dresource_name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17attachment_upload_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x14GetAttachmentRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/Attachment\"e\x0A\x17UploadAttachmentRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12\x15\x0A\x08filename\x18\x04 \x01(\x09B\x03\xE0A\x02\"Z\x0A\x18UploadAttachmentResponse\x12>\x0A\x13attachment_data_ref\x18\x01 \x01(\x0B2!.google.chat.v1.AttachmentDataRefB\xA8\x01\x0A\x12com.google.chat.v1B\x0FAttachmentProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php deleted file mode 100644 index eb9d175063d9..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php +++ /dev/null @@ -1,38 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEEE\x0A!google/chat/v1/chat_service.proto\x12\x0Egoogle.chat.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A\x1Fgoogle/chat/v1/membership.proto\x1A\x1Cgoogle/chat/v1/message.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\x1Cgoogle/chat/v1/section.proto\x1A\x1Agoogle/chat/v1/space.proto\x1A google/chat/v1/space_event.proto\x1A/google/chat/v1/space_notification_setting.proto\x1A%google/chat/v1/space_read_state.proto\x1A google/chat/v1/space_setup.proto\x1A&google/chat/v1/thread_read_state.proto\x1A\x1Bgoogle/protobuf/empty.proto2\xD1@\x0A\x0BChatService\x12\x9B\x01\x0A\x0DCreateMessage\x12\$.google.chat.v1.CreateMessageRequest\x1A\x17.google.chat.v1.Message\"K\xDAA\x19parent,message,message_id\x82\xD3\xE4\x93\x02)\"\x1E/v1/{parent=spaces/*}/messages:\x07message\x12\x8A\x01\x0A\x0CListMessages\x12#.google.chat.v1.ListMessagesRequest\x1A\$.google.chat.v1.ListMessagesResponse\"/\xDAA\x06parent\x82\xD3\xE4\x93\x02 \x12\x1E/v1/{parent=spaces/*}/messages\x12\x92\x01\x0A\x0FListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1A'.google.chat.v1.ListMembershipsResponse\".\xDAA\x06parent\x82\xD3\xE4\x93\x02\x1F\x12\x1D/v1/{parent=spaces/*}/members\x12\x7F\x0A\x0DGetMembership\x12\$.google.chat.v1.GetMembershipRequest\x1A\x1A.google.chat.v1.Membership\",\xDAA\x04name\x82\xD3\xE4\x93\x02\x1F\x12\x1D/v1/{name=spaces/*/members/*}\x12w\x0A\x0AGetMessage\x12!.google.chat.v1.GetMessageRequest\x1A\x17.google.chat.v1.Message\"-\xDAA\x04name\x82\xD3\xE4\x93\x02 \x12\x1E/v1/{name=spaces/*/messages/*}\x12\xD1\x01\x0A\x0DUpdateMessage\x12\$.google.chat.v1.UpdateMessageRequest\x1A\x17.google.chat.v1.Message\"\x80\x01\xDAA\x13message,update_mask\x82\xD3\xE4\x93\x02d\x1A&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\x0A\x0DDeleteMessage\x12\$.google.chat.v1.DeleteMessageRequest\x1A\x16.google.protobuf.Empty\"-\xDAA\x04name\x82\xD3\xE4\x93\x02 *\x1E/v1/{name=spaces/*/messages/*}\x12\x8E\x01\x0A\x0DGetAttachment\x12\$.google.chat.v1.GetAttachmentRequest\x1A\x1A.google.chat.v1.Attachment\";\xDAA\x04name\x82\xD3\xE4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9A\x01\x0A\x10UploadAttachment\x12'.google.chat.v1.UploadAttachmentRequest\x1A(.google.chat.v1.UploadAttachmentResponse\"3\x82\xD3\xE4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\x0A\x0AListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1A\".google.chat.v1.ListSpacesResponse\"\x15\xDAA\x00\x82\xD3\xE4\x93\x02\x0C\x12\x0A/v1/spaces\x12w\x0A\x0CSearchSpaces\x12#.google.chat.v1.SearchSpacesRequest\x1A\$.google.chat.v1.SearchSpacesResponse\"\x1C\xDAA\x00\x82\xD3\xE4\x93\x02\x13\x12\x11/v1/spaces:search\x12f\x0A\x08GetSpace\x12\x1F.google.chat.v1.GetSpaceRequest\x1A\x15.google.chat.v1.Space\"\"\xDAA\x04name\x82\xD3\xE4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\x0A\x0BCreateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1A\x15.google.chat.v1.Space\"!\xDAA\x05space\x82\xD3\xE4\x93\x02\x13\"\x0A/v1/spaces:\x05space\x12c\x0A\x0ASetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1A\x15.google.chat.v1.Space\"\x1B\x82\xD3\xE4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\x0A\x0BUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1A\x15.google.chat.v1.Space\"<\xDAA\x11space,update_mask\x82\xD3\xE4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\x0A\x0BDeleteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1A\x16.google.protobuf.Empty\"\"\xDAA\x04name\x82\xD3\xE4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9D\x01\x0A\x13CompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1A+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xD3\xE4\x93\x02'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\x0A\x11FindDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1A\x15.google.chat.v1.Space\"\$\x82\xD3\xE4\x93\x02\x1E\x12\x1C/v1/spaces:findDirectMessage\x12\x82\x01\x0A\x0EFindGroupChats\x12%.google.chat.v1.FindGroupChatsRequest\x1A&.google.chat.v1.FindGroupChatsResponse\"!\x82\xD3\xE4\x93\x02\x1B\x12\x19/v1/spaces:findGroupChats\x12\x9E\x01\x0A\x10CreateMembership\x12'.google.chat.v1.CreateMembershipRequest\x1A\x1A.google.chat.v1.Membership\"E\xDAA\x11parent,membership\x82\xD3\xE4\x93\x02+\"\x1D/v1/{parent=spaces/*}/members:\x0Amembership\x12\xAE\x01\x0A\x10UpdateMembership\x12'.google.chat.v1.UpdateMembershipRequest\x1A\x1A.google.chat.v1.Membership\"U\xDAA\x16membership,update_mask\x82\xD3\xE4\x93\x0262(/v1/{membership.name=spaces/*/members/*}:\x0Amembership\x12\x85\x01\x0A\x10DeleteMembership\x12'.google.chat.v1.DeleteMembershipRequest\x1A\x1A.google.chat.v1.Membership\",\xDAA\x04name\x82\xD3\xE4\x93\x02\x1F*\x1D/v1/{name=spaces/*/members/*}\x12\xA1\x01\x0A\x0ECreateReaction\x12%.google.chat.v1.CreateReactionRequest\x1A\x18.google.chat.v1.Reaction\"N\xDAA\x0Fparent,reaction\x82\xD3\xE4\x93\x026\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\x0A\x0DListReactions\x12\$.google.chat.v1.ListReactionsRequest\x1A%.google.chat.v1.ListReactionsResponse\";\xDAA\x06parent\x82\xD3\xE4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8A\x01\x0A\x0EDeleteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1A\x16.google.protobuf.Empty\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x91\x01\x0A\x11CreateCustomEmoji\x12(.google.chat.v1.CreateCustomEmojiRequest\x1A\x1B.google.chat.v1.CustomEmoji\"5\xDAA\x0Ccustom_emoji\x82\xD3\xE4\x93\x02 \"\x10/v1/customEmojis:\x0Ccustom_emoji\x12~\x0A\x0EGetCustomEmoji\x12%.google.chat.v1.GetCustomEmojiRequest\x1A\x1B.google.chat.v1.CustomEmoji\"(\xDAA\x04name\x82\xD3\xE4\x93\x02\x1B\x12\x19/v1/{name=customEmojis/*}\x12\x82\x01\x0A\x10ListCustomEmojis\x12'.google.chat.v1.ListCustomEmojisRequest\x1A(.google.chat.v1.ListCustomEmojisResponse\"\x1B\xDAA\x00\x82\xD3\xE4\x93\x02\x12\x12\x10/v1/customEmojis\x12\x7F\x0A\x11DeleteCustomEmoji\x12(.google.chat.v1.DeleteCustomEmojiRequest\x1A\x16.google.protobuf.Empty\"(\xDAA\x04name\x82\xD3\xE4\x93\x02\x1B*\x19/v1/{name=customEmojis/*}\x12\x98\x01\x0A\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1A\x1E.google.chat.v1.SpaceReadState\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xD9\x01\x0A\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1A\x1E.google.chat.v1.SpaceReadState\"t\xDAA\x1Cspace_read_state,update_mask\x82\xD3\xE4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xA6\x01\x0A\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1A\x1F.google.chat.v1.ThreadReadState\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\x83\x01\x0A\x0DGetSpaceEvent\x12\$.google.chat.v1.GetSpaceEventRequest\x1A\x1A.google.chat.v1.SpaceEvent\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#\x12!/v1/{name=spaces/*/spaceEvents/*}\x12\x9D\x01\x0A\x0FListSpaceEvents\x12&.google.chat.v1.ListSpaceEventsRequest\x1A'.google.chat.v1.ListSpaceEventsResponse\"9\xDAA\x0Dparent,filter\x82\xD3\xE4\x93\x02#\x12!/v1/{parent=spaces/*}/spaceEvents\x12\xC0\x01\x0A\x1BGetSpaceNotificationSetting\x122.google.chat.v1.GetSpaceNotificationSettingRequest\x1A(.google.chat.v1.SpaceNotificationSetting\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=users/*/spaces/*/spaceNotificationSetting}\x12\xA0\x02\x0A\x1EUpdateSpaceNotificationSetting\x125.google.chat.v1.UpdateSpaceNotificationSettingRequest\x1A(.google.chat.v1.SpaceNotificationSetting\"\x9C\x01\xDAA&space_notification_setting,update_mask\x82\xD3\xE4\x93\x02m2O/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}:\x1Aspace_notification_setting\x12\x8F\x01\x0A\x0DCreateSection\x12\$.google.chat.v1.CreateSectionRequest\x1A\x17.google.chat.v1.Section\"?\xDAA\x0Eparent,section\x82\xD3\xE4\x93\x02(\"\x1D/v1/{parent=users/*}/sections:\x07section\x12{\x0A\x0DDeleteSection\x12\$.google.chat.v1.DeleteSectionRequest\x1A\x16.google.protobuf.Empty\",\xDAA\x04name\x82\xD3\xE4\x93\x02\x1F*\x1D/v1/{name=users/*/sections/*}\x12\x9C\x01\x0A\x0DUpdateSection\x12\$.google.chat.v1.UpdateSectionRequest\x1A\x17.google.chat.v1.Section\"L\xDAA\x13section,update_mask\x82\xD3\xE4\x93\x0202%/v1/{section.name=users/*/sections/*}:\x07section\x12\x89\x01\x0A\x0CListSections\x12#.google.chat.v1.ListSectionsRequest\x1A\$.google.chat.v1.ListSectionsResponse\".\xDAA\x06parent\x82\xD3\xE4\x93\x02\x1F\x12\x1D/v1/{parent=users/*}/sections\x12\x95\x01\x0A\x0FPositionSection\x12&.google.chat.v1.PositionSectionRequest\x1A'.google.chat.v1.PositionSectionResponse\"1\x82\xD3\xE4\x93\x02+\"&/v1/{name=users/*/sections/*}:position:\x01*\x12\x9D\x01\x0A\x10ListSectionItems\x12'.google.chat.v1.ListSectionItemsRequest\x1A(.google.chat.v1.ListSectionItemsResponse\"6\xDAA\x06parent\x82\xD3\xE4\x93\x02'\x12%/v1/{parent=users/*/sections/*}/items\x12\xAF\x01\x0A\x0FMoveSectionItem\x12&.google.chat.v1.MoveSectionItemRequest\x1A'.google.chat.v1.MoveSectionItemResponse\"K\xDAA\x13name,target_section\x82\xD3\xE4\x93\x02/\"*/v1/{name=users/*/sections/*/items/*}:move:\x01*\x1A\xBE\x0E\xCAA\x13chat.googleapis.com\xD2A\xA4\x0Ehttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettingsB\xA9\x01\x0A\x12com.google.chat.v1B\x10ChatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php deleted file mode 100644 index 85e235cd204e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xFC\x06\x0A%google/chat/v1/contextual_addon.proto\x12\x0Egoogle.chat.v1\"\x8A\x05\x0A\x15ContextualAddOnMarkup\x1A\xF0\x04\x0A\x04Card\x12E\x0A\x06header\x18\x01 \x01(\x0B25.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader\x12D\x0A\x08sections\x18\x02 \x03(\x0B22.google.chat.v1.ContextualAddOnMarkup.Card.Section\x12K\x0A\x0Ccard_actions\x18\x03 \x03(\x0B25.google.chat.v1.ContextualAddOnMarkup.Card.CardAction\x12\x0C\x0A\x04name\x18\x04 \x01(\x09\x1A\xD9\x01\x0A\x0ACardHeader\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x10\x0A\x08subtitle\x18\x02 \x01(\x09\x12U\x0A\x0Bimage_style\x18\x03 \x01(\x0E2@.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle\x12\x11\x0A\x09image_url\x18\x04 \x01(\x09\"@\x0A\x0AImageStyle\x12\x1B\x0A\x17IMAGE_STYLE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05IMAGE\x10\x01\x12\x0A\x0A\x06AVATAR\x10\x02\x1AH\x0A\x07Section\x12\x0E\x0A\x06header\x18\x01 \x01(\x09\x12-\x0A\x07widgets\x18\x02 \x03(\x0B2\x1C.google.chat.v1.WidgetMarkup\x1AZ\x0A\x0ACardAction\x12\x14\x0A\x0Caction_label\x18\x01 \x01(\x09\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClickB\xAD\x01\x0A\x12com.google.chat.v1B\x14ContextualAddOnProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php deleted file mode 100644 index 223b57565c4c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xFD\x03\x0A&google/chat/v1/deletion_metadata.proto\x12\x0Egoogle.chat.v1\"\x89\x02\x0A\x10DeletionMetadata\x12D\x0A\x0Ddeletion_type\x18\x01 \x01(\x0E2-.google.chat.v1.DeletionMetadata.DeletionType\"\xAE\x01\x0A\x0CDeletionType\x12\x1D\x0A\x19DELETION_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07CREATOR\x10\x01\x12\x0F\x0A\x0BSPACE_OWNER\x10\x02\x12\x09\x0A\x05ADMIN\x10\x03\x12\x16\x0A\x12APP_MESSAGE_EXPIRY\x10\x04\x12\x13\x0A\x0FCREATOR_VIA_APP\x10\x05\x12\x17\x0A\x13SPACE_OWNER_VIA_APP\x10\x06\x12\x10\x0A\x0CSPACE_MEMBER\x10\x07B\xAE\x01\x0A\x12com.google.chat.v1B\x15DeletionMetadataProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php deleted file mode 100644 index a40b950e1ebd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB9\x0E\x0A\"google/chat/v1/event_payload.proto\x12\x0Egoogle.chat.v1\x1A\x1Fgoogle/chat/v1/membership.proto\x1A\x1Cgoogle/chat/v1/message.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\x1Agoogle/chat/v1/space.proto\"L\x0A\x1AMembershipCreatedEventData\x12.\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.Membership\"L\x0A\x1AMembershipDeletedEventData\x12.\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.Membership\"L\x0A\x1AMembershipUpdatedEventData\x12.\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.Membership\"b\x0A\x1FMembershipBatchCreatedEventData\x12?\x0A\x0Bmemberships\x18\x01 \x03(\x0B2*.google.chat.v1.MembershipCreatedEventData\"b\x0A\x1FMembershipBatchUpdatedEventData\x12?\x0A\x0Bmemberships\x18\x01 \x03(\x0B2*.google.chat.v1.MembershipUpdatedEventData\"b\x0A\x1FMembershipBatchDeletedEventData\x12?\x0A\x0Bmemberships\x18\x01 \x03(\x0B2*.google.chat.v1.MembershipDeletedEventData\"C\x0A\x17MessageCreatedEventData\x12(\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.Message\"C\x0A\x17MessageUpdatedEventData\x12(\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.Message\"C\x0A\x17MessageDeletedEventData\x12(\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.Message\"Y\x0A\x1CMessageBatchCreatedEventData\x129\x0A\x08messages\x18\x01 \x03(\x0B2'.google.chat.v1.MessageCreatedEventData\"Y\x0A\x1CMessageBatchUpdatedEventData\x129\x0A\x08messages\x18\x01 \x03(\x0B2'.google.chat.v1.MessageUpdatedEventData\"Y\x0A\x1CMessageBatchDeletedEventData\x129\x0A\x08messages\x18\x01 \x03(\x0B2'.google.chat.v1.MessageDeletedEventData\"=\x0A\x15SpaceUpdatedEventData\x12\$\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.Space\"S\x0A\x1ASpaceBatchUpdatedEventData\x125\x0A\x06spaces\x18\x01 \x03(\x0B2%.google.chat.v1.SpaceUpdatedEventData\"F\x0A\x18ReactionCreatedEventData\x12*\x0A\x08reaction\x18\x01 \x01(\x0B2\x18.google.chat.v1.Reaction\"F\x0A\x18ReactionDeletedEventData\x12*\x0A\x08reaction\x18\x01 \x01(\x0B2\x18.google.chat.v1.Reaction\"\\\x0A\x1DReactionBatchCreatedEventData\x12;\x0A\x09reactions\x18\x01 \x03(\x0B2(.google.chat.v1.ReactionCreatedEventData\"\\\x0A\x1DReactionBatchDeletedEventData\x12;\x0A\x09reactions\x18\x01 \x03(\x0B2(.google.chat.v1.ReactionDeletedEventDataB\xAA\x01\x0A\x12com.google.chat.v1B\x11EventPayloadProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php deleted file mode 100644 index ff40baa1a3dd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF1\x01\x0A\x1Agoogle/chat/v1/group.proto\x12\x0Egoogle.chat.v1\"\x15\x0A\x05Group\x12\x0C\x0A\x04name\x18\x01 \x01(\x09B\xA3\x01\x0A\x12com.google.chat.v1B\x0AGroupProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php deleted file mode 100644 index 0046c84a244c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB9\x02\x0A\"google/chat/v1/history_state.proto\x12\x0Egoogle.chat.v1*N\x0A\x0CHistoryState\x12\x1D\x0A\x19HISTORY_STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BHISTORY_OFF\x10\x01\x12\x0E\x0A\x0AHISTORY_ON\x10\x02B\xAA\x01\x0A\x12com.google.chat.v1B\x11HistoryStateProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php deleted file mode 100644 index 8b6d5fe973d3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x85\x02\x0A google/chat/v1/matched_url.proto\x12\x0Egoogle.chat.v1\"\x1E\x0A\x0AMatchedUrl\x12\x10\x0A\x03url\x18\x02 \x01(\x09B\x03\xE0A\x03B\xA8\x01\x0A\x12com.google.chat.v1B\x0FMatchedUrlProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php deleted file mode 100644 index f394d0e6da8f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x94\x0F\x0A\x1Fgoogle/chat/v1/membership.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Agoogle/chat/v1/group.proto\x1A\x19google/chat/v1/user.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x96\x05\x0A\x0AMembership\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12>\x0A\x05state\x18\x02 \x01(\x0E2*.google.chat.v1.Membership.MembershipStateB\x03\xE0A\x03\x12<\x0A\x04role\x18\x07 \x01(\x0E2).google.chat.v1.Membership.MembershipRoleB\x03\xE0A\x01\x12+\x0A\x06member\x18\x03 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x01H\x00\x122\x0A\x0Cgroup_member\x18\x05 \x01(\x0B2\x15.google.chat.v1.GroupB\x03\xE0A\x01H\x00\x127\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x127\x0A\x0Bdelete_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\"^\x0A\x0FMembershipState\x12 \x0A\x1CMEMBERSHIP_STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06JOINED\x10\x01\x12\x0B\x0A\x07INVITED\x10\x02\x12\x10\x0A\x0CNOT_A_MEMBER\x10\x03\"p\x0A\x0EMembershipRole\x12\x1F\x0A\x1BMEMBERSHIP_ROLE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BROLE_MEMBER\x10\x01\x12\x10\x0A\x0CROLE_MANAGER\x10\x02\x12\x1A\x0A\x16ROLE_ASSISTANT_MANAGER\x10\x04:D\xEAAA\x0A\x1Echat.googleapis.com/Membership\x12\x1Fspaces/{space}/members/{member}B\x0C\x0A\x0AmemberType\"\xA5\x01\x0A\x17CreateMembershipRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x12\x1Echat.googleapis.com/Membership\x123\x0A\x0Amembership\x18\x02 \x01(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x02\x12\x1D\x0A\x10use_admin_access\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xA3\x01\x0A\x17UpdateMembershipRequest\x123\x0A\x0Amembership\x18\x01 \x01(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1D\x0A\x10use_admin_access\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xEA\x01\x0A\x16ListMembershipsRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x12\x1Echat.googleapis.com/Membership\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bshow_groups\x18\x06 \x01(\x08B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_invited\x18\x07 \x01(\x08B\x03\xE0A\x01\x12\x1D\x0A\x10use_admin_access\x18\x08 \x01(\x08B\x03\xE0A\x01\"h\x0A\x17ListMembershipsResponse\x124\x0A\x0Bmemberships\x18\x01 \x03(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x06\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"k\x0A\x14GetMembershipRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/Membership\x12\x1D\x0A\x10use_admin_access\x18\x03 \x01(\x08B\x03\xE0A\x01\"n\x0A\x17DeleteMembershipRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/Membership\x12\x1D\x0A\x10use_admin_access\x18\x02 \x01(\x08B\x03\xE0A\x01B\xA8\x01\x0A\x12com.google.chat.v1B\x0FMembershipProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php deleted file mode 100644 index 667e69ec7d11..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php +++ /dev/null @@ -1,39 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9D*\x0A\x1Cgoogle/chat/v1/message.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/apps/card/v1/card.proto\x1A\"google/chat/v1/action_status.proto\x1A\x1Fgoogle/chat/v1/annotation.proto\x1A\x1Fgoogle/chat/v1/attachment.proto\x1A%google/chat/v1/contextual_addon.proto\x1A&google/chat/v1/deletion_metadata.proto\x1A google/chat/v1/matched_url.proto\x1A\x1Dgoogle/chat/v1/reaction.proto\x1A\"google/chat/v1/slash_command.proto\x1A\x1Agoogle/chat/v1/space.proto\x1A\x19google/chat/v1/user.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE9\x0A\x0A\x07Message\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12)\x0A\x06sender\x18\x02 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x03\x127\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x129\x0A\x10last_update_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bdelete_time\x18\x1A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Eformatted_text\x18+ \x01(\x09B\x03\xE0A\x03\x12=\x0A\x05cards\x18\x05 \x03(\x0B2*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x121\x0A\x08cards_v2\x18\x16 \x03(\x0B2\x1A.google.chat.v1.CardWithIdB\x03\xE0A\x01\x124\x0A\x0Bannotations\x18\x0A \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x12&\x0A\x06thread\x18\x0B \x01(\x0B2\x16.google.chat.v1.Thread\x12)\x0A\x05space\x18\x0C \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x03\x12\x1A\x0A\x0Dfallback_text\x18\x0D \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Faction_response\x18\x0E \x01(\x0B2\x1E.google.chat.v1.ActionResponseB\x03\xE0A\x04\x12\x1A\x0A\x0Dargument_text\x18\x0F \x01(\x09B\x03\xE0A\x03\x128\x0A\x0Dslash_command\x18\x11 \x01(\x0B2\x1C.google.chat.v1.SlashCommandB\x03\xE0A\x03\x123\x0A\x0Aattachment\x18\x12 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x01\x124\x0A\x0Bmatched_url\x18\x14 \x01(\x0B2\x1A.google.chat.v1.MatchedUrlB\x03\xE0A\x03\x12\x19\x0A\x0Cthread_reply\x18\x19 \x01(\x08B\x03\xE0A\x03\x12\x13\x0A\x06silent\x18. \x01(\x08B\x03\xE0A\x03\x12'\x0A\x1Aclient_assigned_message_id\x18 \x01(\x09B\x03\xE0A\x01\x12K\x0A\x18emoji_reaction_summaries\x18! \x03(\x0B2\$.google.chat.v1.EmojiReactionSummaryB\x03\xE0A\x03\x12<\x0A\x16private_message_viewer\x18\$ \x01(\x0B2\x14.google.chat.v1.UserB\x06\xE0A\x05\xE0A\x01\x12@\x0A\x11deletion_metadata\x18& \x01(\x0B2 .google.chat.v1.DeletionMetadataB\x03\xE0A\x03\x12K\x0A\x17quoted_message_metadata\x18' \x01(\x0B2%.google.chat.v1.QuotedMessageMetadataB\x03\xE0A\x01\x127\x0A\x0Dattached_gifs\x18* \x03(\x0B2\x1B.google.chat.v1.AttachedGifB\x03\xE0A\x03\x12?\x0A\x11accessory_widgets\x18, \x03(\x0B2\x1F.google.chat.v1.AccessoryWidgetB\x03\xE0A\x01:C\xEAA@\x0A\x1Bchat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\"\x1F\x0A\x0BAttachedGif\x12\x10\x0A\x03uri\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xA5\x04\x0A\x15QuotedMessageMetadata\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x129\x0A\x10last_update_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x12H\x0A\x0Aquote_type\x18\x04 \x01(\x0E2/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x03\xE0A\x01\x12K\x0A\x17quoted_message_snapshot\x18\x05 \x01(\x0B2%.google.chat.v1.QuotedMessageSnapshotB\x03\xE0A\x03\x12B\x0A\x12forwarded_metadata\x18\x06 \x01(\x0B2!.google.chat.v1.ForwardedMetadataB\x03\xE0A\x03\"?\x0A\x09QuoteType\x12\x1A\x0A\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05REPLY\x10\x01\x12\x0B\x0A\x07FORWARD\x10\x02:\x81\x01\xEAA~\x0A)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xC8\x01\x0A\x15QuotedMessageSnapshot\x12\x13\x0A\x06sender\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04text\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eformatted_text\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bannotations\x18\x04 \x03(\x0B2\x1A.google.chat.v1.AnnotationB\x03\xE0A\x03\x124\x0A\x0Battachments\x18\x05 \x03(\x0B2\x1A.google.chat.v1.AttachmentB\x03\xE0A\x03\"f\x0A\x11ForwardedMetadata\x120\x0A\x05space\x18\x01 \x01(\x09B!\xE0A\x03\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1F\x0A\x12space_display_name\x18\x02 \x01(\x09B\x03\xE0A\x03\"v\x0A\x06Thread\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x17\x0A\x0Athread_key\x18\x03 \x01(\x09B\x03\xE0A\x01:@\xEAA=\x0A\x1Achat.googleapis.com/Thread\x12\x1Fspaces/{space}/threads/{thread}\"\xD2\x04\x0A\x0EActionResponse\x12>\x0A\x04type\x18\x01 \x01(\x0E2+.google.chat.v1.ActionResponse.ResponseTypeB\x03\xE0A\x04\x12\x10\x0A\x03url\x18\x02 \x01(\x09B\x03\xE0A\x04\x128\x0A\x0Ddialog_action\x18\x03 \x01(\x0B2\x1C.google.chat.v1.DialogActionB\x03\xE0A\x04\x12I\x0A\x0Eupdated_widget\x18\x04 \x01(\x0B2,.google.chat.v1.ActionResponse.UpdatedWidgetB\x03\xE0A\x04\x1AR\x0A\x0ESelectionItems\x12@\x0A\x05items\x18\x01 \x03(\x0B21.google.apps.card.v1.SelectionInput.SelectionItem\x1Aw\x0A\x0DUpdatedWidget\x12D\x0A\x0Bsuggestions\x18\x01 \x01(\x0B2-.google.chat.v1.ActionResponse.SelectionItemsH\x00\x12\x0E\x0A\x06widget\x18\x02 \x01(\x09B\x10\x0A\x0Eupdated_widget\"\x9B\x01\x0A\x0CResponseType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_MESSAGE\x10\x01\x12\x12\x0A\x0EUPDATE_MESSAGE\x10\x02\x12\x1D\x0A\x19UPDATE_USER_MESSAGE_CARDS\x10\x06\x12\x12\x0A\x0EREQUEST_CONFIG\x10\x03\x12\x0A\x0A\x06DIALOG\x10\x04\x12\x11\x0A\x0DUPDATE_WIDGET\x10\x07\"S\x0A\x0FAccessoryWidget\x126\x0A\x0Bbutton_list\x18\x01 \x01(\x0B2\x1F.google.apps.card.v1.ButtonListH\x00B\x08\x0A\x06action\"F\x0A\x11GetMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\"]\x0A\x14DeleteMessageRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Message\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\x97\x01\x0A\x14UpdateMessageRequest\x12-\x0A\x07message\x18\x01 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x88\x04\x0A\x14CreateMessageRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12-\x0A\x07message\x18\x04 \x01(\x0B2\x17.google.chat.v1.MessageB\x03\xE0A\x02\x12\x19\x0A\x0Athread_key\x18\x06 \x01(\x09B\x05\x18\x01\xE0A\x01\x12\x17\x0A\x0Arequest_id\x18\x07 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x14message_reply_option\x18\x08 \x01(\x0E27.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x03\xE0A\x01\x12\x17\x0A\x0Amessage_id\x18\x09 \x01(\x09B\x03\xE0A\x01\x12b\x0A#create_message_notification_options\x18\x0A \x01(\x0B20.google.chat.v1.CreateMessageNotificationOptionsB\x03\xE0A\x01\"\x7F\x0A\x12MessageReplyOption\x12\$\x0A MESSAGE_REPLY_OPTION_UNSPECIFIED\x10\x00\x12(\x0A\$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\x10\x01\x12\x19\x0A\x15REPLY_MESSAGE_OR_FAIL\x10\x02\"\xF2\x01\x0A CreateMessageNotificationOptions\x12\\\x0A\x11notification_type\x18\x01 \x01(\x0E2A.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\x0A\x10NotificationType\x12\x1A\x0A\x16NOTIFICATION_TYPE_NONE\x10\x00\x12\"\x0A\x1ENOTIFICATION_TYPE_FORCE_NOTIFY\x10\x02\x12\x1C\x0A\x18NOTIFICATION_TYPE_SILENT\x10\x03\"\xC2\x01\x0A\x13ListMessagesRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x12\x1Bchat.googleapis.com/Message\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cshow_deleted\x18\x06 \x01(\x08B\x03\xE0A\x01\"Z\x0A\x14ListMessagesResponse\x12)\x0A\x08messages\x18\x01 \x03(\x0B2\x17.google.chat.v1.Message\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x0CDialogAction\x12-\x0A\x06dialog\x18\x01 \x01(\x0B2\x16.google.chat.v1.DialogB\x03\xE0A\x04H\x00\x128\x0A\x0Daction_status\x18\x02 \x01(\x0B2\x1C.google.chat.v1.ActionStatusB\x03\xE0A\x04B\x08\x0A\x06action\"6\x0A\x06Dialog\x12,\x0A\x04body\x18\x01 \x01(\x0B2\x19.google.apps.card.v1.CardB\x03\xE0A\x04\"F\x0A\x0ACardWithId\x12\x0F\x0A\x07card_id\x18\x01 \x01(\x09\x12'\x0A\x04card\x18\x02 \x01(\x0B2\x19.google.apps.card.v1.CardB\xA5\x01\x0A\x12com.google.chat.v1B\x0CMessageProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php deleted file mode 100644 index ef74ac7668d2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD2\x0F\x0A\x1Dgoogle/chat/v1/reaction.proto\x12\x0Egoogle.chat.v1\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x19google/chat/v1/user.proto\"\xCC\x01\x0A\x08Reaction\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12'\x0A\x04user\x18\x02 \x01(\x0B2\x14.google.chat.v1.UserB\x03\xE0A\x03\x12)\x0A\x05emoji\x18\x03 \x01(\x0B2\x15.google.chat.v1.EmojiB\x03\xE0A\x02:Y\xEAAV\x0A\x1Cchat.googleapis.com/Reaction\x126spaces/{space}/messages/{message}/reactions/{reaction}\"_\x0A\x05Emoji\x12\x16\x0A\x07unicode\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x123\x0A\x0Ccustom_emoji\x18\x02 \x01(\x0B2\x1B.google.chat.v1.CustomEmojiH\x00B\x09\x0A\x07content\"\xED\x02\x0A\x0BCustomEmoji\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x01 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x1A\x0A\x0Aemoji_name\x18\x03 \x01(\x09B\x06\xE0A\x01\xE0A\x05\x12 \x0A\x13temporary_image_uri\x18\x04 \x01(\x09B\x03\xE0A\x03\x12G\x0A\x07payload\x18\x05 \x01(\x0B2..google.chat.v1.CustomEmoji.CustomEmojiPayloadB\x06\xE0A\x04\xE0A\x01\x1AL\x0A\x12CustomEmojiPayload\x12\x1C\x0A\x0Cfile_content\x18\x01 \x01(\x0CB\x06\xE0A\x04\xE0A\x02\x12\x18\x0A\x08filename\x18\x02 \x01(\x09B\x06\xE0A\x04\xE0A\x02:\\\xEAAY\x0A\x1Fchat.googleapis.com/CustomEmoji\x12\x1BcustomEmojis/{custom_emoji}*\x0CcustomEmojis2\x0BcustomEmoji\"v\x0A\x14EmojiReactionSummary\x12)\x0A\x05emoji\x18\x01 \x01(\x0B2\x15.google.chat.v1.EmojiB\x03\xE0A\x03\x12 \x0A\x0Ereaction_count\x18\x02 \x01(\x05B\x03\xE0A\x03H\x00\x88\x01\x01B\x11\x0A\x0F_reaction_count\"~\x0A\x15CreateReactionRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x12\x1Cchat.googleapis.com/Reaction\x12/\x0A\x08reaction\x18\x02 \x01(\x0B2\x18.google.chat.v1.ReactionB\x03\xE0A\x02\"\x92\x01\x0A\x14ListReactionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x12\x1Cchat.googleapis.com/Reaction\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"]\x0A\x15ListReactionsResponse\x12+\x0A\x09reactions\x18\x01 \x03(\x0B2\x18.google.chat.v1.Reaction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"K\x0A\x15DeleteReactionRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cchat.googleapis.com/Reaction\"R\x0A\x18CreateCustomEmojiRequest\x126\x0A\x0Ccustom_emoji\x18\x01 \x01(\x0B2\x1B.google.chat.v1.CustomEmojiB\x03\xE0A\x02\"N\x0A\x15GetCustomEmojiRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fchat.googleapis.com/CustomEmoji\"_\x0A\x17ListCustomEmojisRequest\x12\x16\x0A\x09page_size\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"l\x0A\x18ListCustomEmojisResponse\x127\x0A\x0Dcustom_emojis\x18\x01 \x03(\x0B2\x1B.google.chat.v1.CustomEmojiB\x03\xE0A\x06\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"Q\x0A\x18DeleteCustomEmojiRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fchat.googleapis.com/CustomEmojiB\xA6\x01\x0A\x12com.google.chat.v1B\x0DReactionProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php deleted file mode 100644 index d7efa42c4dba..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Section.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB0\x11\x0A\x1Cgoogle/chat/v1/section.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"\xDE\x02\x0A\x07Section\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x0Asort_order\x18\x03 \x01(\x05\x126\x0A\x04type\x18\x04 \x01(\x0E2#.google.chat.v1.Section.SectionTypeB\x03\xE0A\x02\"\x82\x01\x0A\x0BSectionType\x12\x1C\x0A\x18SECTION_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ECUSTOM_SECTION\x10\x01\x12\x1B\x0A\x17DEFAULT_DIRECT_MESSAGES\x10\x02\x12\x12\x0A\x0EDEFAULT_SPACES\x10\x03\x12\x10\x0A\x0CDEFAULT_APPS\x10\x06:T\xEAAQ\x0A\x1Bchat.googleapis.com/Section\x12\x1Fusers/{user}/sections/{section}*\x08sections2\x07section\"\xCB\x01\x0A\x0BSectionItem\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x122\x0A\x05space\x18\x02 \x01(\x09B!\xE0A\x01\xFAA\x1B\x0A\x19chat.googleapis.com/SpaceH\x00:m\xEAAj\x0A\x1Fchat.googleapis.com/SectionItem\x12,users/{user}/sections/{section}/items/{item}*\x0CsectionItems2\x0BsectionItemB\x06\x0A\x04item\"w\x0A\x14CreateSectionRequest\x120\x0A\x06parent\x18\x01 \x01(\x09B \xE0A\x02\xFAA\x1A\x0A\x18chat.googleapis.com/User\x12-\x0A\x07section\x18\x02 \x01(\x0B2\x17.google.chat.v1.SectionB\x03\xE0A\x02\"I\x0A\x14DeleteSectionRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\"{\x0A\x14UpdateSectionRequest\x12-\x0A\x07section\x18\x01 \x01(\x0B2\x17.google.chat.v1.SectionB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"x\x0A\x13ListSectionsRequest\x120\x0A\x06parent\x18\x01 \x01(\x09B \xE0A\x02\xFAA\x1A\x0A\x18chat.googleapis.com/User\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"Z\x0A\x14ListSectionsResponse\x12)\x0A\x08sections\x18\x01 \x03(\x0B2\x17.google.chat.v1.Section\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xFF\x01\x0A\x16PositionSectionRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\x12\x19\x0A\x0Asort_order\x18\x02 \x01(\x05B\x03\xE0A\x01H\x00\x12Q\x0A\x11relative_position\x18\x03 \x01(\x0E2/.google.chat.v1.PositionSectionRequest.PositionB\x03\xE0A\x01H\x00\"8\x0A\x08Position\x12\x18\x0A\x14POSITION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x07\x0A\x03END\x10\x02B\x0A\x0A\x08position\"C\x0A\x17PositionSectionResponse\x12(\x0A\x07section\x18\x01 \x01(\x0B2\x17.google.chat.v1.Section\"\x94\x01\x0A\x17ListSectionItemsRequest\x123\x0A\x06parent\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"g\x0A\x18ListSectionItemsResponse\x122\x0A\x0Dsection_items\x18\x01 \x03(\x0B2\x1B.google.chat.v1.SectionItem\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8C\x01\x0A\x16MoveSectionItemRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fchat.googleapis.com/SectionItem\x12;\x0A\x0Etarget_section\x18\x02 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bchat.googleapis.com/Section\"L\x0A\x17MoveSectionItemResponse\x121\x0A\x0Csection_item\x18\x01 \x01(\x0B2\x1B.google.chat.v1.SectionItemB\xD0\x01\x0A\x12com.google.chat.v1B\x0CSectionProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1\xEAA(\x0A\x18chat.googleapis.com/User\x12\x0Cusers/{user}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php deleted file mode 100644 index a12ac43956a5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8D\x02\x0A\"google/chat/v1/slash_command.proto\x12\x0Egoogle.chat.v1\"\"\x0A\x0CSlashCommand\x12\x12\x0A\x0Acommand_id\x18\x01 \x01(\x03B\xAA\x01\x0A\x12com.google.chat.v1B\x11SlashCommandProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php deleted file mode 100644 index 91bb34f0165e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x97\$\x0A\x1Agoogle/chat/v1/space.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\"google/chat/v1/history_state.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCD\x16\x0A\x05Space\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12/\x0A\x04type\x18\x02 \x01(\x0E2\x1A.google.chat.v1.Space.TypeB\x05\x18\x01\xE0A\x03\x128\x0A\x0Aspace_type\x18\x0A \x01(\x0E2\x1F.google.chat.v1.Space.SpaceTypeB\x03\xE0A\x01\x12\x1F\x0A\x12single_user_bot_dm\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x17\x0A\x08threaded\x18\x05 \x01(\x08B\x05\x18\x01\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12%\x0A\x15external_user_allowed\x18\x08 \x01(\x08B\x06\xE0A\x05\xE0A\x01\x12M\x0A\x15space_threading_state\x18\x09 \x01(\x0E2).google.chat.v1.Space.SpaceThreadingStateB\x03\xE0A\x03\x12>\x0A\x0Dspace_details\x18\x0B \x01(\x0B2\".google.chat.v1.Space.SpaceDetailsB\x03\xE0A\x01\x12>\x0A\x13space_history_state\x18\x0D \x01(\x0E2\x1C.google.chat.v1.HistoryStateB\x03\xE0A\x01\x12\x18\x0A\x0Bimport_mode\x18\x10 \x01(\x08B\x03\xE0A\x01\x127\x0A\x0Bcreate_time\x18\x11 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\xE0A\x05\xE0A\x01\x129\x0A\x10last_active_time\x18\x12 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1C\x0A\x0Fadmin_installed\x18\x13 \x01(\x08B\x03\xE0A\x03\x12D\x0A\x10membership_count\x18\x14 \x01(\x0B2%.google.chat.v1.Space.MembershipCountB\x03\xE0A\x03\x12B\x0A\x0Faccess_settings\x18\x17 \x01(\x0B2\$.google.chat.v1.Space.AccessSettingsB\x03\xE0A\x01\x12\x1D\x0A\x08customer\x18\x18 \x01(\x09B\x06\xE0A\x05\xE0A\x01H\x01\x88\x01\x01\x12\x16\x0A\x09space_uri\x18\x19 \x01(\x09B\x03\xE0A\x03\x12d\x0A\x1Epredefined_permission_settings\x18\x1A \x01(\x0E22.google.chat.v1.Space.PredefinedPermissionSettingsB\x06\xE0A\x04\xE0A\x01H\x00\x12L\x0A\x13permission_settings\x18\x1B \x01(\x0B2(.google.chat.v1.Space.PermissionSettingsB\x03\xE0A\x01H\x00\x12@\x0A\x17import_mode_expire_time\x18\x1C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1AA\x0A\x0CSpaceDetails\x12\x18\x0A\x0Bdescription\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Aguidelines\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A_\x0A\x0FMembershipCount\x12+\x0A\x1Ejoined_direct_human_user_count\x18\x04 \x01(\x05B\x03\xE0A\x03\x12\x1F\x0A\x12joined_group_count\x18\x05 \x01(\x05B\x03\xE0A\x03\x1A\xC0\x01\x0A\x0EAccessSettings\x12K\x0A\x0Caccess_state\x18\x01 \x01(\x0E20.google.chat.v1.Space.AccessSettings.AccessStateB\x03\xE0A\x03\x12\x15\x0A\x08audience\x18\x03 \x01(\x09B\x03\xE0A\x01\"J\x0A\x0BAccessState\x12\x1C\x0A\x18ACCESS_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PRIVATE\x10\x01\x12\x10\x0A\x0CDISCOVERABLE\x10\x02\x1A\xA8\x06\x0A\x12PermissionSettings\x12T\x0A\x19manage_members_and_groups\x18\x01 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x00\x88\x01\x01\x12O\x0A\x14modify_space_details\x18\x02 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x01\x88\x01\x01\x12I\x0A\x0Etoggle_history\x18\x03 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x02\x88\x01\x01\x12M\x0A\x12use_at_mention_all\x18\x04 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x03\x88\x01\x01\x12F\x0A\x0Bmanage_apps\x18\x05 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x04\x88\x01\x01\x12J\x0A\x0Fmanage_webhooks\x18\x06 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x05\x88\x01\x01\x12H\x0A\x0Dpost_messages\x18\x07 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x03H\x06\x88\x01\x01\x12I\x0A\x0Ereply_messages\x18\x08 \x01(\x0B2'.google.chat.v1.Space.PermissionSettingB\x03\xE0A\x01H\x07\x88\x01\x01B\x1C\x0A\x1A_manage_members_and_groupsB\x17\x0A\x15_modify_space_detailsB\x11\x0A\x0F_toggle_historyB\x15\x0A\x13_use_at_mention_allB\x0E\x0A\x0C_manage_appsB\x12\x0A\x10_manage_webhooksB\x10\x0A\x0E_post_messagesB\x11\x0A\x0F_reply_messages\x1A\x9D\x01\x0A\x11PermissionSetting\x12\x1D\x0A\x10managers_allowed\x18\x01 \x01(\x08B\x03\xE0A\x01\x12,\x0A\x1Aassistant_managers_allowed\x18\x03 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01\x12\x1C\x0A\x0Fmembers_allowed\x18\x02 \x01(\x08B\x03\xE0A\x01B\x1D\x0A\x1B_assistant_managers_allowed\".\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04ROOM\x10\x01\x12\x06\x0A\x02DM\x10\x02\"V\x0A\x09SpaceType\x12\x1A\x0A\x16SPACE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPACE\x10\x01\x12\x0E\x0A\x0AGROUP_CHAT\x10\x02\x12\x12\x0A\x0EDIRECT_MESSAGE\x10\x03\"\x82\x01\x0A\x13SpaceThreadingState\x12%\x0A!SPACE_THREADING_STATE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11THREADED_MESSAGES\x10\x02\x12\x14\x0A\x10GROUPED_MESSAGES\x10\x03\x12\x17\x0A\x13UNTHREADED_MESSAGES\x10\x04\"\x7F\x0A\x1CPredefinedPermissionSettings\x12.\x0A*PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\x0A\x13COLLABORATION_SPACE\x10\x01\x12\x16\x0A\x12ANNOUNCEMENT_SPACE\x10\x02:.\xEAA+\x0A\x19chat.googleapis.com/Space\x12\x0Espaces/{space}B\x1B\x0A\x19space_permission_settingsB\x0B\x0A\x09_customer\"X\x0A\x12CreateSpaceRequest\x12)\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x02\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\"Y\x0A\x11ListSpacesRequest\x12\x16\x0A\x09page_size\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"T\x0A\x12ListSpacesResponse\x12%\x0A\x06spaces\x18\x01 \x03(\x0B2\x15.google.chat.v1.Space\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"a\x0A\x0FGetSpaceRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1D\x0A\x10use_admin_access\x18\x02 \x01(\x08B\x03\xE0A\x01\"-\x0A\x18FindDirectMessageRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"\x8B\x01\x0A\x15FindGroupChatsRequest\x12\x12\x0A\x05users\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12-\x0A\x0Aspace_view\x18\x04 \x01(\x0E2\x19.google.chat.v1.SpaceView\"X\x0A\x16FindGroupChatsResponse\x12%\x0A\x06spaces\x18\x01 \x03(\x0B2\x15.google.chat.v1.Space\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x94\x01\x0A\x12UpdateSpaceRequest\x12)\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1D\x0A\x10use_admin_access\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x81\x01\x0A\x13SearchSpacesRequest\x12\x18\x0A\x10use_admin_access\x18\x01 \x01(\x08\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x12\x0A\x05query\x18\x04 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"j\x0A\x14SearchSpacesResponse\x12%\x0A\x06spaces\x18\x01 \x03(\x0B2\x15.google.chat.v1.Space\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"d\x0A\x12DeleteSpaceRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19chat.googleapis.com/Space\x12\x1D\x0A\x10use_admin_access\x18\x02 \x01(\x08B\x03\xE0A\x01\"M\x0A\x1ACompleteImportSpaceRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19chat.googleapis.com/Space\"C\x0A\x1BCompleteImportSpaceResponse\x12\$\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.Space*c\x0A\x09SpaceView\x12\x1A\x0A\x16SPACE_VIEW_UNSPECIFIED\x10\x00\x12!\x0A\x1DSPACE_VIEW_RESOURCE_NAME_ONLY\x10\x03\x12\x17\x0A\x13SPACE_VIEW_EXPANDED\x10\x04B\xA3\x01\x0A\x12com.google.chat.v1B\x0ASpaceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php deleted file mode 100644 index 1b1aca143bf2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD5\x12\x0A google/chat/v1/space_event.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\"google/chat/v1/event_payload.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCE\x0D\x0A\x0ASpaceEvent\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Aevent_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Aevent_type\x18\x06 \x01(\x09\x12M\x0A\x1Amessage_created_event_data\x18\x0C \x01(\x0B2'.google.chat.v1.MessageCreatedEventDataH\x00\x12M\x0A\x1Amessage_updated_event_data\x18\x0D \x01(\x0B2'.google.chat.v1.MessageUpdatedEventDataH\x00\x12M\x0A\x1Amessage_deleted_event_data\x18\x0E \x01(\x0B2'.google.chat.v1.MessageDeletedEventDataH\x00\x12X\x0A message_batch_created_event_data\x18\x1A \x01(\x0B2,.google.chat.v1.MessageBatchCreatedEventDataH\x00\x12X\x0A message_batch_updated_event_data\x18\x1B \x01(\x0B2,.google.chat.v1.MessageBatchUpdatedEventDataH\x00\x12X\x0A message_batch_deleted_event_data\x18\x1C \x01(\x0B2,.google.chat.v1.MessageBatchDeletedEventDataH\x00\x12I\x0A\x18space_updated_event_data\x18\x0F \x01(\x0B2%.google.chat.v1.SpaceUpdatedEventDataH\x00\x12T\x0A\x1Espace_batch_updated_event_data\x18\x1D \x01(\x0B2*.google.chat.v1.SpaceBatchUpdatedEventDataH\x00\x12S\x0A\x1Dmembership_created_event_data\x18\x11 \x01(\x0B2*.google.chat.v1.MembershipCreatedEventDataH\x00\x12S\x0A\x1Dmembership_updated_event_data\x18\x12 \x01(\x0B2*.google.chat.v1.MembershipUpdatedEventDataH\x00\x12T\x0A\x1Dmembership_deleted_event_data\x18\xDB\x01 \x01(\x0B2*.google.chat.v1.MembershipDeletedEventDataH\x00\x12^\x0A#membership_batch_created_event_data\x18\x1F \x01(\x0B2/.google.chat.v1.MembershipBatchCreatedEventDataH\x00\x12^\x0A#membership_batch_updated_event_data\x18 \x01(\x0B2/.google.chat.v1.MembershipBatchUpdatedEventDataH\x00\x12^\x0A#membership_batch_deleted_event_data\x18! \x01(\x0B2/.google.chat.v1.MembershipBatchDeletedEventDataH\x00\x12O\x0A\x1Breaction_created_event_data\x18\x15 \x01(\x0B2(.google.chat.v1.ReactionCreatedEventDataH\x00\x12O\x0A\x1Breaction_deleted_event_data\x18\x16 \x01(\x0B2(.google.chat.v1.ReactionDeletedEventDataH\x00\x12Z\x0A!reaction_batch_created_event_data\x18\" \x01(\x0B2-.google.chat.v1.ReactionBatchCreatedEventDataH\x00\x12Z\x0A!reaction_batch_deleted_event_data\x18# \x01(\x0B2-.google.chat.v1.ReactionBatchDeletedEventDataH\x00:M\xEAAJ\x0A\x1Echat.googleapis.com/SpaceEvent\x12(spaces/{space}/spaceEvents/{space_event}B\x09\x0A\x07payload\"L\x0A\x14GetSpaceEventRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Echat.googleapis.com/SpaceEvent\"\x96\x01\x0A\x16ListSpaceEventsRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x12\x1Echat.googleapis.com/SpaceEvent\x12\x16\x0A\x09page_size\x18\x05 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x08 \x01(\x09B\x03\xE0A\x02\"d\x0A\x17ListSpaceEventsResponse\x120\x0A\x0Cspace_events\x18\x01 \x03(\x0B2\x1A.google.chat.v1.SpaceEvent\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x9A\x01\x0A\x12com.google.chat.v1B\x0FSpaceEventProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php deleted file mode 100644 index 4e9302c36f03..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceNotificationSetting.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x09\x0A/google/chat/v1/space_notification_setting.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"\xC6\x04\x0A\x18SpaceNotificationSetting\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12_\x0A\x14notification_setting\x18\x02 \x01(\x0E2<.google.chat.v1.SpaceNotificationSetting.NotificationSettingH\x00\x88\x01\x01\x12O\x0A\x0Cmute_setting\x18\x03 \x01(\x0E24.google.chat.v1.SpaceNotificationSetting.MuteSettingH\x01\x88\x01\x01\"r\x0A\x13NotificationSetting\x12\$\x0A NOTIFICATION_SETTING_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ALL\x10\x01\x12\x16\x0A\x12MAIN_CONVERSATIONS\x10\x02\x12\x0B\x0A\x07FOR_YOU\x10\x03\x12\x07\x0A\x03OFF\x10\x04\"C\x0A\x0BMuteSetting\x12\x1C\x0A\x18MUTE_SETTING_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07UNMUTED\x10\x01\x12\x09\x0A\x05MUTED\x10\x02:\x81\x01\xEAA~\x0A,chat.googleapis.com/SpaceNotificationSetting\x124users/{user}/spaces/{space}/spaceNotificationSetting2\x18spaceNotificationSettingB\x17\x0A\x15_notification_settingB\x0F\x0A\x0D_mute_setting\"h\x0A\"GetSpaceNotificationSettingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,chat.googleapis.com/SpaceNotificationSetting\"\xB0\x01\x0A%UpdateSpaceNotificationSettingRequest\x12Q\x0A\x1Aspace_notification_setting\x18\x01 \x01(\x0B2(.google.chat.v1.SpaceNotificationSettingB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02B\xB6\x01\x0A\x12com.google.chat.v1B\x1DSpaceNotificationSettingProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php deleted file mode 100644 index 0a5622b61b98..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF6\x05\x0A%google/chat/v1/space_read_state.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xBC\x01\x0A\x0ESpaceReadState\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x127\x0A\x0Elast_read_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01:c\xEAA`\x0A\"chat.googleapis.com/SpaceReadState\x12*users/{user}/spaces/{space}/spaceReadState2\x0EspaceReadState\"T\x0A\x18GetSpaceReadStateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"chat.googleapis.com/SpaceReadState\"\x92\x01\x0A\x1BUpdateSpaceReadStateRequest\x12=\x0A\x10space_read_state\x18\x01 \x01(\x0B2\x1E.google.chat.v1.SpaceReadStateB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02B\xAC\x01\x0A\x12com.google.chat.v1B\x13SpaceReadStateProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php deleted file mode 100644 index 0ba2a3b2ad00..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB2\x03\x0A google/chat/v1/space_setup.proto\x12\x0Egoogle.chat.v1\x1A\x1Fgoogle/chat/v1/membership.proto\x1A\x1Agoogle/chat/v1/space.proto\"\x8D\x01\x0A\x11SetUpSpaceRequest\x12)\x0A\x05space\x18\x01 \x01(\x0B2\x15.google.chat.v1.SpaceB\x03\xE0A\x02\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bmemberships\x18\x04 \x03(\x0B2\x1A.google.chat.v1.MembershipB\x03\xE0A\x01B\xA8\x01\x0A\x12com.google.chat.v1B\x0FSpaceSetupProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php deleted file mode 100644 index f7e1b4f500f6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD3\x04\x0A&google/chat/v1/thread_read_state.proto\x12\x0Egoogle.chat.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCC\x01\x0A\x0FThreadReadState\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x122\x0A\x0Elast_read_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp:w\xEAAt\x0A#chat.googleapis.com/ThreadReadState\x12internalAddGeneratedFile( - "\x0A\x93\x03\x0A\x19google/chat/v1/user.proto\x12\x0Egoogle.chat.v1\"\xB8\x01\x0A\x04User\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x09domain_id\x18\x06 \x01(\x09\x12'\x0A\x04type\x18\x05 \x01(\x0E2\x19.google.chat.v1.User.Type\x12\x19\x0A\x0Cis_anonymous\x18\x07 \x01(\x08B\x03\xE0A\x03\"0\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05HUMAN\x10\x01\x12\x07\x0A\x03BOT\x10\x02B\xA2\x01\x0A\x12com.google.chat.v1B\x09UserProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php deleted file mode 100644 index f40f12a0087b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Widgets.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD6\x10\x0A\x1Cgoogle/chat/v1/widgets.proto\x12\x0Egoogle.chat.v1\"\xF5\x0E\x0A\x0CWidgetMarkup\x12D\x0A\x0Etext_paragraph\x18\x01 \x01(\x0B2*.google.chat.v1.WidgetMarkup.TextParagraphH\x00\x123\x0A\x05image\x18\x02 \x01(\x0B2\".google.chat.v1.WidgetMarkup.ImageH\x00\x12:\x0A\x09key_value\x18\x03 \x01(\x0B2%.google.chat.v1.WidgetMarkup.KeyValueH\x00\x124\x0A\x07buttons\x18\x06 \x03(\x0B2#.google.chat.v1.WidgetMarkup.Button\x1A\x1D\x0A\x0DTextParagraph\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x1A\x92\x01\x0A\x06Button\x12>\x0A\x0Btext_button\x18\x01 \x01(\x0B2'.google.chat.v1.WidgetMarkup.TextButtonH\x00\x12@\x0A\x0Cimage_button\x18\x02 \x01(\x0B2(.google.chat.v1.WidgetMarkup.ImageButtonH\x00B\x06\x0A\x04type\x1AR\x0A\x0ATextButton\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x1A\xA9\x02\x0A\x08KeyValue\x121\x0A\x04icon\x18\x01 \x01(\x0E2!.google.chat.v1.WidgetMarkup.IconH\x00\x12\x12\x0A\x08icon_url\x18\x02 \x01(\x09H\x00\x12\x11\x0A\x09top_label\x18\x03 \x01(\x09\x12\x0F\x0A\x07content\x18\x04 \x01(\x09\x12\x19\x0A\x11content_multiline\x18\x09 \x01(\x08\x12\x14\x0A\x0Cbottom_label\x18\x05 \x01(\x09\x126\x0A\x08on_click\x18\x06 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x125\x0A\x06button\x18\x07 \x01(\x0B2#.google.chat.v1.WidgetMarkup.ButtonH\x01B\x07\x0A\x05iconsB\x09\x0A\x07control\x1Ah\x0A\x05Image\x12\x11\x0A\x09image_url\x18\x01 \x01(\x09\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x12\x14\x0A\x0Caspect_ratio\x18\x03 \x01(\x01\x1A\xA3\x01\x0A\x0BImageButton\x121\x0A\x04icon\x18\x01 \x01(\x0E2!.google.chat.v1.WidgetMarkup.IconH\x00\x12\x12\x0A\x08icon_url\x18\x03 \x01(\x09H\x00\x126\x0A\x08on_click\x18\x02 \x01(\x0B2\$.google.chat.v1.WidgetMarkup.OnClick\x12\x0C\x0A\x04name\x18\x04 \x01(\x09B\x07\x0A\x05icons\x1A\x88\x01\x0A\x07OnClick\x129\x0A\x06action\x18\x01 \x01(\x0B2'.google.chat.v1.WidgetMarkup.FormActionH\x00\x12:\x0A\x09open_link\x18\x02 \x01(\x0B2%.google.chat.v1.WidgetMarkup.OpenLinkH\x00B\x06\x0A\x04data\x1A\x17\x0A\x08OpenLink\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x1A\xA4\x01\x0A\x0AFormAction\x12\x1A\x0A\x12action_method_name\x18\x01 \x01(\x09\x12K\x0A\x0Aparameters\x18\x02 \x03(\x0B27.google.chat.v1.WidgetMarkup.FormAction.ActionParameter\x1A-\x0A\x0FActionParameter\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"\xE0\x03\x0A\x04Icon\x12\x14\x0A\x10ICON_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08AIRPLANE\x10\x01\x12\x0C\x0A\x08BOOKMARK\x10\x1A\x12\x07\x0A\x03BUS\x10\x19\x12\x07\x0A\x03CAR\x10\x09\x12\x09\x0A\x05CLOCK\x10\x02\x12\x1C\x0A\x18CONFIRMATION_NUMBER_ICON\x10\x0C\x12\x0A\x0A\x06DOLLAR\x10\x0E\x12\x0F\x0A\x0BDESCRIPTION\x10\x1B\x12\x09\x0A\x05EMAIL\x10\x0A\x12\x13\x0A\x0FEVENT_PERFORMER\x10\x14\x12\x0E\x0A\x0AEVENT_SEAT\x10\x15\x12\x12\x0A\x0EFLIGHT_ARRIVAL\x10\x10\x12\x14\x0A\x10FLIGHT_DEPARTURE\x10\x0F\x12\x09\x0A\x05HOTEL\x10\x06\x12\x13\x0A\x0FHOTEL_ROOM_TYPE\x10\x11\x12\x0A\x0A\x06INVITE\x10\x13\x12\x0B\x0A\x07MAP_PIN\x10\x03\x12\x0E\x0A\x0AMEMBERSHIP\x10\x18\x12\x13\x0A\x0FMULTIPLE_PEOPLE\x10\x12\x12\x09\x0A\x05OFFER\x10\x1E\x12\x0A\x0A\x06PERSON\x10\x0B\x12\x09\x0A\x05PHONE\x10\x0D\x12\x13\x0A\x0FRESTAURANT_ICON\x10\x07\x12\x11\x0A\x0DSHOPPING_CART\x10\x08\x12\x08\x0A\x04STAR\x10\x05\x12\x09\x0A\x05STORE\x10\x16\x12\x0A\x0A\x06TICKET\x10\x04\x12\x09\x0A\x05TRAIN\x10\x17\x12\x10\x0A\x0CVIDEO_CAMERA\x10\x1C\x12\x0E\x0A\x0AVIDEO_PLAY\x10\x1DB\x06\x0A\x04dataB\xA5\x01\x0A\x12com.google.chat.v1B\x0CWidgetsProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xA2\x02\x0BDYNAPIProto\xAA\x02\x13Google.Apps.Chat.V1\xCA\x02\x13Google\\Apps\\Chat\\V1\xEA\x02\x16Google::Apps::Chat::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php deleted file mode 100644 index 3a80593f7a77..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AccessoryWidget.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.AccessoryWidget - */ -class AccessoryWidget extends \Google\Protobuf\Internal\Message -{ - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\ButtonList $button_list - * A list of buttons. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * A list of buttons. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 1; - * @return \Google\Apps\Card\V1\ButtonList|null - */ - public function getButtonList() - { - return $this->readOneof(1); - } - - public function hasButtonList() - { - return $this->hasOneof(1); - } - - /** - * A list of buttons. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 1; - * @param \Google\Apps\Card\V1\ButtonList $var - * @return $this - */ - public function setButtonList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php deleted file mode 100644 index bd7ee440094c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php +++ /dev/null @@ -1,201 +0,0 @@ -google.chat.v1.ActionResponse - */ -class ActionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. The type of Chat app response. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $type = 0; - /** - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $url = ''; - /** - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * - * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $dialog_action = null; - /** - * Input only. The response of the updated widget. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $updated_widget = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Input only. The type of Chat app response. - * @type string $url - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * @type \Google\Apps\Chat\V1\DialogAction $dialog_action - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * @type \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget $updated_widget - * Input only. The response of the updated widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Input only. The type of Chat app response. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Input only. The type of Chat app response. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\ActionResponse\ResponseType::class); - $this->type = $var; - - return $this; - } - - /** - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * - * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\DialogAction|null - */ - public function getDialogAction() - { - return $this->dialog_action; - } - - public function hasDialogAction() - { - return isset($this->dialog_action); - } - - public function clearDialogAction() - { - unset($this->dialog_action); - } - - /** - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * - * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\DialogAction $var - * @return $this - */ - public function setDialogAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DialogAction::class); - $this->dialog_action = $var; - - return $this; - } - - /** - * Input only. The response of the updated widget. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget|null - */ - public function getUpdatedWidget() - { - return $this->updated_widget; - } - - public function hasUpdatedWidget() - { - return isset($this->updated_widget); - } - - public function clearUpdatedWidget() - { - unset($this->updated_widget); - } - - /** - * Input only. The response of the updated widget. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget $var - * @return $this - */ - public function setUpdatedWidget($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget::class); - $this->updated_widget = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php deleted file mode 100644 index eda2725965f2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php +++ /dev/null @@ -1,93 +0,0 @@ -google.chat.v1.ActionResponse.ResponseType - */ -class ResponseType -{ - /** - * Default type that's handled as `NEW_MESSAGE`. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Post as a new message in the topic. - * - * Generated from protobuf enum NEW_MESSAGE = 1; - */ - const NEW_MESSAGE = 1; - /** - * Update the Chat app's message. This is only permitted on a `CARD_CLICKED` - * event where the message sender type is `BOT`. - * - * Generated from protobuf enum UPDATE_MESSAGE = 2; - */ - const UPDATE_MESSAGE = 2; - /** - * Update the cards on a user's message. This is only permitted as a - * response to a `MESSAGE` event with a matched url, or a `CARD_CLICKED` - * event where the message sender type is `HUMAN`. Text is ignored. - * - * Generated from protobuf enum UPDATE_USER_MESSAGE_CARDS = 6; - */ - const UPDATE_USER_MESSAGE_CARDS = 6; - /** - * Privately ask the user for additional authentication or configuration. - * - * Generated from protobuf enum REQUEST_CONFIG = 3; - */ - const REQUEST_CONFIG = 3; - /** - * Presents a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * - * Generated from protobuf enum DIALOG = 4; - */ - const DIALOG = 4; - /** - * Widget text autocomplete options query. - * - * Generated from protobuf enum UPDATE_WIDGET = 7; - */ - const UPDATE_WIDGET = 7; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::NEW_MESSAGE => 'NEW_MESSAGE', - self::UPDATE_MESSAGE => 'UPDATE_MESSAGE', - self::UPDATE_USER_MESSAGE_CARDS => 'UPDATE_USER_MESSAGE_CARDS', - self::REQUEST_CONFIG => 'REQUEST_CONFIG', - self::DIALOG => 'DIALOG', - self::UPDATE_WIDGET => 'UPDATE_WIDGET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php deleted file mode 100644 index 9687280ca122..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.ActionResponse.SelectionItems - */ -class SelectionItems extends \Google\Protobuf\Internal\Message -{ - /** - * An array of the SelectionItem objects. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $items - * An array of the SelectionItem objects. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * An array of the SelectionItem objects. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; - * @return RepeatedField<\Google\Apps\Card\V1\SelectionInput\SelectionItem> - */ - public function getItems() - { - return $this->items; - } - - /** - * An array of the SelectionItem objects. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; - * @param \Google\Apps\Card\V1\SelectionInput\SelectionItem[] $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\SelectionInput\SelectionItem::class); - $this->items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php deleted file mode 100644 index 83e0550a5cd5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php +++ /dev/null @@ -1,114 +0,0 @@ -google.chat.v1.ActionResponse.UpdatedWidget - */ -class UpdatedWidget extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * - * Generated from protobuf field string widget = 2; - */ - protected $widget = ''; - protected $updated_widget; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\ActionResponse\SelectionItems $suggestions - * List of widget autocomplete results - * @type string $widget - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * List of widget autocomplete results - * - * Generated from protobuf field .google.chat.v1.ActionResponse.SelectionItems suggestions = 1; - * @return \Google\Apps\Chat\V1\ActionResponse\SelectionItems|null - */ - public function getSuggestions() - { - return $this->readOneof(1); - } - - public function hasSuggestions() - { - return $this->hasOneof(1); - } - - /** - * List of widget autocomplete results - * - * Generated from protobuf field .google.chat.v1.ActionResponse.SelectionItems suggestions = 1; - * @param \Google\Apps\Chat\V1\ActionResponse\SelectionItems $var - * @return $this - */ - public function setSuggestions($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse\SelectionItems::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * - * Generated from protobuf field string widget = 2; - * @return string - */ - public function getWidget() - { - return $this->widget; - } - - /** - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * - * Generated from protobuf field string widget = 2; - * @param string $var - * @return $this - */ - public function setWidget($var) - { - GPBUtil::checkString($var, True); - $this->widget = $var; - - return $this; - } - - /** - * @return string - */ - public function getUpdatedWidget() - { - return $this->whichOneof("updated_widget"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php deleted file mode 100644 index a7e884542f1d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php +++ /dev/null @@ -1,106 +0,0 @@ -google.chat.v1.ActionStatus - */ -class ActionStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The status code. - * - * Generated from protobuf field .google.rpc.Code status_code = 1; - */ - protected $status_code = 0; - /** - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * - * Generated from protobuf field string user_facing_message = 2; - */ - protected $user_facing_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $status_code - * The status code. - * @type string $user_facing_message - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ActionStatus::initOnce(); - parent::__construct($data); - } - - /** - * The status code. - * - * Generated from protobuf field .google.rpc.Code status_code = 1; - * @return int - */ - public function getStatusCode() - { - return $this->status_code; - } - - /** - * The status code. - * - * Generated from protobuf field .google.rpc.Code status_code = 1; - * @param int $var - * @return $this - */ - public function setStatusCode($var) - { - GPBUtil::checkEnum($var, \Google\Rpc\Code::class); - $this->status_code = $var; - - return $this; - } - - /** - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * - * Generated from protobuf field string user_facing_message = 2; - * @return string - */ - public function getUserFacingMessage() - { - return $this->user_facing_message; - } - - /** - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * - * Generated from protobuf field string user_facing_message = 2; - * @param string $var - * @return $this - */ - public function setUserFacingMessage($var) - { - GPBUtil::checkString($var, True); - $this->user_facing_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php deleted file mode 100644 index f6b4b05578bc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php +++ /dev/null @@ -1,319 +0,0 @@ -google.chat.v1.Annotation - */ -class Annotation extends \Google\Protobuf\Internal\Message -{ - /** - * The type of this annotation. - * - * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; - */ - protected $type = 0; - /** - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * - * Generated from protobuf field optional int32 start_index = 2; - */ - protected $start_index = null; - /** - * Length of the substring in the plain-text message body this annotation - * corresponds to. If not present, indicates a length of 0. - * - * Generated from protobuf field int32 length = 3; - */ - protected $length = 0; - protected $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of this annotation. - * @type int $start_index - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * @type int $length - * Length of the substring in the plain-text message body this annotation - * corresponds to. If not present, indicates a length of 0. - * @type \Google\Apps\Chat\V1\UserMentionMetadata $user_mention - * The metadata of user mention. - * @type \Google\Apps\Chat\V1\SlashCommandMetadata $slash_command - * The metadata for a slash command. - * @type \Google\Apps\Chat\V1\RichLinkMetadata $rich_link_metadata - * The metadata for a rich link. - * @type \Google\Apps\Chat\V1\CustomEmojiMetadata $custom_emoji_metadata - * The metadata for a custom emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The type of this annotation. - * - * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of this annotation. - * - * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\AnnotationType::class); - $this->type = $var; - - return $this; - } - - /** - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * - * Generated from protobuf field optional int32 start_index = 2; - * @return int - */ - public function getStartIndex() - { - return isset($this->start_index) ? $this->start_index : 0; - } - - public function hasStartIndex() - { - return isset($this->start_index); - } - - public function clearStartIndex() - { - unset($this->start_index); - } - - /** - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * - * Generated from protobuf field optional int32 start_index = 2; - * @param int $var - * @return $this - */ - public function setStartIndex($var) - { - GPBUtil::checkInt32($var); - $this->start_index = $var; - - return $this; - } - - /** - * Length of the substring in the plain-text message body this annotation - * corresponds to. If not present, indicates a length of 0. - * - * Generated from protobuf field int32 length = 3; - * @return int - */ - public function getLength() - { - return $this->length; - } - - /** - * Length of the substring in the plain-text message body this annotation - * corresponds to. If not present, indicates a length of 0. - * - * Generated from protobuf field int32 length = 3; - * @param int $var - * @return $this - */ - public function setLength($var) - { - GPBUtil::checkInt32($var); - $this->length = $var; - - return $this; - } - - /** - * The metadata of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata user_mention = 4; - * @return \Google\Apps\Chat\V1\UserMentionMetadata|null - */ - public function getUserMention() - { - return $this->readOneof(4); - } - - public function hasUserMention() - { - return $this->hasOneof(4); - } - - /** - * The metadata of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata user_mention = 4; - * @param \Google\Apps\Chat\V1\UserMentionMetadata $var - * @return $this - */ - public function setUserMention($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\UserMentionMetadata::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The metadata for a slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata slash_command = 5; - * @return \Google\Apps\Chat\V1\SlashCommandMetadata|null - */ - public function getSlashCommand() - { - return $this->readOneof(5); - } - - public function hasSlashCommand() - { - return $this->hasOneof(5); - } - - /** - * The metadata for a slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata slash_command = 5; - * @param \Google\Apps\Chat\V1\SlashCommandMetadata $var - * @return $this - */ - public function setSlashCommand($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SlashCommandMetadata::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The metadata for a rich link. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata rich_link_metadata = 6; - * @return \Google\Apps\Chat\V1\RichLinkMetadata|null - */ - public function getRichLinkMetadata() - { - return $this->readOneof(6); - } - - public function hasRichLinkMetadata() - { - return $this->hasOneof(6); - } - - /** - * The metadata for a rich link. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata rich_link_metadata = 6; - * @param \Google\Apps\Chat\V1\RichLinkMetadata $var - * @return $this - */ - public function setRichLinkMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\RichLinkMetadata::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The metadata for a custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; - * @return \Google\Apps\Chat\V1\CustomEmojiMetadata|null - */ - public function getCustomEmojiMetadata() - { - return $this->readOneof(7); - } - - public function hasCustomEmojiMetadata() - { - return $this->hasOneof(7); - } - - /** - * The metadata for a custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; - * @param \Google\Apps\Chat\V1\CustomEmojiMetadata $var - * @return $this - */ - public function setCustomEmojiMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmojiMetadata::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getMetadata() - { - return $this->whichOneof("metadata"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php deleted file mode 100644 index a7e8ec8531bb..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.chat.v1.AnnotationType - */ -class AnnotationType -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum ANNOTATION_TYPE_UNSPECIFIED = 0; - */ - const ANNOTATION_TYPE_UNSPECIFIED = 0; - /** - * A user is mentioned. - * - * Generated from protobuf enum USER_MENTION = 1; - */ - const USER_MENTION = 1; - /** - * A slash command is invoked. - * - * Generated from protobuf enum SLASH_COMMAND = 2; - */ - const SLASH_COMMAND = 2; - /** - * A rich link annotation. - * - * Generated from protobuf enum RICH_LINK = 3; - */ - const RICH_LINK = 3; - /** - * A custom emoji annotation. - * - * Generated from protobuf enum CUSTOM_EMOJI = 4; - */ - const CUSTOM_EMOJI = 4; - - private static $valueToName = [ - self::ANNOTATION_TYPE_UNSPECIFIED => 'ANNOTATION_TYPE_UNSPECIFIED', - self::USER_MENTION => 'USER_MENTION', - self::SLASH_COMMAND => 'SLASH_COMMAND', - self::RICH_LINK => 'RICH_LINK', - self::CUSTOM_EMOJI => 'CUSTOM_EMOJI', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php deleted file mode 100644 index d9fee462c44c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.AttachedGif - */ -class AttachedGif extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The URL that hosts the GIF image. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Output only. The URL that hosts the GIF image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The URL that hosts the GIF image. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Output only. The URL that hosts the GIF image. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php deleted file mode 100644 index 988d9ff3f73b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php +++ /dev/null @@ -1,341 +0,0 @@ -google.chat.v1.Attachment - */ -class Attachment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the attachment. - * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The original file name for the content, not the full path. - * - * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $content_name = ''; - /** - * Output only. The content type (MIME type) of the file. - * - * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $content_type = ''; - /** - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $thumbnail_uri = ''; - /** - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $download_uri = ''; - /** - * Output only. The source of the attachment. - * - * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source = 0; - protected $data_ref; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the attachment. - * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. - * @type string $content_name - * Output only. The original file name for the content, not the full path. - * @type string $content_type - * Output only. The content type (MIME type) of the file. - * @type \Google\Apps\Chat\V1\AttachmentDataRef $attachment_data_ref - * Optional. A reference to the attachment data. This field is used to - * create or update messages with attachments, or with the media API to - * download the attachment data. - * @type \Google\Apps\Chat\V1\DriveDataRef $drive_data_ref - * Output only. A reference to the Google Drive attachment. This field is - * used with the Google Drive API. - * @type string $thumbnail_uri - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * @type string $download_uri - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * @type int $source - * Output only. The source of the attachment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the attachment. - * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the attachment. - * Format: `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The original file name for the content, not the full path. - * - * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContentName() - { - return $this->content_name; - } - - /** - * Output only. The original file name for the content, not the full path. - * - * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContentName($var) - { - GPBUtil::checkString($var, True); - $this->content_name = $var; - - return $this; - } - - /** - * Output only. The content type (MIME type) of the file. - * - * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * Output only. The content type (MIME type) of the file. - * - * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkString($var, True); - $this->content_type = $var; - - return $this; - } - - /** - * Optional. A reference to the attachment data. This field is used to - * create or update messages with attachments, or with the media API to - * download the attachment data. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\AttachmentDataRef|null - */ - public function getAttachmentDataRef() - { - return $this->readOneof(4); - } - - public function hasAttachmentDataRef() - { - return $this->hasOneof(4); - } - - /** - * Optional. A reference to the attachment data. This field is used to - * create or update messages with attachments, or with the media API to - * download the attachment data. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\AttachmentDataRef $var - * @return $this - */ - public function setAttachmentDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\AttachmentDataRef::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. A reference to the Google Drive attachment. This field is - * used with the Google Drive API. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\DriveDataRef|null - */ - public function getDriveDataRef() - { - return $this->readOneof(7); - } - - public function hasDriveDataRef() - { - return $this->hasOneof(7); - } - - /** - * Output only. A reference to the Google Drive attachment. This field is - * used with the Google Drive API. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\DriveDataRef $var - * @return $this - */ - public function setDriveDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveDataRef::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getThumbnailUri() - { - return $this->thumbnail_uri; - } - - /** - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setThumbnailUri($var) - { - GPBUtil::checkString($var, True); - $this->thumbnail_uri = $var; - - return $this; - } - - /** - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDownloadUri() - { - return $this->download_uri; - } - - /** - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDownloadUri($var) - { - GPBUtil::checkString($var, True); - $this->download_uri = $var; - - return $this; - } - - /** - * Output only. The source of the attachment. - * - * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSource() - { - return $this->source; - } - - /** - * Output only. The source of the attachment. - * - * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Attachment\Source::class); - $this->source = $var; - - return $this; - } - - /** - * @return string - */ - public function getDataRef() - { - return $this->whichOneof("data_ref"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php deleted file mode 100644 index b12691b35fa6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php +++ /dev/null @@ -1,61 +0,0 @@ -google.chat.v1.Attachment.Source - */ -class Source -{ - /** - * Reserved. - * - * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; - */ - const SOURCE_UNSPECIFIED = 0; - /** - * The file is a Google Drive file. - * - * Generated from protobuf enum DRIVE_FILE = 1; - */ - const DRIVE_FILE = 1; - /** - * The file is uploaded to Chat. - * - * Generated from protobuf enum UPLOADED_CONTENT = 2; - */ - const UPLOADED_CONTENT = 2; - - private static $valueToName = [ - self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', - self::DRIVE_FILE => 'DRIVE_FILE', - self::UPLOADED_CONTENT => 'UPLOADED_CONTENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php deleted file mode 100644 index 3c3bfa160c86..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php +++ /dev/null @@ -1,113 +0,0 @@ -google.chat.v1.AttachmentDataRef - */ -class AttachmentDataRef extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource name of the attachment data. This field is used with - * the media API to download the attachment data. - * - * Generated from protobuf field string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_name = ''; - /** - * Optional. Opaque token containing a reference to an uploaded attachment. - * Treated by clients as an opaque string and used to create or update Chat - * messages with attachments. - * - * Generated from protobuf field string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $attachment_upload_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_name - * Optional. The resource name of the attachment data. This field is used with - * the media API to download the attachment data. - * @type string $attachment_upload_token - * Optional. Opaque token containing a reference to an uploaded attachment. - * Treated by clients as an opaque string and used to create or update Chat - * messages with attachments. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource name of the attachment data. This field is used with - * the media API to download the attachment data. - * - * Generated from protobuf field string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * Optional. The resource name of the attachment data. This field is used with - * the media API to download the attachment data. - * - * Generated from protobuf field string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Optional. Opaque token containing a reference to an uploaded attachment. - * Treated by clients as an opaque string and used to create or update Chat - * messages with attachments. - * - * Generated from protobuf field string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAttachmentUploadToken() - { - return $this->attachment_upload_token; - } - - /** - * Optional. Opaque token containing a reference to an uploaded attachment. - * Treated by clients as an opaque string and used to create or update Chat - * messages with attachments. - * - * Generated from protobuf field string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAttachmentUploadToken($var) - { - GPBUtil::checkString($var, True); - $this->attachment_upload_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php deleted file mode 100644 index 64c2af587a40..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CalendarEventLinkData.php +++ /dev/null @@ -1,117 +0,0 @@ -google.chat.v1.CalendarEventLinkData - */ -class CalendarEventLinkData extends \Google\Protobuf\Internal\Message -{ - /** - * The [Calendar - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) - * of the linked Calendar. - * - * Generated from protobuf field string calendar_id = 1; - */ - protected $calendar_id = ''; - /** - * The [Event - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) - * of the linked Calendar event. - * - * Generated from protobuf field string event_id = 2; - */ - protected $event_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $calendar_id - * The [Calendar - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) - * of the linked Calendar. - * @type string $event_id - * The [Event - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) - * of the linked Calendar event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The [Calendar - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) - * of the linked Calendar. - * - * Generated from protobuf field string calendar_id = 1; - * @return string - */ - public function getCalendarId() - { - return $this->calendar_id; - } - - /** - * The [Calendar - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) - * of the linked Calendar. - * - * Generated from protobuf field string calendar_id = 1; - * @param string $var - * @return $this - */ - public function setCalendarId($var) - { - GPBUtil::checkString($var, True); - $this->calendar_id = $var; - - return $this; - } - - /** - * The [Event - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) - * of the linked Calendar event. - * - * Generated from protobuf field string event_id = 2; - * @return string - */ - public function getEventId() - { - return $this->event_id; - } - - /** - * The [Event - * identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) - * of the linked Calendar event. - * - * Generated from protobuf field string event_id = 2; - * @param string $var - * @return $this - */ - public function setEventId($var) - { - GPBUtil::checkString($var, True); - $this->event_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php deleted file mode 100644 index 2cb476ce19f7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php +++ /dev/null @@ -1,121 +0,0 @@ -google.chat.v1.CardWithId - */ -class CardWithId extends \Google\Protobuf\Internal\Message -{ - /** - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * - * Generated from protobuf field string card_id = 1; - */ - protected $card_id = ''; - /** - * A card. Maximum size is 32 KB. - * - * Generated from protobuf field .google.apps.card.v1.Card card = 2; - */ - protected $card = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $card_id - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * @type \Google\Apps\Card\V1\Card $card - * A card. Maximum size is 32 KB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * - * Generated from protobuf field string card_id = 1; - * @return string - */ - public function getCardId() - { - return $this->card_id; - } - - /** - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * - * Generated from protobuf field string card_id = 1; - * @param string $var - * @return $this - */ - public function setCardId($var) - { - GPBUtil::checkString($var, True); - $this->card_id = $var; - - return $this; - } - - /** - * A card. Maximum size is 32 KB. - * - * Generated from protobuf field .google.apps.card.v1.Card card = 2; - * @return \Google\Apps\Card\V1\Card|null - */ - public function getCard() - { - return $this->card; - } - - public function hasCard() - { - return isset($this->card); - } - - public function clearCard() - { - unset($this->card); - } - - /** - * A card. Maximum size is 32 KB. - * - * Generated from protobuf field .google.apps.card.v1.Card card = 2; - * @param \Google\Apps\Card\V1\Card $var - * @return $this - */ - public function setCard($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); - $this->card = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php deleted file mode 100644 index 41a2a747b168..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php +++ /dev/null @@ -1,147 +0,0 @@ -google.chat.v1.ChatSpaceLinkData - */ -class ChatSpaceLinkData extends \Google\Protobuf\Internal\Message -{ - /** - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { - */ - protected $space = ''; - /** - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { - */ - protected $thread = ''; - /** - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $space - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * @type string $thread - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * @type string $message - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getSpace() - { - return $this->space; - } - - /** - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkString($var, True); - $this->space = $var; - - return $this; - } - - /** - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getThread() - { - return $this->thread; - } - - /** - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setThread($var) - { - GPBUtil::checkString($var, True); - $this->thread = $var; - - return $this; - } - - /** - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php deleted file mode 100644 index 4b285bea2fbd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.chat.v1.CompleteImportSpaceRequest - */ -class CompleteImportSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php deleted file mode 100644 index 272e3546b607..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.CompleteImportSpaceResponse - */ -class CompleteImportSpaceResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The import mode space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - */ - protected $space = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * The import mode space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * The import mode space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * The import mode space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php deleted file mode 100644 index 6077a074c001..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php +++ /dev/null @@ -1,33 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup - */ -class ContextualAddOnMarkup extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php deleted file mode 100644 index 4dcfb95e45db..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php +++ /dev/null @@ -1,180 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card - */ -class Card extends \Google\Protobuf\Internal\Message -{ - /** - * The header of the card. A header usually contains a title and an image. - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; - */ - protected $header = null; - /** - * Sections are separated by a line divider. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; - */ - private $sections; - /** - * The actions of this card. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; - */ - private $card_actions; - /** - * Name of the card. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader $header - * The header of the card. A header usually contains a title and an image. - * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section[] $sections - * Sections are separated by a line divider. - * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction[] $card_actions - * The actions of this card. - * @type string $name - * Name of the card. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The header of the card. A header usually contains a title and an image. - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; - * @return \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The header of the card. A header usually contains a title and an image. - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; - * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Sections are separated by a line divider. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; - * @return RepeatedField<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section> - */ - public function getSections() - { - return $this->sections; - } - - /** - * Sections are separated by a line divider. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; - * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section[] $var - * @return $this - */ - public function setSections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section::class); - $this->sections = $arr; - - return $this; - } - - /** - * The actions of this card. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; - * @return RepeatedField<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction> - */ - public function getCardActions() - { - return $this->card_actions; - } - - /** - * The actions of this card. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; - * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction[] $var - * @return $this - */ - public function setCardActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction::class); - $this->card_actions = $arr; - - return $this; - } - - /** - * Name of the card. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the card. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php deleted file mode 100644 index c387e1e551b5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php +++ /dev/null @@ -1,115 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.CardAction - */ -class CardAction extends \Google\Protobuf\Internal\Message -{ - /** - * The label used to be displayed in the action menu item. - * - * Generated from protobuf field string action_label = 1; - */ - protected $action_label = ''; - /** - * The onclick action for this action item. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $action_label - * The label used to be displayed in the action menu item. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The onclick action for this action item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The label used to be displayed in the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @return string - */ - public function getActionLabel() - { - return $this->action_label; - } - - /** - * The label used to be displayed in the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @param string $var - * @return $this - */ - public function setActionLabel($var) - { - GPBUtil::checkString($var, True); - $this->action_label = $var; - - return $this; - } - - /** - * The onclick action for this action item. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The onclick action for this action item. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php deleted file mode 100644 index 6829b3f87bb4..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php +++ /dev/null @@ -1,175 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.CardHeader - */ -class CardHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * The subtitle of the card header. - * - * Generated from protobuf field string subtitle = 2; - */ - protected $subtitle = ''; - /** - * The image's type (for example, square border or circular border). - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; - */ - protected $image_style = 0; - /** - * The URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - */ - protected $image_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * @type string $subtitle - * The subtitle of the card header. - * @type int $image_style - * The image's type (for example, square border or circular border). - * @type string $image_url - * The URL of the image in the card header. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The subtitle of the card header. - * - * Generated from protobuf field string subtitle = 2; - * @return string - */ - public function getSubtitle() - { - return $this->subtitle; - } - - /** - * The subtitle of the card header. - * - * Generated from protobuf field string subtitle = 2; - * @param string $var - * @return $this - */ - public function setSubtitle($var) - { - GPBUtil::checkString($var, True); - $this->subtitle = $var; - - return $this; - } - - /** - * The image's type (for example, square border or circular border). - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; - * @return int - */ - public function getImageStyle() - { - return $this->image_style; - } - - /** - * The image's type (for example, square border or circular border). - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; - * @param int $var - * @return $this - */ - public function setImageStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader\ImageStyle::class); - $this->image_style = $var; - - return $this; - } - - /** - * The URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php deleted file mode 100644 index 35a223fa693d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php +++ /dev/null @@ -1,57 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle - */ -class ImageStyle -{ - /** - * Generated from protobuf enum IMAGE_STYLE_UNSPECIFIED = 0; - */ - const IMAGE_STYLE_UNSPECIFIED = 0; - /** - * Square border. - * - * Generated from protobuf enum IMAGE = 1; - */ - const IMAGE = 1; - /** - * Circular border. - * - * Generated from protobuf enum AVATAR = 2; - */ - const AVATAR = 2; - - private static $valueToName = [ - self::IMAGE_STYLE_UNSPECIFIED => 'IMAGE_STYLE_UNSPECIFIED', - self::IMAGE => 'IMAGE', - self::AVATAR => 'AVATAR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php deleted file mode 100644 index 0cf8d98314f6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php +++ /dev/null @@ -1,136 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.Section - */ -class Section extends \Google\Protobuf\Internal\Message -{ - /** - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - */ - protected $header = ''; - /** - * A section must contain at least one widget. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; - */ - private $widgets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $header - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type \Google\Apps\Chat\V1\WidgetMarkup[] $widgets - * A section must contain at least one widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @return string - */ - public function getHeader() - { - return $this->header; - } - - /** - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @param string $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkString($var, True); - $this->header = $var; - - return $this; - } - - /** - * A section must contain at least one widget. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; - * @return RepeatedField<\Google\Apps\Chat\V1\WidgetMarkup> - */ - public function getWidgets() - { - return $this->widgets; - } - - /** - * A section must contain at least one widget. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup[] $var - * @return $this - */ - public function setWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup::class); - $this->widgets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php deleted file mode 100644 index a3eff2d76759..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateCustomEmojiRequest.php +++ /dev/null @@ -1,90 +0,0 @@ -google.chat.v1.CreateCustomEmojiRequest - */ -class CreateCustomEmojiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The custom emoji to create. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_emoji = null; - - /** - * @param \Google\Apps\Chat\V1\CustomEmoji $customEmoji Required. The custom emoji to create. - * - * @return \Google\Apps\Chat\V1\CreateCustomEmojiRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\CustomEmoji $customEmoji): self - { - return (new self()) - ->setCustomEmoji($customEmoji); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji - * Required. The custom emoji to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. The custom emoji to create. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\CustomEmoji|null - */ - public function getCustomEmoji() - { - return $this->custom_emoji; - } - - public function hasCustomEmoji() - { - return isset($this->custom_emoji); - } - - public function clearCustomEmoji() - { - unset($this->custom_emoji); - } - - /** - * Required. The custom emoji to create. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\CustomEmoji $var - * @return $this - */ - public function setCustomEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class); - $this->custom_emoji = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php deleted file mode 100644 index 2aadcb15286a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php +++ /dev/null @@ -1,350 +0,0 @@ -google.chat.v1.CreateMembershipRequest - */ -class CreateMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space for which to create the - * membership. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * certain authorization scopes and set specific values for certain fields: - * - When [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the `chat.memberships` authorization scope is required. - * - When [authenticating as an - * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * the `chat.app.memberships` authorization scope is required. - * - Set `user.type` to `HUMAN`, and set `user.name` with format - * `users/{user}`, where `{user}` can be the email address for the user. For - * users in the same Workspace organization `{user}` can also be the `id` of - * the [person](https://developers.google.com/people/api/rest/v1/people) from - * the People API, or the `id` for the user in the Directory API. For example, - * if the People API Person profile ID for `user\@example.com` is `123456789`, - * you can add the user to the space by setting the `membership.member.name` - * to `users/user\@example.com` or `users/123456789`. - * Inviting users external to the Workspace organization that owns the space - * requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When a Chat app creates a membership relation for itself, it must - * [authenticate as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set - * `user.name` to `users/app`. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $membership = null; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * - * Generated from protobuf field bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param string $parent Required. The resource name of the space for which to create the - * membership. - * - * Format: spaces/{space} - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * @param \Google\Apps\Chat\V1\Membership $membership Required. The membership relation to create. - * - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * - * When a Chat app creates a membership relation for a human user, it must use - * certain authorization scopes and set specific values for certain fields: - * - * - When [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the `chat.memberships` authorization scope is required. - * - * - When [authenticating as an - * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * the `chat.app.memberships` authorization scope is required. - * - * - Set `user.type` to `HUMAN`, and set `user.name` with format - * `users/{user}`, where `{user}` can be the email address for the user. For - * users in the same Workspace organization `{user}` can also be the `id` of - * the [person](https://developers.google.com/people/api/rest/v1/people) from - * the People API, or the `id` for the user in the Directory API. For example, - * if the People API Person profile ID for `user@example.com` is `123456789`, - * you can add the user to the space by setting the `membership.member.name` - * to `users/user@example.com` or `users/123456789`. - * - * Inviting users external to the Workspace organization that owns the space - * requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * When a Chat app creates a membership relation for itself, it must - * [authenticate as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set - * `user.name` to `users/app`. - * - * @return \Google\Apps\Chat\V1\CreateMembershipRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Apps\Chat\V1\Membership $membership): self - { - return (new self()) - ->setParent($parent) - ->setMembership($membership); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space for which to create the - * membership. - * Format: spaces/{space} - * @type \Google\Apps\Chat\V1\Membership $membership - * Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * certain authorization scopes and set specific values for certain fields: - * - When [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the `chat.memberships` authorization scope is required. - * - When [authenticating as an - * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * the `chat.app.memberships` authorization scope is required. - * - Set `user.type` to `HUMAN`, and set `user.name` with format - * `users/{user}`, where `{user}` can be the email address for the user. For - * users in the same Workspace organization `{user}` can also be the `id` of - * the [person](https://developers.google.com/people/api/rest/v1/people) from - * the People API, or the `id` for the user in the Directory API. For example, - * if the People API Person profile ID for `user\@example.com` is `123456789`, - * you can add the user to the space by setting the `membership.member.name` - * to `users/user\@example.com` or `users/123456789`. - * Inviting users external to the Workspace organization that owns the space - * requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When a Chat app creates a membership relation for itself, it must - * [authenticate as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set - * `user.name` to `users/app`. - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space for which to create the - * membership. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the space for which to create the - * membership. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * certain authorization scopes and set specific values for certain fields: - * - When [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the `chat.memberships` authorization scope is required. - * - When [authenticating as an - * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * the `chat.app.memberships` authorization scope is required. - * - Set `user.type` to `HUMAN`, and set `user.name` with format - * `users/{user}`, where `{user}` can be the email address for the user. For - * users in the same Workspace organization `{user}` can also be the `id` of - * the [person](https://developers.google.com/people/api/rest/v1/people) from - * the People API, or the `id` for the user in the Directory API. For example, - * if the People API Person profile ID for `user\@example.com` is `123456789`, - * you can add the user to the space by setting the `membership.member.name` - * to `users/user\@example.com` or `users/123456789`. - * Inviting users external to the Workspace organization that owns the space - * requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When a Chat app creates a membership relation for itself, it must - * [authenticate as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set - * `user.name` to `users/app`. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * certain authorization scopes and set specific values for certain fields: - * - When [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the `chat.memberships` authorization scope is required. - * - When [authenticating as an - * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * the `chat.app.memberships` authorization scope is required. - * - Set `user.type` to `HUMAN`, and set `user.name` with format - * `users/{user}`, where `{user}` can be the email address for the user. For - * users in the same Workspace organization `{user}` can also be the `id` of - * the [person](https://developers.google.com/people/api/rest/v1/people) from - * the People API, or the `id` for the user in the Directory API. For example, - * if the People API Person profile ID for `user\@example.com` is `123456789`, - * you can add the user to the space by setting the `membership.member.name` - * to `users/user\@example.com` or `users/123456789`. - * Inviting users external to the Workspace organization that owns the space - * requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When a Chat app creates a membership relation for itself, it must - * [authenticate as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set - * `user.name` to `users/app`. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * - * Generated from protobuf field bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * - * Generated from protobuf field bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php deleted file mode 100644 index 6b144c91c393..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.CreateMessageNotificationOptions - */ -class CreateMessageNotificationOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The notification type for the message. - * - * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1; - */ - protected $notification_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $notification_type - * The notification type for the message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * The notification type for the message. - * - * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1; - * @return int - */ - public function getNotificationType() - { - return $this->notification_type; - } - - /** - * The notification type for the message. - * - * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1; - * @param int $var - * @return $this - */ - public function setNotificationType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\CreateMessageNotificationOptions\NotificationType::class); - $this->notification_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php deleted file mode 100644 index 6b71e84da553..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageNotificationOptions/NotificationType.php +++ /dev/null @@ -1,72 +0,0 @@ -google.chat.v1.CreateMessageNotificationOptions.NotificationType - */ -class NotificationType -{ - /** - * Default behavior. Notification behavior is similar to when the human user - * sends the message using the Chat UI: no notification is sent to the - * human sender. - * - * Generated from protobuf enum NOTIFICATION_TYPE_NONE = 0; - */ - const NOTIFICATION_TYPE_NONE = 0; - /** - * Force notify recipients. This bypasses users' space notification settings - * and [Chat Do Not Disturb - * settings](https://support.google.com/chat/answer/9093489). This option - * does not bypass device-level Do Not Disturb settings. - * Requires [app authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf enum NOTIFICATION_TYPE_FORCE_NOTIFY = 2; - */ - const NOTIFICATION_TYPE_FORCE_NOTIFY = 2; - /** - * Silence the notification as if the recipients have [Chat Do Not - * Disturb](https://support.google.com/chat/answer/9093489) enabled or - * have muted the space. - * Requires [app authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf enum NOTIFICATION_TYPE_SILENT = 3; - */ - const NOTIFICATION_TYPE_SILENT = 3; - - private static $valueToName = [ - self::NOTIFICATION_TYPE_NONE => 'NOTIFICATION_TYPE_NONE', - self::NOTIFICATION_TYPE_FORCE_NOTIFY => 'NOTIFICATION_TYPE_FORCE_NOTIFY', - self::NOTIFICATION_TYPE_SILENT => 'NOTIFICATION_TYPE_SILENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php deleted file mode 100644 index 3c9681463758..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php +++ /dev/null @@ -1,444 +0,0 @@ -google.chat.v1.CreateMessageRequest - */ -class CreateMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space in which to create a message. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Message body. - * - * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message = null; - /** - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $thread_key = ''; - /** - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * - * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * When [responding to user - * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), - * this field is ignored. For interactions within a thread, the reply is - * created in the same thread. Otherwise, the reply is created as a new - * thread. - * - * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message_reply_option = 0; - /** - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message_id = ''; - /** - * Optional. Controls the notification behavior when the message is posted. - * To learn more, see [Force notifications or send silent - * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). - * - * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions create_message_notification_options = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_message_notification_options = null; - - /** - * @param string $parent Required. The resource name of the space in which to create a message. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * @param \Google\Apps\Chat\V1\Message $message Required. Message body. - * @param string $messageId Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * - * The value for this field must meet the following requirements: - * - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * @return \Google\Apps\Chat\V1\CreateMessageRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Apps\Chat\V1\Message $message, string $messageId): self - { - return (new self()) - ->setParent($parent) - ->setMessage($message) - ->setMessageId($messageId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space in which to create a message. - * Format: `spaces/{space}` - * @type \Google\Apps\Chat\V1\Message $message - * Required. Message body. - * @type string $thread_key - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * @type string $request_id - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * @type int $message_reply_option - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * When [responding to user - * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), - * this field is ignored. For interactions within a thread, the reply is - * created in the same thread. Otherwise, the reply is created as a new - * thread. - * @type string $message_id - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * @type \Google\Apps\Chat\V1\CreateMessageNotificationOptions $create_message_notification_options - * Optional. Controls the notification behavior when the message is posted. - * To learn more, see [Force notifications or send silent - * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space in which to create a message. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the space in which to create a message. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Message body. - * - * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * Required. Message body. - * - * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - - /** - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return string - * @deprecated - */ - public function getThreadKey() - { - if ($this->thread_key !== '') { - @trigger_error('thread_key is deprecated.', E_USER_DEPRECATED); - } - return $this->thread_key; - } - - /** - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - * @deprecated - */ - public function setThreadKey($var) - { - @trigger_error('thread_key is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->thread_key = $var; - - return $this; - } - - /** - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * - * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * - * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * When [responding to user - * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), - * this field is ignored. For interactions within a thread, the reply is - * created in the same thread. Otherwise, the reply is created as a new - * thread. - * - * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMessageReplyOption() - { - return $this->message_reply_option; - } - - /** - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * When [responding to user - * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), - * this field is ignored. For interactions within a thread, the reply is - * created in the same thread. Otherwise, the reply is created as a new - * thread. - * - * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMessageReplyOption($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\CreateMessageRequest\MessageReplyOption::class); - $this->message_reply_option = $var; - - return $this; - } - - /** - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMessageId() - { - return $this->message_id; - } - - /** - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMessageId($var) - { - GPBUtil::checkString($var, True); - $this->message_id = $var; - - return $this; - } - - /** - * Optional. Controls the notification behavior when the message is posted. - * To learn more, see [Force notifications or send silent - * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). - * - * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions create_message_notification_options = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\CreateMessageNotificationOptions|null - */ - public function getCreateMessageNotificationOptions() - { - return $this->create_message_notification_options; - } - - public function hasCreateMessageNotificationOptions() - { - return isset($this->create_message_notification_options); - } - - public function clearCreateMessageNotificationOptions() - { - unset($this->create_message_notification_options); - } - - /** - * Optional. Controls the notification behavior when the message is posted. - * To learn more, see [Force notifications or send silent - * messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent). - * - * Generated from protobuf field .google.chat.v1.CreateMessageNotificationOptions create_message_notification_options = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\CreateMessageNotificationOptions $var - * @return $this - */ - public function setCreateMessageNotificationOptions($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CreateMessageNotificationOptions::class); - $this->create_message_notification_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php deleted file mode 100644 index 632932c4e2ee..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php +++ /dev/null @@ -1,71 +0,0 @@ -google.chat.v1.CreateMessageRequest.MessageReplyOption - */ -class MessageReplyOption -{ - /** - * Default. Starts a new thread. Using this option ignores any [thread - * ID][google.chat.v1.Thread.name] or - * [`thread_key`][google.chat.v1.Thread.thread_key] that's included. - * - * Generated from protobuf enum MESSAGE_REPLY_OPTION_UNSPECIFIED = 0; - */ - const MESSAGE_REPLY_OPTION_UNSPECIFIED = 0; - /** - * Creates the message as a reply to the thread specified by [thread - * ID][google.chat.v1.Thread.name] or - * [`thread_key`][google.chat.v1.Thread.thread_key]. If it fails, the - * message starts a new thread instead. - * - * Generated from protobuf enum REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD = 1; - */ - const REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD = 1; - /** - * Creates the message as a reply to the thread specified by [thread - * ID][google.chat.v1.Thread.name] or - * [`thread_key`][google.chat.v1.Thread.thread_key]. If a new `thread_key` - * is used, a new thread is created. If the message creation fails, a - * `NOT_FOUND` error is returned instead. - * - * Generated from protobuf enum REPLY_MESSAGE_OR_FAIL = 2; - */ - const REPLY_MESSAGE_OR_FAIL = 2; - - private static $valueToName = [ - self::MESSAGE_REPLY_OPTION_UNSPECIFIED => 'MESSAGE_REPLY_OPTION_UNSPECIFIED', - self::REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD => 'REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD', - self::REPLY_MESSAGE_OR_FAIL => 'REPLY_MESSAGE_OR_FAIL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php deleted file mode 100644 index 14b96639b7c6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.chat.v1.CreateReactionRequest - */ -class CreateReactionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The reaction to create. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reaction = null; - - /** - * @param string $parent Required. The message where the reaction is created. - * - * Format: `spaces/{space}/messages/{message}` - * Please see {@see ChatServiceClient::messageName()} for help formatting this field. - * @param \Google\Apps\Chat\V1\Reaction $reaction Required. The reaction to create. - * - * @return \Google\Apps\Chat\V1\CreateReactionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Apps\Chat\V1\Reaction $reaction): self - { - return (new self()) - ->setParent($parent) - ->setReaction($reaction); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * @type \Google\Apps\Chat\V1\Reaction $reaction - * Required. The reaction to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. The message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The reaction to create. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Reaction|null - */ - public function getReaction() - { - return $this->reaction; - } - - public function hasReaction() - { - return isset($this->reaction); - } - - public function clearReaction() - { - unset($this->reaction); - } - - /** - * Required. The reaction to create. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Reaction $var - * @return $this - */ - public function setReaction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); - $this->reaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php deleted file mode 100644 index b5ec4ec9089b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSectionRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.chat.v1.CreateSectionRequest - */ -class CreateSectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name where the section is created. - * Format: `users/{user}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The section to create. - * - * Generated from protobuf field .google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $section = null; - - /** - * @param string $parent Required. The parent resource name where the section is created. - * - * Format: `users/{user}` - * Please see {@see ChatServiceClient::userName()} for help formatting this field. - * @param \Google\Apps\Chat\V1\Section $section Required. The section to create. - * - * @return \Google\Apps\Chat\V1\CreateSectionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Apps\Chat\V1\Section $section): self - { - return (new self()) - ->setParent($parent) - ->setSection($section); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource name where the section is created. - * Format: `users/{user}` - * @type \Google\Apps\Chat\V1\Section $section - * Required. The section to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name where the section is created. - * Format: `users/{user}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource name where the section is created. - * Format: `users/{user}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The section to create. - * - * Generated from protobuf field .google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Section|null - */ - public function getSection() - { - return $this->section; - } - - public function hasSection() - { - return isset($this->section); - } - - public function clearSection() - { - unset($this->section); - } - - /** - * Required. The section to create. - * - * Generated from protobuf field .google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Section $var - * @return $this - */ - public function setSection($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Section::class); - $this->section = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php deleted file mode 100644 index b89e8ad9347f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php +++ /dev/null @@ -1,182 +0,0 @@ -google.chat.v1.CreateSpaceRequest - */ -class CreateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. - * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Apps\Chat\V1\Space $space Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. - * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. - * - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * - * - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * @return \Google\Apps\Chat\V1\CreateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Space $space): self - { - return (new self()) - ->setSpace($space); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. - * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * @type string $request_id - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. - * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. - * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php deleted file mode 100644 index b72004cf258d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php +++ /dev/null @@ -1,257 +0,0 @@ -google.chat.v1.CustomEmoji - */ -class CustomEmoji extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the custom emoji, assigned by the server. - * Format: `customEmojis/{customEmoji}` - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Unique key for the custom emoji resource. - * - * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Optional. Immutable. User-provided name for the custom emoji, which is - * unique within the organization. - * Required when the custom emoji is created, output only otherwise. - * Emoji names must start and end with colons, must be lowercase and can only - * contain alphanumeric characters, hyphens, and underscores. - * Hyphens and underscores should be used to separate words and cannot be used - * consecutively. - * Example: `:valid-emoji-name:` - * - * Generated from protobuf field string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $emoji_name = ''; - /** - * Output only. A temporary image URL for the custom emoji, valid for at least - * 10 minutes. Note that this is not populated in the response when the custom - * emoji is created. - * - * Generated from protobuf field string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $temporary_image_uri = ''; - /** - * Optional. Input only. Payload data. - * Required when the custom emoji is created. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $payload = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the custom emoji, assigned by the server. - * Format: `customEmojis/{customEmoji}` - * @type string $uid - * Output only. Unique key for the custom emoji resource. - * @type string $emoji_name - * Optional. Immutable. User-provided name for the custom emoji, which is - * unique within the organization. - * Required when the custom emoji is created, output only otherwise. - * Emoji names must start and end with colons, must be lowercase and can only - * contain alphanumeric characters, hyphens, and underscores. - * Hyphens and underscores should be used to separate words and cannot be used - * consecutively. - * Example: `:valid-emoji-name:` - * @type string $temporary_image_uri - * Output only. A temporary image URL for the custom emoji, valid for at least - * 10 minutes. Note that this is not populated in the response when the custom - * emoji is created. - * @type \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload $payload - * Optional. Input only. Payload data. - * Required when the custom emoji is created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the custom emoji, assigned by the server. - * Format: `customEmojis/{customEmoji}` - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the custom emoji, assigned by the server. - * Format: `customEmojis/{customEmoji}` - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique key for the custom emoji resource. - * - * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique key for the custom emoji resource. - * - * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. Immutable. User-provided name for the custom emoji, which is - * unique within the organization. - * Required when the custom emoji is created, output only otherwise. - * Emoji names must start and end with colons, must be lowercase and can only - * contain alphanumeric characters, hyphens, and underscores. - * Hyphens and underscores should be used to separate words and cannot be used - * consecutively. - * Example: `:valid-emoji-name:` - * - * Generated from protobuf field string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEmojiName() - { - return $this->emoji_name; - } - - /** - * Optional. Immutable. User-provided name for the custom emoji, which is - * unique within the organization. - * Required when the custom emoji is created, output only otherwise. - * Emoji names must start and end with colons, must be lowercase and can only - * contain alphanumeric characters, hyphens, and underscores. - * Hyphens and underscores should be used to separate words and cannot be used - * consecutively. - * Example: `:valid-emoji-name:` - * - * Generated from protobuf field string emoji_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEmojiName($var) - { - GPBUtil::checkString($var, True); - $this->emoji_name = $var; - - return $this; - } - - /** - * Output only. A temporary image URL for the custom emoji, valid for at least - * 10 minutes. Note that this is not populated in the response when the custom - * emoji is created. - * - * Generated from protobuf field string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTemporaryImageUri() - { - return $this->temporary_image_uri; - } - - /** - * Output only. A temporary image URL for the custom emoji, valid for at least - * 10 minutes. Note that this is not populated in the response when the custom - * emoji is created. - * - * Generated from protobuf field string temporary_image_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTemporaryImageUri($var) - { - GPBUtil::checkString($var, True); - $this->temporary_image_uri = $var; - - return $this; - } - - /** - * Optional. Input only. Payload data. - * Required when the custom emoji is created. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload|null - */ - public function getPayload() - { - return $this->payload; - } - - public function hasPayload() - { - return isset($this->payload); - } - - public function clearPayload() - { - unset($this->payload); - } - - /** - * Optional. Input only. Payload data. - * Required when the custom emoji is created. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji.CustomEmojiPayload payload = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload $var - * @return $this - */ - public function setPayload($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji\CustomEmojiPayload::class); - $this->payload = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php deleted file mode 100644 index 033610b35a6c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji/CustomEmojiPayload.php +++ /dev/null @@ -1,117 +0,0 @@ -google.chat.v1.CustomEmoji.CustomEmojiPayload - */ -class CustomEmojiPayload extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Input only. The image used for the custom emoji. - * The payload must be under 256 KB and the dimension of - * the image must be square and between 64 and 500 pixels. The - * restrictions are subject to change. - * - * Generated from protobuf field bytes file_content = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - */ - protected $file_content = ''; - /** - * Required. Input only. The image file name. - * Supported file extensions: `.png`, `.jpg`, `.gif`. - * - * Generated from protobuf field string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - */ - protected $filename = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_content - * Required. Input only. The image used for the custom emoji. - * The payload must be under 256 KB and the dimension of - * the image must be square and between 64 and 500 pixels. The - * restrictions are subject to change. - * @type string $filename - * Required. Input only. The image file name. - * Supported file extensions: `.png`, `.jpg`, `.gif`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. Input only. The image used for the custom emoji. - * The payload must be under 256 KB and the dimension of - * the image must be square and between 64 and 500 pixels. The - * restrictions are subject to change. - * - * Generated from protobuf field bytes file_content = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFileContent() - { - return $this->file_content; - } - - /** - * Required. Input only. The image used for the custom emoji. - * The payload must be under 256 KB and the dimension of - * the image must be square and between 64 and 500 pixels. The - * restrictions are subject to change. - * - * Generated from protobuf field bytes file_content = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFileContent($var) - { - GPBUtil::checkString($var, False); - $this->file_content = $var; - - return $this; - } - - /** - * Required. Input only. The image file name. - * Supported file extensions: `.png`, `.jpg`, `.gif`. - * - * Generated from protobuf field string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilename() - { - return $this->filename; - } - - /** - * Required. Input only. The image file name. - * Supported file extensions: `.png`, `.jpg`, `.gif`. - * - * Generated from protobuf field string filename = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilename($var) - { - GPBUtil::checkString($var, True); - $this->filename = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php deleted file mode 100644 index 2e72249deedc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmojiMetadata.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.CustomEmojiMetadata - */ -class CustomEmojiMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1; - */ - protected $custom_emoji = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji - * The custom emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1; - * @return \Google\Apps\Chat\V1\CustomEmoji|null - */ - public function getCustomEmoji() - { - return $this->custom_emoji; - } - - public function hasCustomEmoji() - { - return isset($this->custom_emoji); - } - - public function clearCustomEmoji() - { - unset($this->custom_emoji); - } - - /** - * The custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 1; - * @param \Google\Apps\Chat\V1\CustomEmoji $var - * @return $this - */ - public function setCustomEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class); - $this->custom_emoji = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php deleted file mode 100644 index 5ebf3f8727d0..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteCustomEmojiRequest.php +++ /dev/null @@ -1,103 +0,0 @@ -google.chat.v1.DeleteCustomEmojiRequest - */ -class DeleteCustomEmojiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the custom emoji to delete. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the custom emoji to delete. - * - * Format: `customEmojis/{customEmoji}` - * - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. Please see - * {@see ChatServiceClient::customEmojiName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteCustomEmojiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the custom emoji to delete. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the custom emoji to delete. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the custom emoji to delete. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php deleted file mode 100644 index cfc2ff50f32a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.chat.v1.DeleteMembershipRequest - */ -class DeleteMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope - * with [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or the `chat.memberships.app` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and the `spaces/{space}/members/{member}` format. - * You can use the email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * - * When deleting a human membership, requires the `chat.memberships` scope - * with [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or the `chat.memberships.app` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and the `spaces/{space}/members/{member}` format. - * You can use the email as an alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. Please see - * {@see ChatServiceClient::membershipName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteMembershipRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope - * with [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or the `chat.memberships.app` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and the `spaces/{space}/members/{member}` format. - * You can use the email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope - * with [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or the `chat.memberships.app` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and the `spaces/{space}/members/{member}` format. - * You can use the email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope - * with [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or the `chat.memberships.app` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and the `spaces/{space}/members/{member}` format. - * You can use the email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php deleted file mode 100644 index 6cecd1b7429a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.chat.v1.DeleteMessageRequest - */ -class DeleteMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. When `true`, deleting a message also deletes its threaded - * replies. When `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. Resource name of the message. - * - * Format: `spaces/{space}/messages/{message}` - * - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). Please see - * {@see ChatServiceClient::messageName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteMessageRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * @type bool $force - * Optional. When `true`, deleting a message also deletes its threaded - * replies. When `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. When `true`, deleting a message also deletes its threaded - * replies. When `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. When `true`, deleting a message also deletes its threaded - * replies. When `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php deleted file mode 100644 index 6b346365e051..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.chat.v1.DeleteReactionRequest - */ -class DeleteReactionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the reaction to delete. - * - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * Please see {@see ChatServiceClient::reactionName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteReactionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php deleted file mode 100644 index c1d0ffa484f5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSectionRequest.php +++ /dev/null @@ -1,88 +0,0 @@ -google.chat.v1.DeleteSectionRequest - */ -class DeleteSectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the section to delete. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the section to delete. - * - * Format: `users/{user}/sections/{section}` - * Please see {@see ChatServiceClient::sectionName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteSectionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the section to delete. - * Format: `users/{user}/sections/{section}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the section to delete. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the section to delete. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php deleted file mode 100644 index dea074e557f3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php +++ /dev/null @@ -1,145 +0,0 @@ -google.chat.v1.DeleteSpaceRequest - */ -class DeleteSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the space to delete. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteSpaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php deleted file mode 100644 index adab2676a41a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.DeletionMetadata - */ -class DeletionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates who deleted the message. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; - */ - protected $deletion_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $deletion_type - * Indicates who deleted the message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\DeletionMetadata::initOnce(); - parent::__construct($data); - } - - /** - * Indicates who deleted the message. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; - * @return int - */ - public function getDeletionType() - { - return $this->deletion_type; - } - - /** - * Indicates who deleted the message. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; - * @param int $var - * @return $this - */ - public function setDeletionType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\DeletionMetadata\DeletionType::class); - $this->deletion_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php deleted file mode 100644 index 5d3969995d8a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php +++ /dev/null @@ -1,104 +0,0 @@ -google.chat.v1.DeletionMetadata.DeletionType - */ -class DeletionType -{ - /** - * This value is unused. - * - * Generated from protobuf enum DELETION_TYPE_UNSPECIFIED = 0; - */ - const DELETION_TYPE_UNSPECIFIED = 0; - /** - * User deleted their own message. - * - * Generated from protobuf enum CREATOR = 1; - */ - const CREATOR = 1; - /** - * An owner or manager deleted the message. - * - * Generated from protobuf enum SPACE_OWNER = 2; - */ - const SPACE_OWNER = 2; - /** - * A Google Workspace administrator deleted the message. Administrators can - * delete any message in the space, including messages sent by any space - * member or Chat app. - * - * Generated from protobuf enum ADMIN = 3; - */ - const ADMIN = 3; - /** - * A Chat app deleted its own message when it expired. - * - * Generated from protobuf enum APP_MESSAGE_EXPIRY = 4; - */ - const APP_MESSAGE_EXPIRY = 4; - /** - * A Chat app deleted the message on behalf of the creator (using user - * authentication). - * - * Generated from protobuf enum CREATOR_VIA_APP = 5; - */ - const CREATOR_VIA_APP = 5; - /** - * A Chat app deleted the message on behalf of a space manager (using user - * authentication). - * - * Generated from protobuf enum SPACE_OWNER_VIA_APP = 6; - */ - const SPACE_OWNER_VIA_APP = 6; - /** - * A member of the space deleted the message. Users can delete messages sent - * by apps. - * - * Generated from protobuf enum SPACE_MEMBER = 7; - */ - const SPACE_MEMBER = 7; - - private static $valueToName = [ - self::DELETION_TYPE_UNSPECIFIED => 'DELETION_TYPE_UNSPECIFIED', - self::CREATOR => 'CREATOR', - self::SPACE_OWNER => 'SPACE_OWNER', - self::ADMIN => 'ADMIN', - self::APP_MESSAGE_EXPIRY => 'APP_MESSAGE_EXPIRY', - self::CREATOR_VIA_APP => 'CREATOR_VIA_APP', - self::SPACE_OWNER_VIA_APP => 'SPACE_OWNER_VIA_APP', - self::SPACE_MEMBER => 'SPACE_MEMBER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php deleted file mode 100644 index d14fb5f9970d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php +++ /dev/null @@ -1,85 +0,0 @@ -google.chat.v1.Dialog - */ -class Dialog extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * - * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $body = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Card $body - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * - * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Card\V1\Card|null - */ - public function getBody() - { - return $this->body; - } - - public function hasBody() - { - return isset($this->body); - } - - public function clearBody() - { - unset($this->body); - } - - /** - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * - * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Card\V1\Card $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); - $this->body = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php deleted file mode 100644 index 3189a5560434..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php +++ /dev/null @@ -1,139 +0,0 @@ -google.chat.v1.DialogAction - */ -class DialogAction extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * - * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $action_status = null; - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Dialog $dialog - * Input only. - * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the - * request. - * @type \Google\Apps\Chat\V1\ActionStatus $action_status - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Input only. - * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the - * request. - * - * Generated from protobuf field .google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Dialog|null - */ - public function getDialog() - { - return $this->readOneof(1); - } - - public function hasDialog() - { - return $this->hasOneof(1); - } - - /** - * Input only. - * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the - * request. - * - * Generated from protobuf field .google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Dialog $var - * @return $this - */ - public function setDialog($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Dialog::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * - * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\ActionStatus|null - */ - public function getActionStatus() - { - return $this->action_status; - } - - public function hasActionStatus() - { - return isset($this->action_status); - } - - public function clearActionStatus() - { - unset($this->action_status); - } - - /** - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * - * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\ActionStatus $var - * @return $this - */ - public function setActionStatus($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionStatus::class); - $this->action_status = $var; - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php deleted file mode 100644 index 581ef8ea6d86..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.DriveDataRef - */ -class DriveDataRef extends \Google\Protobuf\Internal\Message -{ - /** - * The ID for the drive file. Use with the Drive API. - * - * Generated from protobuf field string drive_file_id = 2; - */ - protected $drive_file_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $drive_file_id - * The ID for the drive file. Use with the Drive API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * The ID for the drive file. Use with the Drive API. - * - * Generated from protobuf field string drive_file_id = 2; - * @return string - */ - public function getDriveFileId() - { - return $this->drive_file_id; - } - - /** - * The ID for the drive file. Use with the Drive API. - * - * Generated from protobuf field string drive_file_id = 2; - * @param string $var - * @return $this - */ - public function setDriveFileId($var) - { - GPBUtil::checkString($var, True); - $this->drive_file_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php deleted file mode 100644 index 334fbffe2245..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php +++ /dev/null @@ -1,119 +0,0 @@ -google.chat.v1.DriveLinkData - */ -class DriveLinkData extends \Google\Protobuf\Internal\Message -{ - /** - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; - */ - protected $drive_data_ref = null; - /** - * The mime type of the linked Google Drive resource. - * - * Generated from protobuf field string mime_type = 2; - */ - protected $mime_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\DriveDataRef $drive_data_ref - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * @type string $mime_type - * The mime type of the linked Google Drive resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; - * @return \Google\Apps\Chat\V1\DriveDataRef|null - */ - public function getDriveDataRef() - { - return $this->drive_data_ref; - } - - public function hasDriveDataRef() - { - return isset($this->drive_data_ref); - } - - public function clearDriveDataRef() - { - unset($this->drive_data_ref); - } - - /** - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; - * @param \Google\Apps\Chat\V1\DriveDataRef $var - * @return $this - */ - public function setDriveDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveDataRef::class); - $this->drive_data_ref = $var; - - return $this; - } - - /** - * The mime type of the linked Google Drive resource. - * - * Generated from protobuf field string mime_type = 2; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * The mime type of the linked Google Drive resource. - * - * Generated from protobuf field string mime_type = 2; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php deleted file mode 100644 index 390962101414..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php +++ /dev/null @@ -1,108 +0,0 @@ -google.chat.v1.Emoji - */ -class Emoji extends \Google\Protobuf\Internal\Message -{ - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $unicode - * Optional. A basic emoji represented by a unicode string. - * @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji - * A custom emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A basic emoji represented by a unicode string. - * - * Generated from protobuf field string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getUnicode() - { - return $this->readOneof(1); - } - - public function hasUnicode() - { - return $this->hasOneof(1); - } - - /** - * Optional. A basic emoji represented by a unicode string. - * - * Generated from protobuf field string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setUnicode($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 2; - * @return \Google\Apps\Chat\V1\CustomEmoji|null - */ - public function getCustomEmoji() - { - return $this->readOneof(2); - } - - public function hasCustomEmoji() - { - return $this->hasOneof(2); - } - - /** - * A custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 2; - * @param \Google\Apps\Chat\V1\CustomEmoji $var - * @return $this - */ - public function setCustomEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php deleted file mode 100644 index b8d24bb5bd3b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php +++ /dev/null @@ -1,121 +0,0 @@ -google.chat.v1.EmojiReactionSummary - */ -class EmojiReactionSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Emoji associated with the reactions. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $emoji = null; - /** - * Output only. The total number of reactions using the associated emoji. - * - * Generated from protobuf field optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reaction_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Emoji $emoji - * Output only. Emoji associated with the reactions. - * @type int $reaction_count - * Output only. The total number of reactions using the associated emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Emoji associated with the reactions. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Emoji|null - */ - public function getEmoji() - { - return $this->emoji; - } - - public function hasEmoji() - { - return isset($this->emoji); - } - - public function clearEmoji() - { - unset($this->emoji); - } - - /** - * Output only. Emoji associated with the reactions. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Emoji $var - * @return $this - */ - public function setEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Emoji::class); - $this->emoji = $var; - - return $this; - } - - /** - * Output only. The total number of reactions using the associated emoji. - * - * Generated from protobuf field optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getReactionCount() - { - return isset($this->reaction_count) ? $this->reaction_count : 0; - } - - public function hasReactionCount() - { - return isset($this->reaction_count); - } - - public function clearReactionCount() - { - unset($this->reaction_count); - } - - /** - * Output only. The total number of reactions using the associated emoji. - * - * Generated from protobuf field optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setReactionCount($var) - { - GPBUtil::checkInt32($var); - $this->reaction_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php deleted file mode 100644 index 4bfa3cff066a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.FindDirectMessageRequest - */ -class FindDirectMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php deleted file mode 100644 index 5a365e4cf5e0..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsRequest.php +++ /dev/null @@ -1,277 +0,0 @@ -google.chat.v1.FindGroupChatsRequest - */ -class FindGroupChatsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Resource names of all human users in group chat with the calling - * user. Chat apps can't be included in the request. - * The maximum number of users that can be specified in a single request is - * `49`. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, to find all group chats with the calling - * user and two other users, with People API profile IDs `123456789` and - * `987654321`, you can use `users/123456789` and `users/987654321`. - * You can also use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $users; - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 10 spaces are returned. - * The maximum value is 30. If you use a value more than 30, it's - * automatically changed to 30. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous call to find group chats. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the token. Passing different values may lead to unexpected - * results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Requested space view type. If unset, defaults to - * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify - * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, - * for example, - * https://www.googleapis.com/auth/chat.spaces or - * https://www.googleapis.com/auth/chat.spaces.readonly. - * - * Generated from protobuf field .google.chat.v1.SpaceView space_view = 4; - */ - protected $space_view = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $users - * Optional. Resource names of all human users in group chat with the calling - * user. Chat apps can't be included in the request. - * The maximum number of users that can be specified in a single request is - * `49`. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, to find all group chats with the calling - * user and two other users, with People API profile IDs `123456789` and - * `987654321`, you can use `users/123456789` and `users/987654321`. - * You can also use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * @type int $page_size - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 10 spaces are returned. - * The maximum value is 30. If you use a value more than 30, it's - * automatically changed to 30. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous call to find group chats. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the token. Passing different values may lead to unexpected - * results. - * @type int $space_view - * Requested space view type. If unset, defaults to - * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify - * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, - * for example, - * https://www.googleapis.com/auth/chat.spaces or - * https://www.googleapis.com/auth/chat.spaces.readonly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Resource names of all human users in group chat with the calling - * user. Chat apps can't be included in the request. - * The maximum number of users that can be specified in a single request is - * `49`. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, to find all group chats with the calling - * user and two other users, with People API profile IDs `123456789` and - * `987654321`, you can use `users/123456789` and `users/987654321`. - * You can also use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getUsers() - { - return $this->users; - } - - /** - * Optional. Resource names of all human users in group chat with the calling - * user. Chat apps can't be included in the request. - * The maximum number of users that can be specified in a single request is - * `49`. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, to find all group chats with the calling - * user and two other users, with People API profile IDs `123456789` and - * `987654321`, you can use `users/123456789` and `users/987654321`. - * You can also use the email as an alias for `{user}`. For example, - * `users/example\@gmail.com` where `example\@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->users = $arr; - - return $this; - } - - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 10 spaces are returned. - * The maximum value is 30. If you use a value more than 30, it's - * automatically changed to 30. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 10 spaces are returned. - * The maximum value is 30. If you use a value more than 30, it's - * automatically changed to 30. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous call to find group chats. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the token. Passing different values may lead to unexpected - * results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous call to find group chats. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the token. Passing different values may lead to unexpected - * results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Requested space view type. If unset, defaults to - * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify - * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, - * for example, - * https://www.googleapis.com/auth/chat.spaces or - * https://www.googleapis.com/auth/chat.spaces.readonly. - * - * Generated from protobuf field .google.chat.v1.SpaceView space_view = 4; - * @return int - */ - public function getSpaceView() - { - return $this->space_view; - } - - /** - * Requested space view type. If unset, defaults to - * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify - * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, - * for example, - * https://www.googleapis.com/auth/chat.spaces or - * https://www.googleapis.com/auth/chat.spaces.readonly. - * - * Generated from protobuf field .google.chat.v1.SpaceView space_view = 4; - * @param int $var - * @return $this - */ - public function setSpaceView($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SpaceView::class); - $this->space_view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php deleted file mode 100644 index d6fa5e3db2f1..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindGroupChatsResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.chat.v1.FindGroupChatsResponse - */ -class FindGroupChatsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of spaces in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - */ - private $spaces; - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space[] $spaces - * List of spaces in the requested (or first) page. - * @type string $next_page_token - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * List of spaces in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\Space> - */ - public function getSpaces() - { - return $this->spaces; - } - - /** - * List of spaces in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @param \Google\Apps\Chat\V1\Space[] $var - * @return $this - */ - public function setSpaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); - $this->spaces = $arr; - - return $this; - } - - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php deleted file mode 100644 index df9c5bae9a69..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ForwardedMetadata.php +++ /dev/null @@ -1,121 +0,0 @@ -google.chat.v1.ForwardedMetadata - */ -class ForwardedMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the source space. - * Format: spaces/{space} - * - * Generated from protobuf field string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $space = ''; - /** - * Output only. The display name of the source space or DM at the time of - * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this - * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is - * a generated name based on members' first names, limited to 5 including the - * creator (e.g., "User A, User B"). - * - * Generated from protobuf field string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $space_display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $space - * Output only. The resource name of the source space. - * Format: spaces/{space} - * @type string $space_display_name - * Output only. The display name of the source space or DM at the time of - * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this - * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is - * a generated name based on members' first names, limited to 5 including the - * creator (e.g., "User A, User B"). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the source space. - * Format: spaces/{space} - * - * Generated from protobuf field string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getSpace() - { - return $this->space; - } - - /** - * Output only. The resource name of the source space. - * Format: spaces/{space} - * - * Generated from protobuf field string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkString($var, True); - $this->space = $var; - - return $this; - } - - /** - * Output only. The display name of the source space or DM at the time of - * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this - * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is - * a generated name based on members' first names, limited to 5 including the - * creator (e.g., "User A, User B"). - * - * Generated from protobuf field string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSpaceDisplayName() - { - return $this->space_display_name; - } - - /** - * Output only. The display name of the source space or DM at the time of - * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this - * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is - * a generated name based on members' first names, limited to 5 including the - * creator (e.g., "User A, User B"). - * - * Generated from protobuf field string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSpaceDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->space_display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php deleted file mode 100644 index 9e5087fb5f2f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.chat.v1.GetAttachmentRequest - */ -class GetAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. Please see - * {@see ChatServiceClient::attachmentName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php deleted file mode 100644 index 44bbf30a0ca3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetCustomEmojiRequest.php +++ /dev/null @@ -1,103 +0,0 @@ -google.chat.v1.GetCustomEmojiRequest - */ -class GetCustomEmojiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the custom emoji. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the custom emoji. - * - * Format: `customEmojis/{customEmoji}` - * - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. Please see - * {@see ChatServiceClient::customEmojiName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetCustomEmojiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the custom emoji. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the custom emoji. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the custom emoji. - * Format: `customEmojis/{customEmoji}` - * You can use the emoji name as an alias for `{customEmoji}`. For example, - * `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name - * for a custom emoji. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php deleted file mode 100644 index 1d38e4170828..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.chat.v1.GetMembershipRequest - */ -class GetMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * You can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the membership to retrieve. - * - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * - * You can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. Please see - * {@see ChatServiceClient::membershipName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetMembershipRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * You can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * You can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * You can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example\@gmail.com` where `example\@gmail.com` is the - * email of the Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php deleted file mode 100644 index 647e6f7cc5cd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php +++ /dev/null @@ -1,108 +0,0 @@ -google.chat.v1.GetMessageRequest - */ -class GetMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the message. - * - * Format: `spaces/{space}/messages/{message}` - * - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). Please see - * {@see ChatServiceClient::messageName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetMessageRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php deleted file mode 100644 index 981c6103f140..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.chat.v1.GetSpaceEventRequest - */ -class GetSpaceEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the space event. - * - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * Please see {@see ChatServiceClient::spaceEventName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetSpaceEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php deleted file mode 100644 index c5c3e844d581..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceNotificationSettingRequest.php +++ /dev/null @@ -1,103 +0,0 @@ -google.chat.v1.GetSpaceNotificationSettingRequest - */ -class GetSpaceNotificationSettingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - * - `users/me/spaces/{space}/spaceNotificationSetting`, OR - * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR - * - `users/123456789/spaces/{space}/spaceNotificationSetting`. - * Note: Only the caller's user id or email is allowed in the path. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - * - * - `users/me/spaces/{space}/spaceNotificationSetting`, OR - * - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR - * - `users/123456789/spaces/{space}/spaceNotificationSetting`. - * Note: Only the caller's user id or email is allowed in the path. Please see - * {@see ChatServiceClient::spaceNotificationSettingName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetSpaceNotificationSettingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - * - `users/me/spaces/{space}/spaceNotificationSetting`, OR - * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR - * - `users/123456789/spaces/{space}/spaceNotificationSetting`. - * Note: Only the caller's user id or email is allowed in the path. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceNotificationSetting::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - * - `users/me/spaces/{space}/spaceNotificationSetting`, OR - * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR - * - `users/123456789/spaces/{space}/spaceNotificationSetting`. - * Note: Only the caller's user id or email is allowed in the path. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - * - `users/me/spaces/{space}/spaceNotificationSetting`, OR - * - `users/user\@example.com/spaces/{space}/spaceNotificationSetting`, OR - * - `users/123456789/spaces/{space}/spaceNotificationSetting`. - * Note: Only the caller's user id or email is allowed in the path. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php deleted file mode 100644 index 504b05e42c46..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.chat.v1.GetSpaceReadStateRequest - */ -class GetSpaceReadStateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the space read state to retrieve. - * - * Only supports getting read state for the calling user. - * - * To refer to the calling user, set one of the following: - * - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * - * Format: users/{user}/spaces/{space}/spaceReadState - * Please see {@see ChatServiceClient::spaceReadStateName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetSpaceReadStateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php deleted file mode 100644 index 10165fb8b82a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php +++ /dev/null @@ -1,145 +0,0 @@ -google.chat.v1.GetSpaceRequest - */ -class GetSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the space, in the form `spaces/{space}`. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetSpaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php deleted file mode 100644 index c71a86884071..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.chat.v1.GetThreadReadStateRequest - */ -class GetThreadReadStateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the thread read state to retrieve. - * - * Only supports getting read state for the calling user. - * - * To refer to the calling user, set one of the following: - * - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * Please see {@see ChatServiceClient::threadReadStateName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetThreadReadStateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ThreadReadState::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php deleted file mode 100644 index 1a4f8762d3d6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php +++ /dev/null @@ -1,83 +0,0 @@ -google.chat.v1.Group - */ -class Group extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Group::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php deleted file mode 100644 index 2dadcbc53b5f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php +++ /dev/null @@ -1,65 +0,0 @@ -google.chat.v1.HistoryState - */ -class HistoryState -{ - /** - * Default value. Do not use. - * - * Generated from protobuf enum HISTORY_STATE_UNSPECIFIED = 0; - */ - const HISTORY_STATE_UNSPECIFIED = 0; - /** - * History off. [Messages and threads are kept for 24 - * hours](https://support.google.com/chat/answer/7664687). - * - * Generated from protobuf enum HISTORY_OFF = 1; - */ - const HISTORY_OFF = 1; - /** - * History on. The organization's [Vault retention - * rules](https://support.google.com/vault/answer/7657597) specify for - * how long messages and threads are kept. - * - * Generated from protobuf enum HISTORY_ON = 2; - */ - const HISTORY_ON = 2; - - private static $valueToName = [ - self::HISTORY_STATE_UNSPECIFIED => 'HISTORY_STATE_UNSPECIFIED', - self::HISTORY_OFF => 'HISTORY_OFF', - self::HISTORY_ON => 'HISTORY_ON', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php deleted file mode 100644 index 092093c9e755..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisRequest.php +++ /dev/null @@ -1,199 +0,0 @@ -google.chat.v1.ListCustomEmojisRequest - */ -class ListCustomEmojisRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The maximum number of custom emojis returned. The service can - * return fewer custom emojis than this value. If unspecified, the default - * value is 25. The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list custom emoji call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * Supports filtering by creator. - * To filter by creator, you must specify a valid value. Currently only - * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter - * custom emojis by whether they were created by the calling user or not. - * For example, the following query returns custom emojis created by the - * caller: - * ``` - * creator("users/me") - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * Optional. The maximum number of custom emojis returned. The service can - * return fewer custom emojis than this value. If unspecified, the default - * value is 25. The maximum value is 200; values above 200 are changed to 200. - * @type string $page_token - * Optional. (If resuming from a previous query.) - * A page token received from a previous list custom emoji call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * Supports filtering by creator. - * To filter by creator, you must specify a valid value. Currently only - * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter - * custom emojis by whether they were created by the calling user or not. - * For example, the following query returns custom emojis created by the - * caller: - * ``` - * creator("users/me") - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The maximum number of custom emojis returned. The service can - * return fewer custom emojis than this value. If unspecified, the default - * value is 25. The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of custom emojis returned. The service can - * return fewer custom emojis than this value. If unspecified, the default - * value is 25. The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list custom emoji call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list custom emoji call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * Supports filtering by creator. - * To filter by creator, you must specify a valid value. Currently only - * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter - * custom emojis by whether they were created by the calling user or not. - * For example, the following query returns custom emojis created by the - * caller: - * ``` - * creator("users/me") - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * Supports filtering by creator. - * To filter by creator, you must specify a valid value. Currently only - * `creator("users/me")` and `NOT creator("users/me")` are accepted to filter - * custom emojis by whether they were created by the calling user or not. - * For example, the following query returns custom emojis created by the - * caller: - * ``` - * creator("users/me") - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php deleted file mode 100644 index 7e0ba2f2c345..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListCustomEmojisResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListCustomEmojisResponse - */ -class ListCustomEmojisResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Unordered list. List of custom emojis. - * - * Generated from protobuf field repeated .google.chat.v1.CustomEmoji custom_emojis = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $custom_emojis; - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\CustomEmoji[] $custom_emojis - * Unordered list. List of custom emojis. - * @type string $next_page_token - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Unordered list. List of custom emojis. - * - * Generated from protobuf field repeated .google.chat.v1.CustomEmoji custom_emojis = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField<\Google\Apps\Chat\V1\CustomEmoji> - */ - public function getCustomEmojis() - { - return $this->custom_emojis; - } - - /** - * Unordered list. List of custom emojis. - * - * Generated from protobuf field repeated .google.chat.v1.CustomEmoji custom_emojis = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param \Google\Apps\Chat\V1\CustomEmoji[] $var - * @return $this - */ - public function setCustomEmojis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\CustomEmoji::class); - $this->custom_emojis = $arr; - - return $this; - } - - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php deleted file mode 100644 index ac57033b5e16..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php +++ /dev/null @@ -1,512 +0,0 @@ -google.chat.v1.ListMembershipsRequest - */ -class ListMembershipsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space for which to fetch a membership - * list. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * - * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_groups = false; - /** - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_invited = false; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param string $parent Required. The resource name of the space for which to fetch a membership - * list. - * - * Format: spaces/{space} - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListMembershipsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space for which to fetch a membership - * list. - * Format: spaces/{space} - * @type int $page_size - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * @type bool $show_groups - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * @type bool $show_invited - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space for which to fetch a membership - * list. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the space for which to fetch a membership - * list. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * - * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowGroups() - { - return $this->show_groups; - } - - /** - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * - * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowGroups($var) - { - GPBUtil::checkBool($var); - $this->show_groups = $var; - - return $this; - } - - /** - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowInvited() - { - return $this->show_invited; - } - - /** - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowInvited($var) - { - GPBUtil::checkBool($var); - $this->show_invited = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php deleted file mode 100644 index d341acf75344..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListMembershipsResponse - */ -class ListMembershipsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Unordered list. List of memberships in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $memberships; - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership[] $memberships - * Unordered list. List of memberships in the requested (or first) page. - * @type string $next_page_token - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Unordered list. List of memberships in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField<\Google\Apps\Chat\V1\Membership> - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * Unordered list. List of memberships in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param \Google\Apps\Chat\V1\Membership[] $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Membership::class); - $this->memberships = $arr; - - return $this; - } - - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php deleted file mode 100644 index 831852c02640..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php +++ /dev/null @@ -1,417 +0,0 @@ -google.chat.v1.ListMessagesRequest - */ -class ListMessagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space to list messages from. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of messages returned. The service might return - * fewer messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token received from a previous list messages call. Provide - * this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. How the list of messages is ordered. Specify a value to order by - * an ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Whether to include deleted messages. Deleted messages include - * deleted time and metadata about their deletion, but message content is - * unavailable. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_deleted = false; - - /** - * @param string $parent Required. The resource name of the space to list messages from. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListMessagesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space to list messages from. - * Format: `spaces/{space}` - * @type int $page_size - * Optional. The maximum number of messages returned. The service might return - * fewer messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token received from a previous list messages call. Provide - * this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * @type string $order_by - * Optional. How the list of messages is ordered. Specify a value to order by - * an ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * @type bool $show_deleted - * Optional. Whether to include deleted messages. Deleted messages include - * deleted time and metadata about their deletion, but message content is - * unavailable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space to list messages from. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the space to list messages from. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of messages returned. The service might return - * fewer messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of messages returned. The service might return - * fewer messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token received from a previous list messages call. Provide - * this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token received from a previous list messages call. Provide - * this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. How the list of messages is ordered. Specify a value to order by - * an ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. How the list of messages is ordered. Specify a value to order by - * an ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Whether to include deleted messages. Deleted messages include - * deleted time and metadata about their deletion, but message content is - * unavailable. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Optional. Whether to include deleted messages. Deleted messages include - * deleted time and metadata about their deletion, but message content is - * unavailable. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php deleted file mode 100644 index 3a166b580b1e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListMessagesResponse - */ -class ListMessagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of messages. - * - * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; - */ - private $messages; - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message[] $messages - * List of messages. - * @type string $next_page_token - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * List of messages. - * - * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\Message> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * List of messages. - * - * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; - * @param \Google\Apps\Chat\V1\Message[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Message::class); - $this->messages = $arr; - - return $this; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php deleted file mode 100644 index 704d3d57fe62..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php +++ /dev/null @@ -1,345 +0,0 @@ -google.chat.v1.ListReactionsRequest - */ -class ListReactionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The message users reacted to. - * - * Format: `spaces/{space}/messages/{message}` - * Please see {@see ChatServiceClient::messageName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListReactionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * @type int $page_size - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * @type string $page_token - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. The message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php deleted file mode 100644 index d1a622d43642..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListReactionsResponse - */ -class ListReactionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of reactions in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; - */ - private $reactions; - /** - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Reaction[] $reactions - * List of reactions in the requested (or first) page. - * @type string $next_page_token - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * List of reactions in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\Reaction> - */ - public function getReactions() - { - return $this->reactions; - } - - /** - * List of reactions in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; - * @param \Google\Apps\Chat\V1\Reaction[] $var - * @return $this - */ - public function setReactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Reaction::class); - $this->reactions = $arr; - - return $this; - } - - /** - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php deleted file mode 100644 index 06e3d986cdee..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsRequest.php +++ /dev/null @@ -1,258 +0,0 @@ -google.chat.v1.ListSectionItemsRequest - */ -class ListSectionItemsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which is the section resource name that owns this - * collection of section items. Only supports listing section items for the - * calling user. - * When you're filtering by space, use the wildcard `-` to search across all - * sections. For example, `users/{user}/sections/-`. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of section items to return. The service may - * return fewer than this value. - * If unspecified, at most 10 section items will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous list section items call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * Currently only supports filtering by space. - * For example, `space = spaces/{space}`. - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which is the section resource name that owns this - * collection of section items. Only supports listing section items for the - * calling user. - * - * When you're filtering by space, use the wildcard `-` to search across all - * sections. For example, `users/{user}/sections/-`. - * - * Format: `users/{user}/sections/{section}` - * Please see {@see ChatServiceClient::sectionName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListSectionItemsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which is the section resource name that owns this - * collection of section items. Only supports listing section items for the - * calling user. - * When you're filtering by space, use the wildcard `-` to search across all - * sections. For example, `users/{user}/sections/-`. - * Format: `users/{user}/sections/{section}` - * @type int $page_size - * Optional. The maximum number of section items to return. The service may - * return fewer than this value. - * If unspecified, at most 10 section items will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous list section items call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * Currently only supports filtering by space. - * For example, `space = spaces/{space}`. - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which is the section resource name that owns this - * collection of section items. Only supports listing section items for the - * calling user. - * When you're filtering by space, use the wildcard `-` to search across all - * sections. For example, `users/{user}/sections/-`. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which is the section resource name that owns this - * collection of section items. Only supports listing section items for the - * calling user. - * When you're filtering by space, use the wildcard `-` to search across all - * sections. For example, `users/{user}/sections/-`. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of section items to return. The service may - * return fewer than this value. - * If unspecified, at most 10 section items will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of section items to return. The service may - * return fewer than this value. - * If unspecified, at most 10 section items will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous list section items call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous list section items call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * Currently only supports filtering by space. - * For example, `space = spaces/{space}`. - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * Currently only supports filtering by space. - * For example, `space = spaces/{space}`. - * Invalid queries are rejected with an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php deleted file mode 100644 index 595da317a092..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionItemsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListSectionItemsResponse - */ -class ListSectionItemsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The section items from the specified section. - * - * Generated from protobuf field repeated .google.chat.v1.SectionItem section_items = 1; - */ - private $section_items; - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\SectionItem[] $section_items - * The section items from the specified section. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * The section items from the specified section. - * - * Generated from protobuf field repeated .google.chat.v1.SectionItem section_items = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\SectionItem> - */ - public function getSectionItems() - { - return $this->section_items; - } - - /** - * The section items from the specified section. - * - * Generated from protobuf field repeated .google.chat.v1.SectionItem section_items = 1; - * @param \Google\Apps\Chat\V1\SectionItem[] $var - * @return $this - */ - public function setSectionItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SectionItem::class); - $this->section_items = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php deleted file mode 100644 index 20f71225986c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.chat.v1.ListSectionsRequest - */ -class ListSectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which is the user resource name that owns this - * collection of sections. Only supports listing sections for the calling - * user. To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me`. - * - Their Workspace email address. For example, `users/user\@example.com`. - * - Their user id. For example, `users/123456789`. - * Format: `users/{user}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of sections to return. The service may return - * fewer than this value. - * If unspecified, at most 10 sections will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous list sections call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which is the user resource name that owns this - * collection of sections. Only supports listing sections for the calling - * user. To refer to the calling user, set one of the following: - * - * - The `me` alias. For example, `users/me`. - * - * - Their Workspace email address. For example, `users/user@example.com`. - * - * - Their user id. For example, `users/123456789`. - * - * Format: `users/{user}` - * Please see {@see ChatServiceClient::userName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListSectionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which is the user resource name that owns this - * collection of sections. Only supports listing sections for the calling - * user. To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me`. - * - Their Workspace email address. For example, `users/user\@example.com`. - * - Their user id. For example, `users/123456789`. - * Format: `users/{user}` - * @type int $page_size - * Optional. The maximum number of sections to return. The service may return - * fewer than this value. - * If unspecified, at most 10 sections will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous list sections call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which is the user resource name that owns this - * collection of sections. Only supports listing sections for the calling - * user. To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me`. - * - Their Workspace email address. For example, `users/user\@example.com`. - * - Their user id. For example, `users/123456789`. - * Format: `users/{user}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which is the user resource name that owns this - * collection of sections. Only supports listing sections for the calling - * user. To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me`. - * - Their Workspace email address. For example, `users/user\@example.com`. - * - Their user id. For example, `users/123456789`. - * Format: `users/{user}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of sections to return. The service may return - * fewer than this value. - * If unspecified, at most 10 sections will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of sections to return. The service may return - * fewer than this value. - * If unspecified, at most 10 sections will be returned. - * The maximum value is 100. If you use a value more than 100, it's - * automatically changed to 100. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous list sections call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous list sections call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php deleted file mode 100644 index ae2a032b1665..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSectionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListSectionsResponse - */ -class ListSectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The sections from the specified user. - * - * Generated from protobuf field repeated .google.chat.v1.Section sections = 1; - */ - private $sections; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Section[] $sections - * The sections from the specified user. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * The sections from the specified user. - * - * Generated from protobuf field repeated .google.chat.v1.Section sections = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\Section> - */ - public function getSections() - { - return $this->sections; - } - - /** - * The sections from the specified user. - * - * Generated from protobuf field repeated .google.chat.v1.Section sections = 1; - * @param \Google\Apps\Chat\V1\Section[] $var - * @return $this - */ - public function setSections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Section::class); - $this->sections = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php deleted file mode 100644 index a56287bbe8f3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php +++ /dev/null @@ -1,444 +0,0 @@ -google.chat.v1.ListSpaceEventsRequest - */ -class ListSpaceEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous list space events call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * - * Format: `spaces/{space}`. Please see - * {@see ChatServiceClient::spaceName()} for help formatting this field. - * @param string $filter Required. A query filter. - * - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * - * For example, the following queries are valid: - * - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * - * The following queries are invalid: - * - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * @return \Google\Apps\Chat\V1\ListSpaceEventsRequest - * - * @experimental - */ - public static function build(string $parent, string $filter): self - { - return (new self()) - ->setParent($parent) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * @type int $page_size - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous list space events call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * @type string $filter - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous list space events call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous list space events call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php deleted file mode 100644 index 3b1eff626317..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.chat.v1.ListSpaceEventsResponse - */ -class ListSpaceEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; - */ - private $space_events; - /** - * Continuation token used to fetch more events. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\SpaceEvent[] $space_events - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * @type string $next_page_token - * Continuation token used to fetch more events. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\SpaceEvent> - */ - public function getSpaceEvents() - { - return $this->space_events; - } - - /** - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; - * @param \Google\Apps\Chat\V1\SpaceEvent[] $var - * @return $this - */ - public function setSpaceEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SpaceEvent::class); - $this->space_events = $arr; - - return $this; - } - - /** - * Continuation token used to fetch more events. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token used to fetch more events. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php deleted file mode 100644 index 52a2fd834089..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.chat.v1.ListSpacesRequest - */ -class ListSpacesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php deleted file mode 100644 index 4e59bba9752f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.chat.v1.ListSpacesResponse - */ -class ListSpacesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - */ - private $spaces; - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space[] $spaces - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * @type string $next_page_token - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\Space> - */ - public function getSpaces() - { - return $this->spaces; - } - - /** - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @param \Google\Apps\Chat\V1\Space[] $var - * @return $this - */ - public function setSpaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); - $this->spaces = $arr; - - return $this; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php deleted file mode 100644 index 24122d4aa89d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php +++ /dev/null @@ -1,69 +0,0 @@ -google.chat.v1.MatchedUrl - */ -class MatchedUrl extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The URL that was matched. - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Output only. The URL that was matched. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\MatchedUrl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The URL that was matched. - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Output only. The URL that was matched. - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php deleted file mode 100644 index 788c31d6fbf5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData.php +++ /dev/null @@ -1,139 +0,0 @@ -google.chat.v1.MeetSpaceLinkData - */ -class MeetSpaceLinkData extends \Google\Protobuf\Internal\Message -{ - /** - * Meeting code of the linked Meet space. - * - * Generated from protobuf field string meeting_code = 1; - */ - protected $meeting_code = ''; - /** - * Indicates the type of the Meet space. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.Type type = 2; - */ - protected $type = 0; - /** - * Optional. Output only. If the Meet is a Huddle, indicates the status of the - * huddle. Otherwise, this is unset. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.HuddleStatus huddle_status = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $huddle_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $meeting_code - * Meeting code of the linked Meet space. - * @type int $type - * Indicates the type of the Meet space. - * @type int $huddle_status - * Optional. Output only. If the Meet is a Huddle, indicates the status of the - * huddle. Otherwise, this is unset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * Meeting code of the linked Meet space. - * - * Generated from protobuf field string meeting_code = 1; - * @return string - */ - public function getMeetingCode() - { - return $this->meeting_code; - } - - /** - * Meeting code of the linked Meet space. - * - * Generated from protobuf field string meeting_code = 1; - * @param string $var - * @return $this - */ - public function setMeetingCode($var) - { - GPBUtil::checkString($var, True); - $this->meeting_code = $var; - - return $this; - } - - /** - * Indicates the type of the Meet space. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Indicates the type of the Meet space. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\MeetSpaceLinkData\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. Output only. If the Meet is a Huddle, indicates the status of the - * huddle. Otherwise, this is unset. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.HuddleStatus huddle_status = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getHuddleStatus() - { - return $this->huddle_status; - } - - /** - * Optional. Output only. If the Meet is a Huddle, indicates the status of the - * huddle. Otherwise, this is unset. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData.HuddleStatus huddle_status = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setHuddleStatus($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\MeetSpaceLinkData\HuddleStatus::class); - $this->huddle_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php deleted file mode 100644 index 11f5bf866bfd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/HuddleStatus.php +++ /dev/null @@ -1,70 +0,0 @@ -google.chat.v1.MeetSpaceLinkData.HuddleStatus - */ -class HuddleStatus -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum HUDDLE_STATUS_UNSPECIFIED = 0; - */ - const HUDDLE_STATUS_UNSPECIFIED = 0; - /** - * The huddle has started. - * - * Generated from protobuf enum STARTED = 1; - */ - const STARTED = 1; - /** - * The huddle has ended. In this case the Meet space URI and identifiers - * will no longer be valid. - * - * Generated from protobuf enum ENDED = 2; - */ - const ENDED = 2; - /** - * The huddle has been missed. In this case the Meet space URI and - * identifiers will no longer be valid. - * - * Generated from protobuf enum MISSED = 3; - */ - const MISSED = 3; - - private static $valueToName = [ - self::HUDDLE_STATUS_UNSPECIFIED => 'HUDDLE_STATUS_UNSPECIFIED', - self::STARTED => 'STARTED', - self::ENDED => 'ENDED', - self::MISSED => 'MISSED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php deleted file mode 100644 index 50bf557f180c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MeetSpaceLinkData/Type.php +++ /dev/null @@ -1,61 +0,0 @@ -google.chat.v1.MeetSpaceLinkData.Type - */ -class Type -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * The Meet space is a meeting. - * - * Generated from protobuf enum MEETING = 1; - */ - const MEETING = 1; - /** - * The Meet space is a huddle. - * - * Generated from protobuf enum HUDDLE = 2; - */ - const HUDDLE = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::MEETING => 'MEETING', - self::HUDDLE => 'HUDDLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php deleted file mode 100644 index c4505ba1a76a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php +++ /dev/null @@ -1,348 +0,0 @@ -google.chat.v1.Membership - */ -class Membership extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. State of the membership. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $role = 0; - /** - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $delete_time = null; - protected $memberType; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * @type int $state - * Output only. State of the membership. - * @type int $role - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * @type \Google\Apps\Chat\V1\User $member - * Optional. The Google Chat user or app the membership corresponds to. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * @type \Google\Apps\Chat\V1\Group $group_member - * Optional. The Google Group the membership corresponds to. - * Reading or mutating memberships for Google Groups requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * @type \Google\Protobuf\Timestamp $delete_time - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. State of the membership. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the membership. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Membership\MembershipState::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRole() - { - return $this->role; - } - - /** - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Membership\MembershipRole::class); - $this->role = $var; - - return $this; - } - - /** - * Optional. The Google Chat user or app the membership corresponds to. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getMember() - { - return $this->readOneof(3); - } - - public function hasMember() - { - return $this->hasOneof(3); - } - - /** - * Optional. The Google Chat user or app the membership corresponds to. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setMember($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. The Google Group the membership corresponds to. - * Reading or mutating memberships for Google Groups requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Group|null - */ - public function getGroupMember() - { - return $this->readOneof(5); - } - - public function hasGroupMember() - { - return $this->hasOneof(5); - } - - /** - * Optional. The Google Group the membership corresponds to. - * Reading or mutating memberships for Google Groups requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Group $var - * @return $this - */ - public function setGroupMember($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Group::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getMemberType() - { - return $this->whichOneof("memberType"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php deleted file mode 100644 index f8e4a2ecc899..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.Membership.MembershipRole - */ -class MembershipRole -{ - /** - * Default value. For [users][google.chat.v1.Membership.member]: they - * aren't a member of the space, but can be invited. For - * [Google Groups][google.chat.v1.Membership.group_member]: they're always - * assigned this role (other enum values might be used in the future). - * - * Generated from protobuf enum MEMBERSHIP_ROLE_UNSPECIFIED = 0; - */ - const MEMBERSHIP_ROLE_UNSPECIFIED = 0; - /** - * A member of the space. In the Chat UI, this role is called Member. - * The user has basic permissions, like sending - * messages to the space. - * Managers and owners can grant members additional permissions in a space, - * including: - * - Add or remove members. - * - Modify space details. - * - Turn history on or off. - * - Mention everyone in the space with `\@all`. - * - Manage Chat apps and webhooks installed in the space. - * In direct messages and unnamed group conversations, everyone - * has this role. - * - * Generated from protobuf enum ROLE_MEMBER = 1; - */ - const ROLE_MEMBER = 1; - /** - * A space owner. In the Chat UI, this role is called Owner. - * The user has the complete set of space permissions to manage the space, - * including: - * - Change the role of other members in the space to member, manager, or - * owner. - * - Delete the space. - * Only supported in - * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces). - * To learn more, see - * [Learn more about your role as a space - * owner or manager](https://support.google.com/chat/answer/11833441). - * - * Generated from protobuf enum ROLE_MANAGER = 2; - */ - const ROLE_MANAGER = 2; - /** - * A space manager. In the Chat UI, this role is called Manager. - * The user has all basic permissions of `ROLE_MEMBER`, - * and can be granted a subset of administrative permissions by an owner. - * By default, managers have all the permissions of an owner except for the - * ability to: - * - Delete the space. - * - Make another space member an owner. - * - Change an owner's role. - * By default, managers permissions include but aren't limited to: - * - Make another member a manager. - * - Delete messages in the space. - * - Manage space permissions. - * - Receive notifications for requests to join the space if the manager - * has the "manage members" permission in the space settings. - * - Make a space discoverable. - * Only supported in - * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces). - * To learn more, see - * [Manage space settings](https://support.google.com/chat/answer/13340792). - * - * Generated from protobuf enum ROLE_ASSISTANT_MANAGER = 4; - */ - const ROLE_ASSISTANT_MANAGER = 4; - - private static $valueToName = [ - self::MEMBERSHIP_ROLE_UNSPECIFIED => 'MEMBERSHIP_ROLE_UNSPECIFIED', - self::ROLE_MEMBER => 'ROLE_MEMBER', - self::ROLE_MANAGER => 'ROLE_MANAGER', - self::ROLE_ASSISTANT_MANAGER => 'ROLE_ASSISTANT_MANAGER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php deleted file mode 100644 index ad6401332073..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php +++ /dev/null @@ -1,70 +0,0 @@ -google.chat.v1.Membership.MembershipState - */ -class MembershipState -{ - /** - * Default value. Don't use. - * - * Generated from protobuf enum MEMBERSHIP_STATE_UNSPECIFIED = 0; - */ - const MEMBERSHIP_STATE_UNSPECIFIED = 0; - /** - * The user is added to the space, and can participate in the space. - * - * Generated from protobuf enum JOINED = 1; - */ - const JOINED = 1; - /** - * The user is invited to join the space, but hasn't joined it. - * - * Generated from protobuf enum INVITED = 2; - */ - const INVITED = 2; - /** - * The user doesn't belong to the space and doesn't have a pending - * invitation to join the space. - * - * Generated from protobuf enum NOT_A_MEMBER = 3; - */ - const NOT_A_MEMBER = 3; - - private static $valueToName = [ - self::MEMBERSHIP_STATE_UNSPECIFIED => 'MEMBERSHIP_STATE_UNSPECIFIED', - self::JOINED => 'JOINED', - self::INVITED => 'INVITED', - self::NOT_A_MEMBER => 'NOT_A_MEMBER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php deleted file mode 100644 index 7cdb63426d47..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MembershipBatchCreatedEventData - */ -class MembershipBatchCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of new memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\MembershipCreatedEventData[] $memberships - * A list of new memberships. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of new memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\MembershipCreatedEventData> - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * A list of new memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; - * @param \Google\Apps\Chat\V1\MembershipCreatedEventData[] $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipCreatedEventData::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php deleted file mode 100644 index 6d22d6e44ef3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MembershipBatchDeletedEventData - */ -class MembershipBatchDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of deleted memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\MembershipDeletedEventData[] $memberships - * A list of deleted memberships. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of deleted memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\MembershipDeletedEventData> - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * A list of deleted memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; - * @param \Google\Apps\Chat\V1\MembershipDeletedEventData[] $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipDeletedEventData::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php deleted file mode 100644 index 3e7cd30d32d3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MembershipBatchUpdatedEventData - */ -class MembershipBatchUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of updated memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\MembershipUpdatedEventData[] $memberships - * A list of updated memberships. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of updated memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\MembershipUpdatedEventData> - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * A list of updated memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; - * @param \Google\Apps\Chat\V1\MembershipUpdatedEventData[] $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipUpdatedEventData::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php deleted file mode 100644 index 746df9b20b3f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MembershipCreatedEventData - */ -class MembershipCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The new membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - */ - protected $membership = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * The new membership. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The new membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * The new membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php deleted file mode 100644 index 5da8374bb5d7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MembershipDeletedEventData - */ -class MembershipDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The deleted membership. Only the `name` and `state` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - */ - protected $membership = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * The deleted membership. Only the `name` and `state` fields are populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The deleted membership. Only the `name` and `state` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * The deleted membership. Only the `name` and `state` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php deleted file mode 100644 index 1a0d040b13c4..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MembershipUpdatedEventData - */ -class MembershipUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The updated membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - */ - protected $membership = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * The updated membership. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The updated membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * The updated membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php deleted file mode 100644 index 79d378591d46..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php +++ /dev/null @@ -1,1496 +0,0 @@ -google.chat.v1.Message - */ -class Message extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $sender = null; - /** - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Output only. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - /** - * Output only. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Optional. Plain-text body of the message. The first link to an image, - * video, or web page generates a [preview - * chip](https://developers.google.com/workspace/chat/preview-links). You can - * also [\@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $text = ''; - /** - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * * Bullet list items using asterisks (`*`)—for example, `* item`. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * - * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $formatted_text = ''; - /** - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; - * @deprecated - */ - private $cards; - /** - * Optional. An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * - * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $cards_v2; - /** - * Output only. Annotations can be associated with the plain-text body of the - * message or with chips that link to Google Workspace resources like Google - * Docs or Sheets with `start_index` and `length` of 0. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $annotations; - /** - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field .google.chat.v1.Thread thread = 11; - */ - protected $thread = null; - /** - * Output only. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output only populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * - * Generated from protobuf field .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $space = null; - /** - * Optional. A plain-text description of the message's cards, used when the - * actual cards can't be displayed—for example, mobile notifications. - * - * Generated from protobuf field string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fallback_text = ''; - /** - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * - * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $action_response = null; - /** - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * - * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $argument_text = ''; - /** - * Output only. Slash command information, if applicable. - * - * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $slash_command = null; - /** - * Optional. User-uploaded attachment. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attachment; - /** - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * - * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $matched_url = null; - /** - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * - * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $thread_reply = false; - /** - * Output only. Whether this is a silent message. Silent messages are messages - * where Chat suppresses push notifications for recipients. - * - * Generated from protobuf field bool silent = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $silent = false; - /** - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $client_assigned_message_id = ''; - /** - * Output only. The list of emoji reaction summaries on the message. - * - * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $emoji_reaction_summaries; - /** - * Optional. Immutable. Input for creating a message, otherwise output only. - * The user that can view the message. When set, the message is private and - * only visible to the specified user and the Chat app. To include this field - * in your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * - * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $private_message_viewer = null; - /** - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletion_metadata = null; - /** - * Optional. Information about a message that another message quotes. - * When you create a message, you can quote messages within the same - * thread, or quote a root message to create a new root message. - * However, you can't quote a message reply from a different thread. - * When you update a message, you can't add or replace the - * `quotedMessageMetadata` field, but you can remove it. - * For example usage, see [Quote another - * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $quoted_message_metadata = null; - /** - * Output only. GIF images that are attached to the message. - * - * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $attached_gifs; - /** - * Optional. One or more interactive widgets that appear at the bottom of a - * message. You can add accessory widgets to messages that contain text, - * cards, or both text and cards. Not supported for messages that contain - * dialogs. For details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $accessory_widgets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * @type \Google\Apps\Chat\V1\User $sender - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * @type string $text - * Optional. Plain-text body of the message. The first link to an image, - * video, or web page generates a [preview - * chip](https://developers.google.com/workspace/chat/preview-links). You can - * also [\@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * @type string $formatted_text - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * * Bullet list items using asterisks (`*`)—for example, `* item`. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card[] $cards - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * @type \Google\Apps\Chat\V1\CardWithId[] $cards_v2 - * Optional. An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * @type \Google\Apps\Chat\V1\Annotation[] $annotations - * Output only. Annotations can be associated with the plain-text body of the - * message or with chips that link to Google Workspace resources like Google - * Docs or Sheets with `start_index` and `length` of 0. - * @type \Google\Apps\Chat\V1\Thread $thread - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * @type \Google\Apps\Chat\V1\Space $space - * Output only. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output only populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * @type string $fallback_text - * Optional. A plain-text description of the message's cards, used when the - * actual cards can't be displayed—for example, mobile notifications. - * @type \Google\Apps\Chat\V1\ActionResponse $action_response - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * @type string $argument_text - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * @type \Google\Apps\Chat\V1\SlashCommand $slash_command - * Output only. Slash command information, if applicable. - * @type \Google\Apps\Chat\V1\Attachment[] $attachment - * Optional. User-uploaded attachment. - * @type \Google\Apps\Chat\V1\MatchedUrl $matched_url - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * @type bool $thread_reply - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * @type bool $silent - * Output only. Whether this is a silent message. Silent messages are messages - * where Chat suppresses push notifications for recipients. - * @type string $client_assigned_message_id - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * @type \Google\Apps\Chat\V1\EmojiReactionSummary[] $emoji_reaction_summaries - * Output only. The list of emoji reaction summaries on the message. - * @type \Google\Apps\Chat\V1\User $private_message_viewer - * Optional. Immutable. Input for creating a message, otherwise output only. - * The user that can view the message. When set, the message is private and - * only visible to the specified user and the Chat app. To include this field - * in your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * @type \Google\Apps\Chat\V1\DeletionMetadata $deletion_metadata - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * @type \Google\Apps\Chat\V1\QuotedMessageMetadata $quoted_message_metadata - * Optional. Information about a message that another message quotes. - * When you create a message, you can quote messages within the same - * thread, or quote a root message to create a new root message. - * However, you can't quote a message reply from a different thread. - * When you update a message, you can't add or replace the - * `quotedMessageMetadata` field, but you can remove it. - * For example usage, see [Quote another - * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). - * @type \Google\Apps\Chat\V1\AttachedGif[] $attached_gifs - * Output only. GIF images that are attached to the message. - * @type \Google\Apps\Chat\V1\AccessoryWidget[] $accessory_widgets - * Optional. One or more interactive widgets that appear at the bottom of a - * message. You can add accessory widgets to messages that contain text, - * cards, or both text and cards. Not supported for messages that contain - * dialogs. For details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getSender() - { - return $this->sender; - } - - public function hasSender() - { - return isset($this->sender); - } - - public function clearSender() - { - unset($this->sender); - } - - /** - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setSender($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->sender = $var; - - return $this; - } - - /** - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - - /** - * Output only. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Optional. Plain-text body of the message. The first link to an image, - * video, or web page generates a [preview - * chip](https://developers.google.com/workspace/chat/preview-links). You can - * also [\@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Optional. Plain-text body of the message. The first link to an image, - * video, or web page generates a [preview - * chip](https://developers.google.com/workspace/chat/preview-links). You can - * also [\@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-\@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * * Bullet list items using asterisks (`*`)—for example, `* item`. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * - * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFormattedText() - { - return $this->formatted_text; - } - - /** - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-\@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * * Bullet list items using asterisks (`*`)—for example, `* item`. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * - * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFormattedText($var) - { - GPBUtil::checkString($var, True); - $this->formatted_text = $var; - - return $this; - } - - /** - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; - * @return RepeatedField<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card> - * @deprecated - */ - public function getCards() - { - if ($this->cards->count() !== 0) { - @trigger_error('cards is deprecated.', E_USER_DEPRECATED); - } - return $this->cards; - } - - /** - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; - * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card[] $var - * @return $this - * @deprecated - */ - public function setCards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card::class); - if ($arr->count() !== 0) { - @trigger_error('cards is deprecated.', E_USER_DEPRECATED); - } - $this->cards = $arr; - - return $this; - } - - /** - * Optional. An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * - * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Apps\Chat\V1\CardWithId> - */ - public function getCardsV2() - { - return $this->cards_v2; - } - - /** - * Optional. An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * - * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\CardWithId[] $var - * @return $this - */ - public function setCardsV2($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\CardWithId::class); - $this->cards_v2 = $arr; - - return $this; - } - - /** - * Output only. Annotations can be associated with the plain-text body of the - * message or with chips that link to Google Workspace resources like Google - * Docs or Sheets with `start_index` and `length` of 0. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Apps\Chat\V1\Annotation> - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Output only. Annotations can be associated with the plain-text body of the - * message or with chips that link to Google Workspace resources like Google - * Docs or Sheets with `start_index` and `length` of 0. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Annotation[] $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Annotation::class); - $this->annotations = $arr; - - return $this; - } - - /** - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field .google.chat.v1.Thread thread = 11; - * @return \Google\Apps\Chat\V1\Thread|null - */ - public function getThread() - { - return $this->thread; - } - - public function hasThread() - { - return isset($this->thread); - } - - public function clearThread() - { - unset($this->thread); - } - - /** - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field .google.chat.v1.Thread thread = 11; - * @param \Google\Apps\Chat\V1\Thread $var - * @return $this - */ - public function setThread($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Thread::class); - $this->thread = $var; - - return $this; - } - - /** - * Output only. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output only populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * - * Generated from protobuf field .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Output only. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output only populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * - * Generated from protobuf field .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Optional. A plain-text description of the message's cards, used when the - * actual cards can't be displayed—for example, mobile notifications. - * - * Generated from protobuf field string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFallbackText() - { - return $this->fallback_text; - } - - /** - * Optional. A plain-text description of the message's cards, used when the - * actual cards can't be displayed—for example, mobile notifications. - * - * Generated from protobuf field string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFallbackText($var) - { - GPBUtil::checkString($var, True); - $this->fallback_text = $var; - - return $this; - } - - /** - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * - * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\ActionResponse|null - */ - public function getActionResponse() - { - return $this->action_response; - } - - public function hasActionResponse() - { - return isset($this->action_response); - } - - public function clearActionResponse() - { - unset($this->action_response); - } - - /** - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * - * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\ActionResponse $var - * @return $this - */ - public function setActionResponse($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse::class); - $this->action_response = $var; - - return $this; - } - - /** - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * - * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArgumentText() - { - return $this->argument_text; - } - - /** - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * - * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArgumentText($var) - { - GPBUtil::checkString($var, True); - $this->argument_text = $var; - - return $this; - } - - /** - * Output only. Slash command information, if applicable. - * - * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\SlashCommand|null - */ - public function getSlashCommand() - { - return $this->slash_command; - } - - public function hasSlashCommand() - { - return isset($this->slash_command); - } - - public function clearSlashCommand() - { - unset($this->slash_command); - } - - /** - * Output only. Slash command information, if applicable. - * - * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\SlashCommand $var - * @return $this - */ - public function setSlashCommand($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SlashCommand::class); - $this->slash_command = $var; - - return $this; - } - - /** - * Optional. User-uploaded attachment. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Apps\Chat\V1\Attachment> - */ - public function getAttachment() - { - return $this->attachment; - } - - /** - * Optional. User-uploaded attachment. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Attachment[] $var - * @return $this - */ - public function setAttachment($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Attachment::class); - $this->attachment = $arr; - - return $this; - } - - /** - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * - * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\MatchedUrl|null - */ - public function getMatchedUrl() - { - return $this->matched_url; - } - - public function hasMatchedUrl() - { - return isset($this->matched_url); - } - - public function clearMatchedUrl() - { - unset($this->matched_url); - } - - /** - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * - * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\MatchedUrl $var - * @return $this - */ - public function setMatchedUrl($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MatchedUrl::class); - $this->matched_url = $var; - - return $this; - } - - /** - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * - * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getThreadReply() - { - return $this->thread_reply; - } - - /** - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * - * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setThreadReply($var) - { - GPBUtil::checkBool($var); - $this->thread_reply = $var; - - return $this; - } - - /** - * Output only. Whether this is a silent message. Silent messages are messages - * where Chat suppresses push notifications for recipients. - * - * Generated from protobuf field bool silent = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSilent() - { - return $this->silent; - } - - /** - * Output only. Whether this is a silent message. Silent messages are messages - * where Chat suppresses push notifications for recipients. - * - * Generated from protobuf field bool silent = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSilent($var) - { - GPBUtil::checkBool($var); - $this->silent = $var; - - return $this; - } - - /** - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getClientAssignedMessageId() - { - return $this->client_assigned_message_id; - } - - /** - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setClientAssignedMessageId($var) - { - GPBUtil::checkString($var, True); - $this->client_assigned_message_id = $var; - - return $this; - } - - /** - * Output only. The list of emoji reaction summaries on the message. - * - * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Apps\Chat\V1\EmojiReactionSummary> - */ - public function getEmojiReactionSummaries() - { - return $this->emoji_reaction_summaries; - } - - /** - * Output only. The list of emoji reaction summaries on the message. - * - * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\EmojiReactionSummary[] $var - * @return $this - */ - public function setEmojiReactionSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\EmojiReactionSummary::class); - $this->emoji_reaction_summaries = $arr; - - return $this; - } - - /** - * Optional. Immutable. Input for creating a message, otherwise output only. - * The user that can view the message. When set, the message is private and - * only visible to the specified user and the Chat app. To include this field - * in your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * - * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getPrivateMessageViewer() - { - return $this->private_message_viewer; - } - - public function hasPrivateMessageViewer() - { - return isset($this->private_message_viewer); - } - - public function clearPrivateMessageViewer() - { - unset($this->private_message_viewer); - } - - /** - * Optional. Immutable. Input for creating a message, otherwise output only. - * The user that can view the message. When set, the message is private and - * only visible to the specified user and the Chat app. To include this field - * in your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * - * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setPrivateMessageViewer($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->private_message_viewer = $var; - - return $this; - } - - /** - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\DeletionMetadata|null - */ - public function getDeletionMetadata() - { - return $this->deletion_metadata; - } - - public function hasDeletionMetadata() - { - return isset($this->deletion_metadata); - } - - public function clearDeletionMetadata() - { - unset($this->deletion_metadata); - } - - /** - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\DeletionMetadata $var - * @return $this - */ - public function setDeletionMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DeletionMetadata::class); - $this->deletion_metadata = $var; - - return $this; - } - - /** - * Optional. Information about a message that another message quotes. - * When you create a message, you can quote messages within the same - * thread, or quote a root message to create a new root message. - * However, you can't quote a message reply from a different thread. - * When you update a message, you can't add or replace the - * `quotedMessageMetadata` field, but you can remove it. - * For example usage, see [Quote another - * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\QuotedMessageMetadata|null - */ - public function getQuotedMessageMetadata() - { - return $this->quoted_message_metadata; - } - - public function hasQuotedMessageMetadata() - { - return isset($this->quoted_message_metadata); - } - - public function clearQuotedMessageMetadata() - { - unset($this->quoted_message_metadata); - } - - /** - * Optional. Information about a message that another message quotes. - * When you create a message, you can quote messages within the same - * thread, or quote a root message to create a new root message. - * However, you can't quote a message reply from a different thread. - * When you update a message, you can't add or replace the - * `quotedMessageMetadata` field, but you can remove it. - * For example usage, see [Quote another - * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\QuotedMessageMetadata $var - * @return $this - */ - public function setQuotedMessageMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\QuotedMessageMetadata::class); - $this->quoted_message_metadata = $var; - - return $this; - } - - /** - * Output only. GIF images that are attached to the message. - * - * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Apps\Chat\V1\AttachedGif> - */ - public function getAttachedGifs() - { - return $this->attached_gifs; - } - - /** - * Output only. GIF images that are attached to the message. - * - * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\AttachedGif[] $var - * @return $this - */ - public function setAttachedGifs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\AttachedGif::class); - $this->attached_gifs = $arr; - - return $this; - } - - /** - * Optional. One or more interactive widgets that appear at the bottom of a - * message. You can add accessory widgets to messages that contain text, - * cards, or both text and cards. Not supported for messages that contain - * dialogs. For details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Apps\Chat\V1\AccessoryWidget> - */ - public function getAccessoryWidgets() - { - return $this->accessory_widgets; - } - - /** - * Optional. One or more interactive widgets that appear at the bottom of a - * message. You can add accessory widgets to messages that contain text, - * cards, or both text and cards. Not supported for messages that contain - * dialogs. For details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\AccessoryWidget[] $var - * @return $this - */ - public function setAccessoryWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\AccessoryWidget::class); - $this->accessory_widgets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php deleted file mode 100644 index fe05c979f922..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MessageBatchCreatedEventData - */ -class MessageBatchCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of new messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; - */ - private $messages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\MessageCreatedEventData[] $messages - * A list of new messages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of new messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\MessageCreatedEventData> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * A list of new messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; - * @param \Google\Apps\Chat\V1\MessageCreatedEventData[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageCreatedEventData::class); - $this->messages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php deleted file mode 100644 index a5cd28961d9e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MessageBatchDeletedEventData - */ -class MessageBatchDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of deleted messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; - */ - private $messages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\MessageDeletedEventData[] $messages - * A list of deleted messages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of deleted messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\MessageDeletedEventData> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * A list of deleted messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; - * @param \Google\Apps\Chat\V1\MessageDeletedEventData[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageDeletedEventData::class); - $this->messages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php deleted file mode 100644 index 6cb4f93fa61d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MessageBatchUpdatedEventData - */ -class MessageBatchUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of updated messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; - */ - private $messages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\MessageUpdatedEventData[] $messages - * A list of updated messages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of updated messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\MessageUpdatedEventData> - */ - public function getMessages() - { - return $this->messages; - } - - /** - * A list of updated messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; - * @param \Google\Apps\Chat\V1\MessageUpdatedEventData[] $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageUpdatedEventData::class); - $this->messages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php deleted file mode 100644 index 8e7d67f224a6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MessageCreatedEventData - */ -class MessageCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The new message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * The new message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The new message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The new message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php deleted file mode 100644 index 78b1cdc33d5f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php +++ /dev/null @@ -1,82 +0,0 @@ -google.chat.v1.MessageDeletedEventData - */ -class MessageDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The deleted message. Only the `name`, `createTime`, and - * `deletionMetadata` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * The deleted message. Only the `name`, `createTime`, and - * `deletionMetadata` fields are populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The deleted message. Only the `name`, `createTime`, and - * `deletionMetadata` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The deleted message. Only the `name`, `createTime`, and - * `deletionMetadata` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php deleted file mode 100644 index a1807b4c31b3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MessageUpdatedEventData - */ -class MessageUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The updated message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * The updated message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The updated message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The updated message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php deleted file mode 100644 index 83c7121ef7cc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.chat.v1.MoveSectionItemRequest - */ -class MoveSectionItemRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the section item to move. - * Format: `users/{user}/sections/{section}/items/{item}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The resource name of the section to move the section item to. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $target_section = ''; - - /** - * @param string $name Required. The resource name of the section item to move. - * - * Format: `users/{user}/sections/{section}/items/{item}` - * Please see {@see ChatServiceClient::sectionItemName()} for help formatting this field. - * @param string $targetSection Required. The resource name of the section to move the section item to. - * - * Format: `users/{user}/sections/{section}` - * Please see {@see ChatServiceClient::sectionName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\MoveSectionItemRequest - * - * @experimental - */ - public static function build(string $name, string $targetSection): self - { - return (new self()) - ->setName($name) - ->setTargetSection($targetSection); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the section item to move. - * Format: `users/{user}/sections/{section}/items/{item}` - * @type string $target_section - * Required. The resource name of the section to move the section item to. - * Format: `users/{user}/sections/{section}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the section item to move. - * Format: `users/{user}/sections/{section}/items/{item}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the section item to move. - * Format: `users/{user}/sections/{section}/items/{item}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The resource name of the section to move the section item to. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getTargetSection() - { - return $this->target_section; - } - - /** - * Required. The resource name of the section to move the section item to. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTargetSection($var) - { - GPBUtil::checkString($var, True); - $this->target_section = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php deleted file mode 100644 index e48dd4f05c9b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MoveSectionItemResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.MoveSectionItemResponse - */ -class MoveSectionItemResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The updated section item. - * - * Generated from protobuf field .google.chat.v1.SectionItem section_item = 1; - */ - protected $section_item = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\SectionItem $section_item - * The updated section item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * The updated section item. - * - * Generated from protobuf field .google.chat.v1.SectionItem section_item = 1; - * @return \Google\Apps\Chat\V1\SectionItem|null - */ - public function getSectionItem() - { - return $this->section_item; - } - - public function hasSectionItem() - { - return isset($this->section_item); - } - - public function clearSectionItem() - { - unset($this->section_item); - } - - /** - * The updated section item. - * - * Generated from protobuf field .google.chat.v1.SectionItem section_item = 1; - * @param \Google\Apps\Chat\V1\SectionItem $var - * @return $this - */ - public function setSectionItem($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SectionItem::class); - $this->section_item = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php deleted file mode 100644 index 37fcb51cc69b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.chat.v1.PositionSectionRequest - */ -class PositionSectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the section to position. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - protected $position; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the section to position. - * Format: `users/{user}/sections/{section}` - * @type int $sort_order - * Optional. The absolute position of the section in the list of sections. - * The position must be greater than 0. If the position is greater than the - * number of sections, the section will be appended to the end of the list. - * This operation inserts the section at the given position and shifts the - * original section at that position, and those below it, to the next - * position. - * @type int $relative_position - * Optional. The relative position of the section in the list of sections. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the section to position. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the section to position. - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The absolute position of the section in the list of sections. - * The position must be greater than 0. If the position is greater than the - * number of sections, the section will be appended to the end of the list. - * This operation inserts the section at the given position and shifts the - * original section at that position, and those below it, to the next - * position. - * - * Generated from protobuf field int32 sort_order = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSortOrder() - { - return $this->readOneof(2); - } - - public function hasSortOrder() - { - return $this->hasOneof(2); - } - - /** - * Optional. The absolute position of the section in the list of sections. - * The position must be greater than 0. If the position is greater than the - * number of sections, the section will be appended to the end of the list. - * This operation inserts the section at the given position and shifts the - * original section at that position, and those below it, to the next - * position. - * - * Generated from protobuf field int32 sort_order = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSortOrder($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. The relative position of the section in the list of sections. - * - * Generated from protobuf field .google.chat.v1.PositionSectionRequest.Position relative_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRelativePosition() - { - return $this->readOneof(3); - } - - public function hasRelativePosition() - { - return $this->hasOneof(3); - } - - /** - * Optional. The relative position of the section in the list of sections. - * - * Generated from protobuf field .google.chat.v1.PositionSectionRequest.Position relative_position = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRelativePosition($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\PositionSectionRequest\Position::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getPosition() - { - return $this->whichOneof("position"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php deleted file mode 100644 index 4a371ea3fa5d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionRequest/Position.php +++ /dev/null @@ -1,61 +0,0 @@ -google.chat.v1.PositionSectionRequest.Position - */ -class Position -{ - /** - * Unspecified position. - * - * Generated from protobuf enum POSITION_UNSPECIFIED = 0; - */ - const POSITION_UNSPECIFIED = 0; - /** - * Start of the list of sections. - * - * Generated from protobuf enum START = 1; - */ - const START = 1; - /** - * End of the list of sections. - * - * Generated from protobuf enum END = 2; - */ - const END = 2; - - private static $valueToName = [ - self::POSITION_UNSPECIFIED => 'POSITION_UNSPECIFIED', - self::START => 'START', - self::END => 'END', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php deleted file mode 100644 index 101c1cb0cddc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/PositionSectionResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.PositionSectionResponse - */ -class PositionSectionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The updated section. - * - * Generated from protobuf field .google.chat.v1.Section section = 1; - */ - protected $section = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Section $section - * The updated section. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * The updated section. - * - * Generated from protobuf field .google.chat.v1.Section section = 1; - * @return \Google\Apps\Chat\V1\Section|null - */ - public function getSection() - { - return $this->section; - } - - public function hasSection() - { - return isset($this->section); - } - - public function clearSection() - { - unset($this->section); - } - - /** - * The updated section. - * - * Generated from protobuf field .google.chat.v1.Section section = 1; - * @param \Google\Apps\Chat\V1\Section $var - * @return $this - */ - public function setSection($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Section::class); - $this->section = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php deleted file mode 100644 index 1d39ce930f7b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php +++ /dev/null @@ -1,269 +0,0 @@ -google.chat.v1.QuotedMessageMetadata - */ -class QuotedMessageMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the message that is quoted. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * If the message was edited, use this field, `last_update_time`. - * If the message was never edited, use `create_time`. - * If `last_update_time` doesn't match the latest version of the quoted - * message, the request fails. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $last_update_time = null; - /** - * Optional. Specifies the quote type. If not set, defaults to REPLY in the - * message read/write path for backward compatibility. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $quote_type = 0; - /** - * Output only. A snapshot of the quoted message's content. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $quoted_message_snapshot = null; - /** - * Output only. Metadata about the source space of the quoted message. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $forwarded_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the message that is quoted. - * Format: `spaces/{space}/messages/{message}` - * @type \Google\Protobuf\Timestamp $last_update_time - * Required. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * If the message was edited, use this field, `last_update_time`. - * If the message was never edited, use `create_time`. - * If `last_update_time` doesn't match the latest version of the quoted - * message, the request fails. - * @type int $quote_type - * Optional. Specifies the quote type. If not set, defaults to REPLY in the - * message read/write path for backward compatibility. - * @type \Google\Apps\Chat\V1\QuotedMessageSnapshot $quoted_message_snapshot - * Output only. A snapshot of the quoted message's content. - * @type \Google\Apps\Chat\V1\ForwardedMetadata $forwarded_metadata - * Output only. Metadata about the source space of the quoted message. - * Populated only for FORWARD quote type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the message that is quoted. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the message that is quoted. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * If the message was edited, use this field, `last_update_time`. - * If the message was never edited, use `create_time`. - * If `last_update_time` doesn't match the latest version of the quoted - * message, the request fails. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Required. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * If the message was edited, use this field, `last_update_time`. - * If the message was never edited, use `create_time`. - * If `last_update_time` doesn't match the latest version of the quoted - * message, the request fails. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - - /** - * Optional. Specifies the quote type. If not set, defaults to REPLY in the - * message read/write path for backward compatibility. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getQuoteType() - { - return $this->quote_type; - } - - /** - * Optional. Specifies the quote type. If not set, defaults to REPLY in the - * message read/write path for backward compatibility. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setQuoteType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\QuotedMessageMetadata\QuoteType::class); - $this->quote_type = $var; - - return $this; - } - - /** - * Output only. A snapshot of the quoted message's content. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\QuotedMessageSnapshot|null - */ - public function getQuotedMessageSnapshot() - { - return $this->quoted_message_snapshot; - } - - public function hasQuotedMessageSnapshot() - { - return isset($this->quoted_message_snapshot); - } - - public function clearQuotedMessageSnapshot() - { - unset($this->quoted_message_snapshot); - } - - /** - * Output only. A snapshot of the quoted message's content. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\QuotedMessageSnapshot $var - * @return $this - */ - public function setQuotedMessageSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\QuotedMessageSnapshot::class); - $this->quoted_message_snapshot = $var; - - return $this; - } - - /** - * Output only. Metadata about the source space of the quoted message. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\ForwardedMetadata|null - */ - public function getForwardedMetadata() - { - return $this->forwarded_metadata; - } - - public function hasForwardedMetadata() - { - return isset($this->forwarded_metadata); - } - - public function clearForwardedMetadata() - { - unset($this->forwarded_metadata); - } - - /** - * Output only. Metadata about the source space of the quoted message. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\ForwardedMetadata $var - * @return $this - */ - public function setForwardedMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ForwardedMetadata::class); - $this->forwarded_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php deleted file mode 100644 index 8eec514fd54f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata/QuoteType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.QuotedMessageMetadata.QuoteType - */ -class QuoteType -{ - /** - * Reserved. This value is unused. - * - * Generated from protobuf enum QUOTE_TYPE_UNSPECIFIED = 0; - */ - const QUOTE_TYPE_UNSPECIFIED = 0; - /** - * When `quote_type` is `REPLY`, you can do the following: - * * If you're replying in a thread, you can quote another message in that - * thread. - * * If you're creating a root message, you can quote another root message - * in that space. - * - * Generated from protobuf enum REPLY = 1; - */ - const REPLY = 1; - /** - * When `quote_type` is `FORWARD`, you can quote a: - * * Message from a different space. - * * Message reply from a different thread in the same space. - * - * Generated from protobuf enum FORWARD = 2; - */ - const FORWARD = 2; - - private static $valueToName = [ - self::QUOTE_TYPE_UNSPECIFIED => 'QUOTE_TYPE_UNSPECIFIED', - self::REPLY => 'REPLY', - self::FORWARD => 'FORWARD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php deleted file mode 100644 index 67ec5972a9b7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageSnapshot.php +++ /dev/null @@ -1,228 +0,0 @@ -google.chat.v1.QuotedMessageSnapshot - */ -class QuotedMessageSnapshot extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The quoted message's author name. - * Populated for both REPLY & FORWARD quote types. - * - * Generated from protobuf field string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $sender = ''; - /** - * Output only. Snapshot of the quoted message's text content. - * - * Generated from protobuf field string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $text = ''; - /** - * Output only. Contains the quoted message `text` with markups added to - * support rich formatting like hyperlinks,custom emojis, markup, etc. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $formatted_text = ''; - /** - * Output only. Annotations parsed from the text body of the quoted message. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $annotations; - /** - * Output only. Attachments that were part of the quoted message. These are - * copies of the quoted message's attachment metadata. Populated only for - * FORWARD quote type. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $attachments; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sender - * Output only. The quoted message's author name. - * Populated for both REPLY & FORWARD quote types. - * @type string $text - * Output only. Snapshot of the quoted message's text content. - * @type string $formatted_text - * Output only. Contains the quoted message `text` with markups added to - * support rich formatting like hyperlinks,custom emojis, markup, etc. - * Populated only for FORWARD quote type. - * @type \Google\Apps\Chat\V1\Annotation[] $annotations - * Output only. Annotations parsed from the text body of the quoted message. - * Populated only for FORWARD quote type. - * @type \Google\Apps\Chat\V1\Attachment[] $attachments - * Output only. Attachments that were part of the quoted message. These are - * copies of the quoted message's attachment metadata. Populated only for - * FORWARD quote type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The quoted message's author name. - * Populated for both REPLY & FORWARD quote types. - * - * Generated from protobuf field string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSender() - { - return $this->sender; - } - - /** - * Output only. The quoted message's author name. - * Populated for both REPLY & FORWARD quote types. - * - * Generated from protobuf field string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSender($var) - { - GPBUtil::checkString($var, True); - $this->sender = $var; - - return $this; - } - - /** - * Output only. Snapshot of the quoted message's text content. - * - * Generated from protobuf field string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Output only. Snapshot of the quoted message's text content. - * - * Generated from protobuf field string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Output only. Contains the quoted message `text` with markups added to - * support rich formatting like hyperlinks,custom emojis, markup, etc. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFormattedText() - { - return $this->formatted_text; - } - - /** - * Output only. Contains the quoted message `text` with markups added to - * support rich formatting like hyperlinks,custom emojis, markup, etc. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFormattedText($var) - { - GPBUtil::checkString($var, True); - $this->formatted_text = $var; - - return $this; - } - - /** - * Output only. Annotations parsed from the text body of the quoted message. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Apps\Chat\V1\Annotation> - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Output only. Annotations parsed from the text body of the quoted message. - * Populated only for FORWARD quote type. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Annotation[] $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Annotation::class); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. Attachments that were part of the quoted message. These are - * copies of the quoted message's attachment metadata. Populated only for - * FORWARD quote type. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Apps\Chat\V1\Attachment> - */ - public function getAttachments() - { - return $this->attachments; - } - - /** - * Output only. Attachments that were part of the quoted message. These are - * copies of the quoted message's attachment metadata. Populated only for - * FORWARD quote type. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Attachment[] $var - * @return $this - */ - public function setAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Attachment::class); - $this->attachments = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php deleted file mode 100644 index 44f945c50b0f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php +++ /dev/null @@ -1,159 +0,0 @@ -google.chat.v1.Reaction - */ -class Reaction extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The user who created the reaction. - * - * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user = null; - /** - * Required. The emoji used in the reaction. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $emoji = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * @type \Google\Apps\Chat\V1\User $user - * Output only. The user who created the reaction. - * @type \Google\Apps\Chat\V1\Emoji $emoji - * Required. The emoji used in the reaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The user who created the reaction. - * - * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * Output only. The user who created the reaction. - * - * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->user = $var; - - return $this; - } - - /** - * Required. The emoji used in the reaction. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Emoji|null - */ - public function getEmoji() - { - return $this->emoji; - } - - public function hasEmoji() - { - return isset($this->emoji); - } - - public function clearEmoji() - { - unset($this->emoji); - } - - /** - * Required. The emoji used in the reaction. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Emoji $var - * @return $this - */ - public function setEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Emoji::class); - $this->emoji = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php deleted file mode 100644 index 044909cb5404..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.ReactionBatchCreatedEventData - */ -class ReactionBatchCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of new reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; - */ - private $reactions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\ReactionCreatedEventData[] $reactions - * A list of new reactions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of new reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\ReactionCreatedEventData> - */ - public function getReactions() - { - return $this->reactions; - } - - /** - * A list of new reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; - * @param \Google\Apps\Chat\V1\ReactionCreatedEventData[] $var - * @return $this - */ - public function setReactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ReactionCreatedEventData::class); - $this->reactions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php deleted file mode 100644 index 1cefb1b9b3c9..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.ReactionBatchDeletedEventData - */ -class ReactionBatchDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of deleted reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; - */ - private $reactions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\ReactionDeletedEventData[] $reactions - * A list of deleted reactions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of deleted reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\ReactionDeletedEventData> - */ - public function getReactions() - { - return $this->reactions; - } - - /** - * A list of deleted reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; - * @param \Google\Apps\Chat\V1\ReactionDeletedEventData[] $var - * @return $this - */ - public function setReactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ReactionDeletedEventData::class); - $this->reactions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php deleted file mode 100644 index 802b10b5d239..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.ReactionCreatedEventData - */ -class ReactionCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The new reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - */ - protected $reaction = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Reaction $reaction - * The new reaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The new reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @return \Google\Apps\Chat\V1\Reaction|null - */ - public function getReaction() - { - return $this->reaction; - } - - public function hasReaction() - { - return isset($this->reaction); - } - - public function clearReaction() - { - unset($this->reaction); - } - - /** - * The new reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @param \Google\Apps\Chat\V1\Reaction $var - * @return $this - */ - public function setReaction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); - $this->reaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php deleted file mode 100644 index 440139f51fef..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.ReactionDeletedEventData - */ -class ReactionDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The deleted reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - */ - protected $reaction = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Reaction $reaction - * The deleted reaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The deleted reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @return \Google\Apps\Chat\V1\Reaction|null - */ - public function getReaction() - { - return $this->reaction; - } - - public function hasReaction() - { - return isset($this->reaction); - } - - public function clearReaction() - { - unset($this->reaction); - } - - /** - * The deleted reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @param \Google\Apps\Chat\V1\Reaction $var - * @return $this - */ - public function setReaction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); - $this->reaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php deleted file mode 100644 index 5d70614425c3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php +++ /dev/null @@ -1,245 +0,0 @@ -google.chat.v1.RichLinkMetadata - */ -class RichLinkMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The URI of this link. - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * The rich link type. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; - */ - protected $rich_link_type = 0; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * The URI of this link. - * @type int $rich_link_type - * The rich link type. - * @type \Google\Apps\Chat\V1\DriveLinkData $drive_link_data - * Data for a drive link. - * @type \Google\Apps\Chat\V1\ChatSpaceLinkData $chat_space_link_data - * Data for a chat space link. - * @type \Google\Apps\Chat\V1\MeetSpaceLinkData $meet_space_link_data - * Data for a Meet space link. - * @type \Google\Apps\Chat\V1\CalendarEventLinkData $calendar_event_link_data - * Data for a Calendar event link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The URI of this link. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * The URI of this link. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * The rich link type. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; - * @return int - */ - public function getRichLinkType() - { - return $this->rich_link_type; - } - - /** - * The rich link type. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; - * @param int $var - * @return $this - */ - public function setRichLinkType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\RichLinkMetadata\RichLinkType::class); - $this->rich_link_type = $var; - - return $this; - } - - /** - * Data for a drive link. - * - * Generated from protobuf field .google.chat.v1.DriveLinkData drive_link_data = 3; - * @return \Google\Apps\Chat\V1\DriveLinkData|null - */ - public function getDriveLinkData() - { - return $this->readOneof(3); - } - - public function hasDriveLinkData() - { - return $this->hasOneof(3); - } - - /** - * Data for a drive link. - * - * Generated from protobuf field .google.chat.v1.DriveLinkData drive_link_data = 3; - * @param \Google\Apps\Chat\V1\DriveLinkData $var - * @return $this - */ - public function setDriveLinkData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveLinkData::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Data for a chat space link. - * - * Generated from protobuf field .google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4; - * @return \Google\Apps\Chat\V1\ChatSpaceLinkData|null - */ - public function getChatSpaceLinkData() - { - return $this->readOneof(4); - } - - public function hasChatSpaceLinkData() - { - return $this->hasOneof(4); - } - - /** - * Data for a chat space link. - * - * Generated from protobuf field .google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4; - * @param \Google\Apps\Chat\V1\ChatSpaceLinkData $var - * @return $this - */ - public function setChatSpaceLinkData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ChatSpaceLinkData::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Data for a Meet space link. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData meet_space_link_data = 5; - * @return \Google\Apps\Chat\V1\MeetSpaceLinkData|null - */ - public function getMeetSpaceLinkData() - { - return $this->readOneof(5); - } - - public function hasMeetSpaceLinkData() - { - return $this->hasOneof(5); - } - - /** - * Data for a Meet space link. - * - * Generated from protobuf field .google.chat.v1.MeetSpaceLinkData meet_space_link_data = 5; - * @param \Google\Apps\Chat\V1\MeetSpaceLinkData $var - * @return $this - */ - public function setMeetSpaceLinkData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MeetSpaceLinkData::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Data for a Calendar event link. - * - * Generated from protobuf field .google.chat.v1.CalendarEventLinkData calendar_event_link_data = 6; - * @return \Google\Apps\Chat\V1\CalendarEventLinkData|null - */ - public function getCalendarEventLinkData() - { - return $this->readOneof(6); - } - - public function hasCalendarEventLinkData() - { - return $this->hasOneof(6); - } - - /** - * Data for a Calendar event link. - * - * Generated from protobuf field .google.chat.v1.CalendarEventLinkData calendar_event_link_data = 6; - * @param \Google\Apps\Chat\V1\CalendarEventLinkData $var - * @return $this - */ - public function setCalendarEventLinkData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CalendarEventLinkData::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php deleted file mode 100644 index e4ba6a36fdf8..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php +++ /dev/null @@ -1,84 +0,0 @@ -google.chat.v1.RichLinkMetadata.RichLinkType - */ -class RichLinkType -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum RICH_LINK_TYPE_UNSPECIFIED = 0; - */ - const RICH_LINK_TYPE_UNSPECIFIED = 0; - /** - * A Google Drive rich link type. - * - * Generated from protobuf enum DRIVE_FILE = 1; - */ - const DRIVE_FILE = 1; - /** - * A Chat space rich link type. For example, a space smart chip. - * - * Generated from protobuf enum CHAT_SPACE = 2; - */ - const CHAT_SPACE = 2; - /** - * A Gmail message rich link type. Specifically, a Gmail chip from [Share to - * Chat](https://support.google.com/chat?p=chat_gmail). The API only - * supports reading messages with GMAIL_MESSAGE rich links. - * - * Generated from protobuf enum GMAIL_MESSAGE = 3; - */ - const GMAIL_MESSAGE = 3; - /** - * A Meet message rich link type. For example, a Meet chip. - * - * Generated from protobuf enum MEET_SPACE = 4; - */ - const MEET_SPACE = 4; - /** - * A Calendar message rich link type. For example, a Calendar chip. - * - * Generated from protobuf enum CALENDAR_EVENT = 5; - */ - const CALENDAR_EVENT = 5; - - private static $valueToName = [ - self::RICH_LINK_TYPE_UNSPECIFIED => 'RICH_LINK_TYPE_UNSPECIFIED', - self::DRIVE_FILE => 'DRIVE_FILE', - self::CHAT_SPACE => 'CHAT_SPACE', - self::GMAIL_MESSAGE => 'GMAIL_MESSAGE', - self::MEET_SPACE => 'MEET_SPACE', - self::CALENDAR_EVENT => 'CALENDAR_EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php deleted file mode 100644 index 543b166b97ff..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php +++ /dev/null @@ -1,539 +0,0 @@ -google.chat.v1.SearchSpacesRequest - */ -class SearchSpacesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * - * Generated from protobuf field bool use_admin_access = 1; - */ - protected $use_admin_access = false; - /** - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * - * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * @type int $page_size - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * @type string $page_token - * A token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * @type string $query - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * @type string $order_by - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * - * Generated from protobuf field bool use_admin_access = 1; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * - * Generated from protobuf field bool use_admin_access = 1; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - - /** - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * - * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * - * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php deleted file mode 100644 index 1661763cd368..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.chat.v1.SearchSpacesResponse - */ -class SearchSpacesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A page of the requested spaces. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - */ - private $spaces; - /** - * A token that can be used to retrieve the next page. If this field is empty, - * there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space[] $spaces - * A page of the requested spaces. - * @type string $next_page_token - * A token that can be used to retrieve the next page. If this field is empty, - * there are no subsequent pages. - * @type int $total_size - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * A page of the requested spaces. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\Space> - */ - public function getSpaces() - { - return $this->spaces; - } - - /** - * A page of the requested spaces. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @param \Google\Apps\Chat\V1\Space[] $var - * @return $this - */ - public function setSpaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); - $this->spaces = $arr; - - return $this; - } - - /** - * A token that can be used to retrieve the next page. If this field is empty, - * there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be used to retrieve the next page. If this field is empty, - * there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php deleted file mode 100644 index 0aceb64eb557..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section.php +++ /dev/null @@ -1,218 +0,0 @@ -google.chat.v1.Section - */ -class Section extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the section. - * For system sections, the section ID is a constant string: - * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` - * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` - * - DEFAULT_APPS: `users/{user}/sections/default-apps` - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The section's display name. Only populated for sections of type - * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a - * `CUSTOM_SECTION`. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. The order of the section in relation to other sections. - * Sections with a lower `sort_order` value appear before sections with a - * higher value. - * - * Generated from protobuf field int32 sort_order = 3; - */ - protected $sort_order = 0; - /** - * Required. The type of the section. - * - * Generated from protobuf field .google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the section. - * For system sections, the section ID is a constant string: - * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` - * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` - * - DEFAULT_APPS: `users/{user}/sections/default-apps` - * Format: `users/{user}/sections/{section}` - * @type string $display_name - * Optional. The section's display name. Only populated for sections of type - * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a - * `CUSTOM_SECTION`. - * @type int $sort_order - * Output only. The order of the section in relation to other sections. - * Sections with a lower `sort_order` value appear before sections with a - * higher value. - * @type int $type - * Required. The type of the section. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the section. - * For system sections, the section ID is a constant string: - * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` - * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` - * - DEFAULT_APPS: `users/{user}/sections/default-apps` - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the section. - * For system sections, the section ID is a constant string: - * - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` - * - DEFAULT_SPACES: `users/{user}/sections/default-spaces` - * - DEFAULT_APPS: `users/{user}/sections/default-apps` - * Format: `users/{user}/sections/{section}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The section's display name. Only populated for sections of type - * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a - * `CUSTOM_SECTION`. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The section's display name. Only populated for sections of type - * `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a - * `CUSTOM_SECTION`. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The order of the section in relation to other sections. - * Sections with a lower `sort_order` value appear before sections with a - * higher value. - * - * Generated from protobuf field int32 sort_order = 3; - * @return int - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Output only. The order of the section in relation to other sections. - * Sections with a lower `sort_order` value appear before sections with a - * higher value. - * - * Generated from protobuf field int32 sort_order = 3; - * @param int $var - * @return $this - */ - public function setSortOrder($var) - { - GPBUtil::checkInt32($var); - $this->sort_order = $var; - - return $this; - } - - /** - * Required. The type of the section. - * - * Generated from protobuf field .google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The type of the section. - * - * Generated from protobuf field .google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Section\SectionType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php deleted file mode 100644 index be8391de500e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Section/SectionType.php +++ /dev/null @@ -1,79 +0,0 @@ -google.chat.v1.Section.SectionType - */ -class SectionType -{ - /** - * Unspecified section type. - * - * Generated from protobuf enum SECTION_TYPE_UNSPECIFIED = 0; - */ - const SECTION_TYPE_UNSPECIFIED = 0; - /** - * Custom section. - * - * Generated from protobuf enum CUSTOM_SECTION = 1; - */ - const CUSTOM_SECTION = 1; - /** - * Default section containing - * [DIRECT_MESSAGE](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype) - * between two human users or - * [GROUP_CHAT](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype) - * spaces that don't belong to any custom section. - * - * Generated from protobuf enum DEFAULT_DIRECT_MESSAGES = 2; - */ - const DEFAULT_DIRECT_MESSAGES = 2; - /** - * Default spaces that don't belong to any custom section. - * - * Generated from protobuf enum DEFAULT_SPACES = 3; - */ - const DEFAULT_SPACES = 3; - /** - * Default section containing a user's installed apps. - * - * Generated from protobuf enum DEFAULT_APPS = 6; - */ - const DEFAULT_APPS = 6; - - private static $valueToName = [ - self::SECTION_TYPE_UNSPECIFIED => 'SECTION_TYPE_UNSPECIFIED', - self::CUSTOM_SECTION => 'CUSTOM_SECTION', - self::DEFAULT_DIRECT_MESSAGES => 'DEFAULT_DIRECT_MESSAGES', - self::DEFAULT_SPACES => 'DEFAULT_SPACES', - self::DEFAULT_APPS => 'DEFAULT_APPS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php deleted file mode 100644 index 14a12a3688d1..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SectionItem.php +++ /dev/null @@ -1,117 +0,0 @@ -google.chat.v1.SectionItem - */ -class SectionItem extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the section item. - * Format: `users/{user}/sections/{section}/items/{item}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - protected $item; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the section item. - * Format: `users/{user}/sections/{section}/items/{item}` - * @type string $space - * Optional. The space resource name. - * Format: `spaces/{space}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the section item. - * Format: `users/{user}/sections/{section}/items/{item}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the section item. - * Format: `users/{user}/sections/{section}/items/{item}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The space resource name. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getSpace() - { - return $this->readOneof(2); - } - - public function hasSpace() - { - return $this->hasOneof(2); - } - - /** - * Optional. The space resource name. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getItem() - { - return $this->whichOneof("item"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php deleted file mode 100644 index 51a61c7dc580..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php +++ /dev/null @@ -1,317 +0,0 @@ -google.chat.v1.SetUpSpaceRequest - */ -class SetUpSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 49 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * @type string $request_id - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * @type \Google\Apps\Chat\V1\Membership[] $memberships - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 49 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceSetup::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 49 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Apps\Chat\V1\Membership> - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 49 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example\@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Membership[] $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Membership::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php deleted file mode 100644 index 43ab4bf3fc94..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php +++ /dev/null @@ -1,69 +0,0 @@ -google.chat.v1.SlashCommand - */ -class SlashCommand extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the slash command. - * - * Generated from protobuf field int64 command_id = 1; - */ - protected $command_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $command_id - * The ID of the slash command. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SlashCommand::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the slash command. - * - * Generated from protobuf field int64 command_id = 1; - * @return int|string - */ - public function getCommandId() - { - return $this->command_id; - } - - /** - * The ID of the slash command. - * - * Generated from protobuf field int64 command_id = 1; - * @param int|string $var - * @return $this - */ - public function setCommandId($var) - { - GPBUtil::checkInt64($var); - $this->command_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php deleted file mode 100644 index d0f656c9113f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php +++ /dev/null @@ -1,213 +0,0 @@ -google.chat.v1.SlashCommandMetadata - */ -class SlashCommandMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The Chat app whose command was invoked. - * - * Generated from protobuf field .google.chat.v1.User bot = 1; - */ - protected $bot = null; - /** - * The type of slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; - */ - protected $type = 0; - /** - * The name of the invoked slash command. - * - * Generated from protobuf field string command_name = 3; - */ - protected $command_name = ''; - /** - * The command ID of the invoked slash command. - * - * Generated from protobuf field int64 command_id = 4; - */ - protected $command_id = 0; - /** - * Indicates whether the slash command is for a dialog. - * - * Generated from protobuf field bool triggers_dialog = 5; - */ - protected $triggers_dialog = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\User $bot - * The Chat app whose command was invoked. - * @type int $type - * The type of slash command. - * @type string $command_name - * The name of the invoked slash command. - * @type int|string $command_id - * The command ID of the invoked slash command. - * @type bool $triggers_dialog - * Indicates whether the slash command is for a dialog. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The Chat app whose command was invoked. - * - * Generated from protobuf field .google.chat.v1.User bot = 1; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getBot() - { - return $this->bot; - } - - public function hasBot() - { - return isset($this->bot); - } - - public function clearBot() - { - unset($this->bot); - } - - /** - * The Chat app whose command was invoked. - * - * Generated from protobuf field .google.chat.v1.User bot = 1; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setBot($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->bot = $var; - - return $this; - } - - /** - * The type of slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SlashCommandMetadata\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The name of the invoked slash command. - * - * Generated from protobuf field string command_name = 3; - * @return string - */ - public function getCommandName() - { - return $this->command_name; - } - - /** - * The name of the invoked slash command. - * - * Generated from protobuf field string command_name = 3; - * @param string $var - * @return $this - */ - public function setCommandName($var) - { - GPBUtil::checkString($var, True); - $this->command_name = $var; - - return $this; - } - - /** - * The command ID of the invoked slash command. - * - * Generated from protobuf field int64 command_id = 4; - * @return int|string - */ - public function getCommandId() - { - return $this->command_id; - } - - /** - * The command ID of the invoked slash command. - * - * Generated from protobuf field int64 command_id = 4; - * @param int|string $var - * @return $this - */ - public function setCommandId($var) - { - GPBUtil::checkInt64($var); - $this->command_id = $var; - - return $this; - } - - /** - * Indicates whether the slash command is for a dialog. - * - * Generated from protobuf field bool triggers_dialog = 5; - * @return bool - */ - public function getTriggersDialog() - { - return $this->triggers_dialog; - } - - /** - * Indicates whether the slash command is for a dialog. - * - * Generated from protobuf field bool triggers_dialog = 5; - * @param bool $var - * @return $this - */ - public function setTriggersDialog($var) - { - GPBUtil::checkBool($var); - $this->triggers_dialog = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php deleted file mode 100644 index 13732632bc89..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php +++ /dev/null @@ -1,59 +0,0 @@ -google.chat.v1.SlashCommandMetadata.Type - */ -class Type -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Add Chat app to space. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Invoke slash command in space. - * - * Generated from protobuf enum INVOKE = 2; - */ - const INVOKE = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ADD => 'ADD', - self::INVOKE => 'INVOKE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php deleted file mode 100644 index a8ed562dde7b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php +++ /dev/null @@ -1,1125 +0,0 @@ -google.chat.v1.Space - */ -class Space extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * - * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $type = 0; - /** - * Optional. The type of space. Required when creating a space or updating the - * space type of a space. Output only for other usage. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $space_type = 0; - /** - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * - * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $single_user_bot_dm = false; - /** - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * - * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $threaded = false; - /** - * Optional. The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Immutable. Whether this space permits any Google Chat user as a - * member. Input when creating a space in a Google Workspace organization. - * Omit this field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * - * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_user_allowed = false; - /** - * Output only. The threading state in the Chat space. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $space_threading_state = 0; - /** - * Optional. Details about the space including description and rules. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $space_details = null; - /** - * Optional. The message history state for messages and threads in this space. - * - * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $space_history_state = 0; - /** - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * Creating a space in `Import Mode`requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $import_mode = false; - /** - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Output only. Timestamp of the last message in the space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_active_time = null; - /** - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * - * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $admin_installed = false; - /** - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * - * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $membership_count = null; - /** - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $access_settings = null; - /** - * Optional. Immutable. The customer id of the domain of the space. - * Required only when creating a space with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and `SpaceType` is `SPACE`, otherwise should not be set. - * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer - * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). - * Private apps can also use the `customers/my_customer` alias to create - * the space in the same Google Workspace organization as the app. - * This field isn't populated for direct messages (DMs) or when the space is - * created by non-Google Workspace users. - * - * Generated from protobuf field optional string customer = 24 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $customer = null; - /** - * Output only. The URI for a user to access the space. - * - * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $space_uri = ''; - /** - * Output only. The time when the space will be automatically deleted by the - * system if it remains in import mode. - * Each space created in import mode must exit this mode before this expire - * time using `spaces.completeImport`. - * This field is only populated for spaces that were created with import mode. - * - * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $import_mode_expire_time = null; - protected $space_permission_settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * @type int $type - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * @type int $space_type - * Optional. The type of space. Required when creating a space or updating the - * space type of a space. Output only for other usage. - * @type bool $single_user_bot_dm - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * @type bool $threaded - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * @type string $display_name - * Optional. The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * @type bool $external_user_allowed - * Optional. Immutable. Whether this space permits any Google Chat user as a - * member. Input when creating a space in a Google Workspace organization. - * Omit this field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * @type int $space_threading_state - * Output only. The threading state in the Chat space. - * @type \Google\Apps\Chat\V1\Space\SpaceDetails $space_details - * Optional. Details about the space including description and rules. - * @type int $space_history_state - * Optional. The message history state for messages and threads in this space. - * @type bool $import_mode - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * Creating a space in `Import Mode`requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * @type \Google\Protobuf\Timestamp $last_active_time - * Output only. Timestamp of the last message in the space. - * @type bool $admin_installed - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * @type \Google\Apps\Chat\V1\Space\MembershipCount $membership_count - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * @type \Google\Apps\Chat\V1\Space\AccessSettings $access_settings - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * @type string $customer - * Optional. Immutable. The customer id of the domain of the space. - * Required only when creating a space with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and `SpaceType` is `SPACE`, otherwise should not be set. - * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer - * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). - * Private apps can also use the `customers/my_customer` alias to create - * the space in the same Google Workspace organization as the app. - * This field isn't populated for direct messages (DMs) or when the space is - * created by non-Google Workspace users. - * @type string $space_uri - * Output only. The URI for a user to access the space. - * @type int $predefined_permission_settings - * Optional. Input only. Predefined space permission settings, input only - * when creating a space. If the field is not set, a collaboration space is - * created. After you create the space, settings are populated in the - * `PermissionSettings` field. - * Setting predefined permission settings supports: - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) with the - * `chat.app.spaces` or `chat.app.spaces.create` scopes. - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * @type \Google\Apps\Chat\V1\Space\PermissionSettings $permission_settings - * Optional. Space permission settings for existing spaces. Input for - * updating exact space permission settings, where existing permission - * settings are replaced. Output lists current permission settings. - * Reading and updating permission settings supports: - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) with the - * `chat.app.spaces` scope. Only populated and settable when the Chat app - * created the space. - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * @type \Google\Protobuf\Timestamp $import_mode_expire_time - * Output only. The time when the space will be automatically deleted by the - * system if it remains in import mode. - * Each space created in import mode must exit this mode before this expire - * time using `spaces.completeImport`. - * This field is only populated for spaces that were created with import mode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * - * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - * @deprecated - */ - public function getType() - { - if ($this->type !== 0) { - @trigger_error('type is deprecated.', E_USER_DEPRECATED); - } - return $this->type; - } - - /** - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * - * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - * @deprecated - */ - public function setType($var) - { - @trigger_error('type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The type of space. Required when creating a space or updating the - * space type of a space. Output only for other usage. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSpaceType() - { - return $this->space_type; - } - - /** - * Optional. The type of space. Required when creating a space or updating the - * space type of a space. Output only for other usage. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSpaceType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\SpaceType::class); - $this->space_type = $var; - - return $this; - } - - /** - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * - * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getSingleUserBotDm() - { - return $this->single_user_bot_dm; - } - - /** - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * - * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setSingleUserBotDm($var) - { - GPBUtil::checkBool($var); - $this->single_user_bot_dm = $var; - - return $this; - } - - /** - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * - * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - * @deprecated - */ - public function getThreaded() - { - if ($this->threaded !== false) { - @trigger_error('threaded is deprecated.', E_USER_DEPRECATED); - } - return $this->threaded; - } - - /** - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * - * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setThreaded($var) - { - @trigger_error('threaded is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->threaded = $var; - - return $this; - } - - /** - * Optional. The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Immutable. Whether this space permits any Google Chat user as a - * member. Input when creating a space in a Google Workspace organization. - * Omit this field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * - * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExternalUserAllowed() - { - return $this->external_user_allowed; - } - - /** - * Optional. Immutable. Whether this space permits any Google Chat user as a - * member. Input when creating a space in a Google Workspace organization. - * Omit this field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * - * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExternalUserAllowed($var) - { - GPBUtil::checkBool($var); - $this->external_user_allowed = $var; - - return $this; - } - - /** - * Output only. The threading state in the Chat space. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSpaceThreadingState() - { - return $this->space_threading_state; - } - - /** - * Output only. The threading state in the Chat space. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSpaceThreadingState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\SpaceThreadingState::class); - $this->space_threading_state = $var; - - return $this; - } - - /** - * Optional. Details about the space including description and rules. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\SpaceDetails|null - */ - public function getSpaceDetails() - { - return $this->space_details; - } - - public function hasSpaceDetails() - { - return isset($this->space_details); - } - - public function clearSpaceDetails() - { - unset($this->space_details); - } - - /** - * Optional. Details about the space including description and rules. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\SpaceDetails $var - * @return $this - */ - public function setSpaceDetails($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\SpaceDetails::class); - $this->space_details = $var; - - return $this; - } - - /** - * Optional. The message history state for messages and threads in this space. - * - * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSpaceHistoryState() - { - return $this->space_history_state; - } - - /** - * Optional. The message history state for messages and threads in this space. - * - * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSpaceHistoryState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\HistoryState::class); - $this->space_history_state = $var; - - return $this; - } - - /** - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * Creating a space in `Import Mode`requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getImportMode() - { - return $this->import_mode; - } - - /** - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * Creating a space in `Import Mode`requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setImportMode($var) - { - GPBUtil::checkBool($var); - $this->import_mode = $var; - - return $this; - } - - /** - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Timestamp of the last message in the space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastActiveTime() - { - return $this->last_active_time; - } - - public function hasLastActiveTime() - { - return isset($this->last_active_time); - } - - public function clearLastActiveTime() - { - unset($this->last_active_time); - } - - /** - * Output only. Timestamp of the last message in the space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastActiveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_active_time = $var; - - return $this; - } - - /** - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * - * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAdminInstalled() - { - return $this->admin_installed; - } - - /** - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * - * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAdminInstalled($var) - { - GPBUtil::checkBool($var); - $this->admin_installed = $var; - - return $this; - } - - /** - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * - * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Space\MembershipCount|null - */ - public function getMembershipCount() - { - return $this->membership_count; - } - - public function hasMembershipCount() - { - return isset($this->membership_count); - } - - public function clearMembershipCount() - { - unset($this->membership_count); - } - - /** - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * - * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Space\MembershipCount $var - * @return $this - */ - public function setMembershipCount($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\MembershipCount::class); - $this->membership_count = $var; - - return $this; - } - - /** - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\AccessSettings|null - */ - public function getAccessSettings() - { - return $this->access_settings; - } - - public function hasAccessSettings() - { - return isset($this->access_settings); - } - - public function clearAccessSettings() - { - unset($this->access_settings); - } - - /** - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\AccessSettings $var - * @return $this - */ - public function setAccessSettings($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\AccessSettings::class); - $this->access_settings = $var; - - return $this; - } - - /** - * Optional. Immutable. The customer id of the domain of the space. - * Required only when creating a space with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and `SpaceType` is `SPACE`, otherwise should not be set. - * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer - * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). - * Private apps can also use the `customers/my_customer` alias to create - * the space in the same Google Workspace organization as the app. - * This field isn't populated for direct messages (DMs) or when the space is - * created by non-Google Workspace users. - * - * Generated from protobuf field optional string customer = 24 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCustomer() - { - return isset($this->customer) ? $this->customer : ''; - } - - public function hasCustomer() - { - return isset($this->customer); - } - - public function clearCustomer() - { - unset($this->customer); - } - - /** - * Optional. Immutable. The customer id of the domain of the space. - * Required only when creating a space with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and `SpaceType` is `SPACE`, otherwise should not be set. - * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer - * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). - * Private apps can also use the `customers/my_customer` alias to create - * the space in the same Google Workspace organization as the app. - * This field isn't populated for direct messages (DMs) or when the space is - * created by non-Google Workspace users. - * - * Generated from protobuf field optional string customer = 24 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCustomer($var) - { - GPBUtil::checkString($var, True); - $this->customer = $var; - - return $this; - } - - /** - * Output only. The URI for a user to access the space. - * - * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSpaceUri() - { - return $this->space_uri; - } - - /** - * Output only. The URI for a user to access the space. - * - * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSpaceUri($var) - { - GPBUtil::checkString($var, True); - $this->space_uri = $var; - - return $this; - } - - /** - * Optional. Input only. Predefined space permission settings, input only - * when creating a space. If the field is not set, a collaboration space is - * created. After you create the space, settings are populated in the - * `PermissionSettings` field. - * Setting predefined permission settings supports: - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) with the - * `chat.app.spaces` or `chat.app.spaces.create` scopes. - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - * Generated from protobuf field .google.chat.v1.Space.PredefinedPermissionSettings predefined_permission_settings = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPredefinedPermissionSettings() - { - return $this->readOneof(26); - } - - public function hasPredefinedPermissionSettings() - { - return $this->hasOneof(26); - } - - /** - * Optional. Input only. Predefined space permission settings, input only - * when creating a space. If the field is not set, a collaboration space is - * created. After you create the space, settings are populated in the - * `PermissionSettings` field. - * Setting predefined permission settings supports: - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) with the - * `chat.app.spaces` or `chat.app.spaces.create` scopes. - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - * Generated from protobuf field .google.chat.v1.Space.PredefinedPermissionSettings predefined_permission_settings = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPredefinedPermissionSettings($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\PredefinedPermissionSettings::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * Optional. Space permission settings for existing spaces. Input for - * updating exact space permission settings, where existing permission - * settings are replaced. Output lists current permission settings. - * Reading and updating permission settings supports: - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) with the - * `chat.app.spaces` scope. Only populated and settable when the Chat app - * created the space. - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - * Generated from protobuf field .google.chat.v1.Space.PermissionSettings permission_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSettings|null - */ - public function getPermissionSettings() - { - return $this->readOneof(27); - } - - public function hasPermissionSettings() - { - return $this->hasOneof(27); - } - - /** - * Optional. Space permission settings for existing spaces. Input for - * updating exact space permission settings, where existing permission - * settings are replaced. Output lists current permission settings. - * Reading and updating permission settings supports: - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) with the - * `chat.app.spaces` scope. Only populated and settable when the Chat app - * created the space. - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - * Generated from protobuf field .google.chat.v1.Space.PermissionSettings permission_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSettings $var - * @return $this - */ - public function setPermissionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSettings::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * Output only. The time when the space will be automatically deleted by the - * system if it remains in import mode. - * Each space created in import mode must exit this mode before this expire - * time using `spaces.completeImport`. - * This field is only populated for spaces that were created with import mode. - * - * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getImportModeExpireTime() - { - return $this->import_mode_expire_time; - } - - public function hasImportModeExpireTime() - { - return isset($this->import_mode_expire_time); - } - - public function clearImportModeExpireTime() - { - unset($this->import_mode_expire_time); - } - - /** - * Output only. The time when the space will be automatically deleted by the - * system if it remains in import mode. - * Each space created in import mode must exit this mode before this expire - * time using `spaces.completeImport`. - * This field is only populated for spaces that were created with import mode. - * - * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setImportModeExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->import_mode_expire_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getSpacePermissionSettings() - { - return $this->whichOneof("space_permission_settings"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php deleted file mode 100644 index e32b5a5ce3d2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php +++ /dev/null @@ -1,186 +0,0 @@ -google.chat.v1.Space.AccessSettings - */ -class AccessSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Indicates the access state of the space. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access_state = 0; - /** - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * Reading the target audience supports: - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * with the `chat.app.spaces` scope. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * Setting the target audience requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $audience = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $access_state - * Output only. Indicates the access state of the space. - * @type string $audience - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * Reading the target audience supports: - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * with the `chat.app.spaces` scope. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * Setting the target audience requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Indicates the access state of the space. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAccessState() - { - return $this->access_state; - } - - /** - * Output only. Indicates the access state of the space. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAccessState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\AccessSettings\AccessState::class); - $this->access_state = $var; - - return $this; - } - - /** - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * Reading the target audience supports: - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * with the `chat.app.spaces` scope. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * Setting the target audience requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAudience() - { - return $this->audience; - } - - /** - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * Reading the target audience supports: - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * with the `chat.app.spaces` scope. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * Setting the target audience requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkString($var, True); - $this->audience = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php deleted file mode 100644 index b6ce16ad380e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php +++ /dev/null @@ -1,73 +0,0 @@ -google.chat.v1.Space.AccessSettings.AccessState - */ -class AccessState -{ - /** - * Access state is unknown or not supported in this API. - * - * Generated from protobuf enum ACCESS_STATE_UNSPECIFIED = 0; - */ - const ACCESS_STATE_UNSPECIFIED = 0; - /** - * Only users or Google Groups that have been individually added or - * invited by other users or Google Workspace administrators can discover - * and access the space. - * - * Generated from protobuf enum PRIVATE = 1; - */ - const PBPRIVATE = 1; - /** - * A space manager has granted a target audience access to - * the space. Users or Google Groups that have been individually added or - * invited to the space can also discover and access the space. To learn - * more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * Creating discoverable spaces requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf enum DISCOVERABLE = 2; - */ - const DISCOVERABLE = 2; - - private static $valueToName = [ - self::ACCESS_STATE_UNSPECIFIED => 'ACCESS_STATE_UNSPECIFIED', - self::PBPRIVATE => 'PRIVATE', - self::DISCOVERABLE => 'DISCOVERABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php deleted file mode 100644 index ddab8a9a536f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.Space.MembershipCount - */ -class MembershipCount extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Count of human users that have directly joined the space, - * not counting users joined by having membership in a joined group. - * - * Generated from protobuf field int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $joined_direct_human_user_count = 0; - /** - * Output only. Count of all groups that have directly joined the space. - * - * Generated from protobuf field int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $joined_group_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $joined_direct_human_user_count - * Output only. Count of human users that have directly joined the space, - * not counting users joined by having membership in a joined group. - * @type int $joined_group_count - * Output only. Count of all groups that have directly joined the space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Count of human users that have directly joined the space, - * not counting users joined by having membership in a joined group. - * - * Generated from protobuf field int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getJoinedDirectHumanUserCount() - { - return $this->joined_direct_human_user_count; - } - - /** - * Output only. Count of human users that have directly joined the space, - * not counting users joined by having membership in a joined group. - * - * Generated from protobuf field int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setJoinedDirectHumanUserCount($var) - { - GPBUtil::checkInt32($var); - $this->joined_direct_human_user_count = $var; - - return $this; - } - - /** - * Output only. Count of all groups that have directly joined the space. - * - * Generated from protobuf field int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getJoinedGroupCount() - { - return $this->joined_group_count; - } - - /** - * Output only. Count of all groups that have directly joined the space. - * - * Generated from protobuf field int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setJoinedGroupCount($var) - { - GPBUtil::checkInt32($var); - $this->joined_group_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php deleted file mode 100644 index 8987cd6676dd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php +++ /dev/null @@ -1,169 +0,0 @@ -google.chat.v1.Space.PermissionSetting - */ -class PermissionSetting extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether space owners - * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) - * have this permission. - * - * Generated from protobuf field bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $managers_allowed = false; - /** - * Optional. Whether space managers - * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) - * have this permission. - * - * Generated from protobuf field optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $assistant_managers_allowed = null; - /** - * Optional. Whether basic space members - * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) - * have this permission. - * - * Generated from protobuf field bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $members_allowed = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $managers_allowed - * Optional. Whether space owners - * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) - * have this permission. - * @type bool $assistant_managers_allowed - * Optional. Whether space managers - * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) - * have this permission. - * @type bool $members_allowed - * Optional. Whether basic space members - * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) - * have this permission. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether space owners - * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) - * have this permission. - * - * Generated from protobuf field bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getManagersAllowed() - { - return $this->managers_allowed; - } - - /** - * Optional. Whether space owners - * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) - * have this permission. - * - * Generated from protobuf field bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setManagersAllowed($var) - { - GPBUtil::checkBool($var); - $this->managers_allowed = $var; - - return $this; - } - - /** - * Optional. Whether space managers - * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) - * have this permission. - * - * Generated from protobuf field optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAssistantManagersAllowed() - { - return isset($this->assistant_managers_allowed) ? $this->assistant_managers_allowed : false; - } - - public function hasAssistantManagersAllowed() - { - return isset($this->assistant_managers_allowed); - } - - public function clearAssistantManagersAllowed() - { - unset($this->assistant_managers_allowed); - } - - /** - * Optional. Whether space managers - * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) - * have this permission. - * - * Generated from protobuf field optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAssistantManagersAllowed($var) - { - GPBUtil::checkBool($var); - $this->assistant_managers_allowed = $var; - - return $this; - } - - /** - * Optional. Whether basic space members - * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) - * have this permission. - * - * Generated from protobuf field bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getMembersAllowed() - { - return $this->members_allowed; - } - - /** - * Optional. Whether basic space members - * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) - * have this permission. - * - * Generated from protobuf field bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setMembersAllowed($var) - { - GPBUtil::checkBool($var); - $this->members_allowed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php deleted file mode 100644 index 5208bb5b2713..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php +++ /dev/null @@ -1,392 +0,0 @@ -google.chat.v1.Space.PermissionSettings - */ -class PermissionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Setting for managing members and groups in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $manage_members_and_groups = null; - /** - * Optional. Setting for updating space name, avatar, description and - * guidelines. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $modify_space_details = null; - /** - * Optional. Setting for toggling space history on and off. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $toggle_history = null; - /** - * Optional. Setting for using \@all in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_at_mention_all = null; - /** - * Optional. Setting for managing apps in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $manage_apps = null; - /** - * Optional. Setting for managing webhooks in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $manage_webhooks = null; - /** - * Output only. Setting for posting messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $post_messages = null; - /** - * Optional. Setting for replying to messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $reply_messages = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_members_and_groups - * Optional. Setting for managing members and groups in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $modify_space_details - * Optional. Setting for updating space name, avatar, description and - * guidelines. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $toggle_history - * Optional. Setting for toggling space history on and off. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $use_at_mention_all - * Optional. Setting for using \@all in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_apps - * Optional. Setting for managing apps in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_webhooks - * Optional. Setting for managing webhooks in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $post_messages - * Output only. Setting for posting messages in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $reply_messages - * Optional. Setting for replying to messages in a space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Setting for managing members and groups in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getManageMembersAndGroups() - { - return $this->manage_members_and_groups; - } - - public function hasManageMembersAndGroups() - { - return isset($this->manage_members_and_groups); - } - - public function clearManageMembersAndGroups() - { - unset($this->manage_members_and_groups); - } - - /** - * Optional. Setting for managing members and groups in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setManageMembersAndGroups($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->manage_members_and_groups = $var; - - return $this; - } - - /** - * Optional. Setting for updating space name, avatar, description and - * guidelines. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getModifySpaceDetails() - { - return $this->modify_space_details; - } - - public function hasModifySpaceDetails() - { - return isset($this->modify_space_details); - } - - public function clearModifySpaceDetails() - { - unset($this->modify_space_details); - } - - /** - * Optional. Setting for updating space name, avatar, description and - * guidelines. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setModifySpaceDetails($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->modify_space_details = $var; - - return $this; - } - - /** - * Optional. Setting for toggling space history on and off. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getToggleHistory() - { - return $this->toggle_history; - } - - public function hasToggleHistory() - { - return isset($this->toggle_history); - } - - public function clearToggleHistory() - { - unset($this->toggle_history); - } - - /** - * Optional. Setting for toggling space history on and off. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setToggleHistory($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->toggle_history = $var; - - return $this; - } - - /** - * Optional. Setting for using \@all in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getUseAtMentionAll() - { - return $this->use_at_mention_all; - } - - public function hasUseAtMentionAll() - { - return isset($this->use_at_mention_all); - } - - public function clearUseAtMentionAll() - { - unset($this->use_at_mention_all); - } - - /** - * Optional. Setting for using \@all in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setUseAtMentionAll($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->use_at_mention_all = $var; - - return $this; - } - - /** - * Optional. Setting for managing apps in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getManageApps() - { - return $this->manage_apps; - } - - public function hasManageApps() - { - return isset($this->manage_apps); - } - - public function clearManageApps() - { - unset($this->manage_apps); - } - - /** - * Optional. Setting for managing apps in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setManageApps($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->manage_apps = $var; - - return $this; - } - - /** - * Optional. Setting for managing webhooks in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getManageWebhooks() - { - return $this->manage_webhooks; - } - - public function hasManageWebhooks() - { - return isset($this->manage_webhooks); - } - - public function clearManageWebhooks() - { - unset($this->manage_webhooks); - } - - /** - * Optional. Setting for managing webhooks in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setManageWebhooks($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->manage_webhooks = $var; - - return $this; - } - - /** - * Output only. Setting for posting messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getPostMessages() - { - return $this->post_messages; - } - - public function hasPostMessages() - { - return isset($this->post_messages); - } - - public function clearPostMessages() - { - unset($this->post_messages); - } - - /** - * Output only. Setting for posting messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setPostMessages($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->post_messages = $var; - - return $this; - } - - /** - * Optional. Setting for replying to messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getReplyMessages() - { - return $this->reply_messages; - } - - public function hasReplyMessages() - { - return isset($this->reply_messages); - } - - public function clearReplyMessages() - { - unset($this->reply_messages); - } - - /** - * Optional. Setting for replying to messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setReplyMessages($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->reply_messages = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php deleted file mode 100644 index c3efd829b589..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php +++ /dev/null @@ -1,66 +0,0 @@ -google.chat.v1.Space.PredefinedPermissionSettings - */ -class PredefinedPermissionSettings -{ - /** - * Unspecified. Don't use. - * - * Generated from protobuf enum PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0; - */ - const PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0; - /** - * Setting to make the space a collaboration space where all members can - * post messages. - * - * Generated from protobuf enum COLLABORATION_SPACE = 1; - */ - const COLLABORATION_SPACE = 1; - /** - * Setting to make the space an announcement space where only space managers - * can post messages. - * - * Generated from protobuf enum ANNOUNCEMENT_SPACE = 2; - */ - const ANNOUNCEMENT_SPACE = 2; - - private static $valueToName = [ - self::PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED => 'PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED', - self::COLLABORATION_SPACE => 'COLLABORATION_SPACE', - self::ANNOUNCEMENT_SPACE => 'ANNOUNCEMENT_SPACE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php deleted file mode 100644 index 503011006553..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php +++ /dev/null @@ -1,113 +0,0 @@ -google.chat.v1.Space.SpaceDetails - */ -class SpaceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * - * Generated from protobuf field string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $guidelines = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * @type string $guidelines - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * - * Generated from protobuf field string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getGuidelines() - { - return $this->guidelines; - } - - /** - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * - * Generated from protobuf field string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setGuidelines($var) - { - GPBUtil::checkString($var, True); - $this->guidelines = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php deleted file mode 100644 index 21245bdae2bd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php +++ /dev/null @@ -1,72 +0,0 @@ -google.chat.v1.Space.SpaceThreadingState - */ -class SpaceThreadingState -{ - /** - * Reserved. - * - * Generated from protobuf enum SPACE_THREADING_STATE_UNSPECIFIED = 0; - */ - const SPACE_THREADING_STATE_UNSPECIFIED = 0; - /** - * Named spaces that support message threads. When users respond to a - * message, they can reply in-thread, which keeps their response in the - * context of the original message. - * - * Generated from protobuf enum THREADED_MESSAGES = 2; - */ - const THREADED_MESSAGES = 2; - /** - * Named spaces where the conversation is organized by topic. Topics and - * their replies are grouped together. - * - * Generated from protobuf enum GROUPED_MESSAGES = 3; - */ - const GROUPED_MESSAGES = 3; - /** - * Direct messages (DMs) between two people and group conversations between - * 3 or more people. - * - * Generated from protobuf enum UNTHREADED_MESSAGES = 4; - */ - const UNTHREADED_MESSAGES = 4; - - private static $valueToName = [ - self::SPACE_THREADING_STATE_UNSPECIFIED => 'SPACE_THREADING_STATE_UNSPECIFIED', - self::THREADED_MESSAGES => 'THREADED_MESSAGES', - self::GROUPED_MESSAGES => 'GROUPED_MESSAGES', - self::UNTHREADED_MESSAGES => 'UNTHREADED_MESSAGES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php deleted file mode 100644 index a008a9e62ddc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.chat.v1.Space.SpaceType - */ -class SpaceType -{ - /** - * Reserved. - * - * Generated from protobuf enum SPACE_TYPE_UNSPECIFIED = 0; - */ - const SPACE_TYPE_UNSPECIFIED = 0; - /** - * A place where people send messages, share files, and collaborate. - * A `SPACE` can include Chat apps. - * - * Generated from protobuf enum SPACE = 1; - */ - const SPACE = 1; - /** - * Group conversations between 3 or more people. - * A `GROUP_CHAT` can include Chat apps. - * - * Generated from protobuf enum GROUP_CHAT = 2; - */ - const GROUP_CHAT = 2; - /** - * 1:1 messages between two humans or a human and a Chat app. - * - * Generated from protobuf enum DIRECT_MESSAGE = 3; - */ - const DIRECT_MESSAGE = 3; - - private static $valueToName = [ - self::SPACE_TYPE_UNSPECIFIED => 'SPACE_TYPE_UNSPECIFIED', - self::SPACE => 'SPACE', - self::GROUP_CHAT => 'GROUP_CHAT', - self::DIRECT_MESSAGE => 'DIRECT_MESSAGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php deleted file mode 100644 index 873463ee07c2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php +++ /dev/null @@ -1,62 +0,0 @@ -google.chat.v1.Space.Type - */ -class Type -{ - /** - * Reserved. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Conversations between two or more humans. - * - * Generated from protobuf enum ROOM = 1; - */ - const ROOM = 1; - /** - * 1:1 Direct Message between a human and a Chat app, where all messages are - * flat. Note that this doesn't include direct messages between two humans. - * - * Generated from protobuf enum DM = 2; - */ - const DM = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ROOM => 'ROOM', - self::DM => 'DM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php deleted file mode 100644 index b42c28bf60ad..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.SpaceBatchUpdatedEventData - */ -class SpaceBatchUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of updated spaces. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; - */ - private $spaces; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\SpaceUpdatedEventData[] $spaces - * A list of updated spaces. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of updated spaces. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; - * @return RepeatedField<\Google\Apps\Chat\V1\SpaceUpdatedEventData> - */ - public function getSpaces() - { - return $this->spaces; - } - - /** - * A list of updated spaces. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; - * @param \Google\Apps\Chat\V1\SpaceUpdatedEventData[] $var - * @return $this - */ - public function setSpaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SpaceUpdatedEventData::class); - $this->spaces = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php deleted file mode 100644 index 1f5d95a05726..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php +++ /dev/null @@ -1,956 +0,0 @@ -google.chat.v1.SpaceEvent - */ -class SpaceEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Time when the event occurred. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - */ - protected $event_time = null; - /** - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field string event_type = 6; - */ - protected $event_type = ''; - protected $payload; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * @type \Google\Protobuf\Timestamp $event_time - * Time when the event occurred. - * @type string $event_type - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MessageCreatedEventData $message_created_event_data - * Event payload for a new message. - * Event type: `google.workspace.chat.message.v1.created` - * @type \Google\Apps\Chat\V1\MessageUpdatedEventData $message_updated_event_data - * Event payload for an updated message. - * Event type: `google.workspace.chat.message.v1.updated` - * @type \Google\Apps\Chat\V1\MessageDeletedEventData $message_deleted_event_data - * Event payload for a deleted message. - * Event type: `google.workspace.chat.message.v1.deleted` - * @type \Google\Apps\Chat\V1\MessageBatchCreatedEventData $message_batch_created_event_data - * Event payload for multiple new messages. - * Event type: `google.workspace.chat.message.v1.batchCreated` - * @type \Google\Apps\Chat\V1\MessageBatchUpdatedEventData $message_batch_updated_event_data - * Event payload for multiple updated messages. - * Event type: `google.workspace.chat.message.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MessageBatchDeletedEventData $message_batch_deleted_event_data - * Event payload for multiple deleted messages. - * Event type: `google.workspace.chat.message.v1.batchDeleted` - * @type \Google\Apps\Chat\V1\SpaceUpdatedEventData $space_updated_event_data - * Event payload for a space update. - * Event type: `google.workspace.chat.space.v1.updated` - * @type \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData $space_batch_updated_event_data - * Event payload for multiple updates to a space. - * Event type: `google.workspace.chat.space.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MembershipCreatedEventData $membership_created_event_data - * Event payload for a new membership. - * Event type: `google.workspace.chat.membership.v1.created` - * @type \Google\Apps\Chat\V1\MembershipUpdatedEventData $membership_updated_event_data - * Event payload for an updated membership. - * Event type: `google.workspace.chat.membership.v1.updated` - * @type \Google\Apps\Chat\V1\MembershipDeletedEventData $membership_deleted_event_data - * Event payload for a deleted membership. - * Event type: `google.workspace.chat.membership.v1.deleted` - * @type \Google\Apps\Chat\V1\MembershipBatchCreatedEventData $membership_batch_created_event_data - * Event payload for multiple new memberships. - * Event type: `google.workspace.chat.membership.v1.batchCreated` - * @type \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData $membership_batch_updated_event_data - * Event payload for multiple updated memberships. - * Event type: `google.workspace.chat.membership.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MembershipBatchDeletedEventData $membership_batch_deleted_event_data - * Event payload for multiple deleted memberships. - * Event type: `google.workspace.chat.membership.v1.batchDeleted` - * @type \Google\Apps\Chat\V1\ReactionCreatedEventData $reaction_created_event_data - * Event payload for a new reaction. - * Event type: `google.workspace.chat.reaction.v1.created` - * @type \Google\Apps\Chat\V1\ReactionDeletedEventData $reaction_deleted_event_data - * Event payload for a deleted reaction. - * Event type: `google.workspace.chat.reaction.v1.deleted` - * @type \Google\Apps\Chat\V1\ReactionBatchCreatedEventData $reaction_batch_created_event_data - * Event payload for multiple new reactions. - * Event type: `google.workspace.chat.reaction.v1.batchCreated` - * @type \Google\Apps\Chat\V1\ReactionBatchDeletedEventData $reaction_batch_deleted_event_data - * Event payload for multiple deleted reactions. - * Event type: `google.workspace.chat.reaction.v1.batchDeleted` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Time when the event occurred. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEventTime() - { - return $this->event_time; - } - - public function hasEventTime() - { - return isset($this->event_time); - } - - public function clearEventTime() - { - unset($this->event_time); - } - - /** - * Time when the event occurred. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEventTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->event_time = $var; - - return $this; - } - - /** - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field string event_type = 6; - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field string event_type = 6; - * @param string $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkString($var, True); - $this->event_type = $var; - - return $this; - } - - /** - * Event payload for a new message. - * Event type: `google.workspace.chat.message.v1.created` - * - * Generated from protobuf field .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; - * @return \Google\Apps\Chat\V1\MessageCreatedEventData|null - */ - public function getMessageCreatedEventData() - { - return $this->readOneof(12); - } - - public function hasMessageCreatedEventData() - { - return $this->hasOneof(12); - } - - /** - * Event payload for a new message. - * Event type: `google.workspace.chat.message.v1.created` - * - * Generated from protobuf field .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; - * @param \Google\Apps\Chat\V1\MessageCreatedEventData $var - * @return $this - */ - public function setMessageCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageCreatedEventData::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Event payload for an updated message. - * Event type: `google.workspace.chat.message.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; - * @return \Google\Apps\Chat\V1\MessageUpdatedEventData|null - */ - public function getMessageUpdatedEventData() - { - return $this->readOneof(13); - } - - public function hasMessageUpdatedEventData() - { - return $this->hasOneof(13); - } - - /** - * Event payload for an updated message. - * Event type: `google.workspace.chat.message.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; - * @param \Google\Apps\Chat\V1\MessageUpdatedEventData $var - * @return $this - */ - public function setMessageUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageUpdatedEventData::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Event payload for a deleted message. - * Event type: `google.workspace.chat.message.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; - * @return \Google\Apps\Chat\V1\MessageDeletedEventData|null - */ - public function getMessageDeletedEventData() - { - return $this->readOneof(14); - } - - public function hasMessageDeletedEventData() - { - return $this->hasOneof(14); - } - - /** - * Event payload for a deleted message. - * Event type: `google.workspace.chat.message.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; - * @param \Google\Apps\Chat\V1\MessageDeletedEventData $var - * @return $this - */ - public function setMessageDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageDeletedEventData::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Event payload for multiple new messages. - * Event type: `google.workspace.chat.message.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; - * @return \Google\Apps\Chat\V1\MessageBatchCreatedEventData|null - */ - public function getMessageBatchCreatedEventData() - { - return $this->readOneof(26); - } - - public function hasMessageBatchCreatedEventData() - { - return $this->hasOneof(26); - } - - /** - * Event payload for multiple new messages. - * Event type: `google.workspace.chat.message.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; - * @param \Google\Apps\Chat\V1\MessageBatchCreatedEventData $var - * @return $this - */ - public function setMessageBatchCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchCreatedEventData::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * Event payload for multiple updated messages. - * Event type: `google.workspace.chat.message.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; - * @return \Google\Apps\Chat\V1\MessageBatchUpdatedEventData|null - */ - public function getMessageBatchUpdatedEventData() - { - return $this->readOneof(27); - } - - public function hasMessageBatchUpdatedEventData() - { - return $this->hasOneof(27); - } - - /** - * Event payload for multiple updated messages. - * Event type: `google.workspace.chat.message.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; - * @param \Google\Apps\Chat\V1\MessageBatchUpdatedEventData $var - * @return $this - */ - public function setMessageBatchUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchUpdatedEventData::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * Event payload for multiple deleted messages. - * Event type: `google.workspace.chat.message.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; - * @return \Google\Apps\Chat\V1\MessageBatchDeletedEventData|null - */ - public function getMessageBatchDeletedEventData() - { - return $this->readOneof(28); - } - - public function hasMessageBatchDeletedEventData() - { - return $this->hasOneof(28); - } - - /** - * Event payload for multiple deleted messages. - * Event type: `google.workspace.chat.message.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; - * @param \Google\Apps\Chat\V1\MessageBatchDeletedEventData $var - * @return $this - */ - public function setMessageBatchDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchDeletedEventData::class); - $this->writeOneof(28, $var); - - return $this; - } - - /** - * Event payload for a space update. - * Event type: `google.workspace.chat.space.v1.updated` - * - * Generated from protobuf field .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; - * @return \Google\Apps\Chat\V1\SpaceUpdatedEventData|null - */ - public function getSpaceUpdatedEventData() - { - return $this->readOneof(15); - } - - public function hasSpaceUpdatedEventData() - { - return $this->hasOneof(15); - } - - /** - * Event payload for a space update. - * Event type: `google.workspace.chat.space.v1.updated` - * - * Generated from protobuf field .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; - * @param \Google\Apps\Chat\V1\SpaceUpdatedEventData $var - * @return $this - */ - public function setSpaceUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceUpdatedEventData::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Event payload for multiple updates to a space. - * Event type: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; - * @return \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData|null - */ - public function getSpaceBatchUpdatedEventData() - { - return $this->readOneof(29); - } - - public function hasSpaceBatchUpdatedEventData() - { - return $this->hasOneof(29); - } - - /** - * Event payload for multiple updates to a space. - * Event type: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; - * @param \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData $var - * @return $this - */ - public function setSpaceBatchUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData::class); - $this->writeOneof(29, $var); - - return $this; - } - - /** - * Event payload for a new membership. - * Event type: `google.workspace.chat.membership.v1.created` - * - * Generated from protobuf field .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; - * @return \Google\Apps\Chat\V1\MembershipCreatedEventData|null - */ - public function getMembershipCreatedEventData() - { - return $this->readOneof(17); - } - - public function hasMembershipCreatedEventData() - { - return $this->hasOneof(17); - } - - /** - * Event payload for a new membership. - * Event type: `google.workspace.chat.membership.v1.created` - * - * Generated from protobuf field .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; - * @param \Google\Apps\Chat\V1\MembershipCreatedEventData $var - * @return $this - */ - public function setMembershipCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipCreatedEventData::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Event payload for an updated membership. - * Event type: `google.workspace.chat.membership.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; - * @return \Google\Apps\Chat\V1\MembershipUpdatedEventData|null - */ - public function getMembershipUpdatedEventData() - { - return $this->readOneof(18); - } - - public function hasMembershipUpdatedEventData() - { - return $this->hasOneof(18); - } - - /** - * Event payload for an updated membership. - * Event type: `google.workspace.chat.membership.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; - * @param \Google\Apps\Chat\V1\MembershipUpdatedEventData $var - * @return $this - */ - public function setMembershipUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipUpdatedEventData::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * Event payload for a deleted membership. - * Event type: `google.workspace.chat.membership.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; - * @return \Google\Apps\Chat\V1\MembershipDeletedEventData|null - */ - public function getMembershipDeletedEventData() - { - return $this->readOneof(219); - } - - public function hasMembershipDeletedEventData() - { - return $this->hasOneof(219); - } - - /** - * Event payload for a deleted membership. - * Event type: `google.workspace.chat.membership.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; - * @param \Google\Apps\Chat\V1\MembershipDeletedEventData $var - * @return $this - */ - public function setMembershipDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipDeletedEventData::class); - $this->writeOneof(219, $var); - - return $this; - } - - /** - * Event payload for multiple new memberships. - * Event type: `google.workspace.chat.membership.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; - * @return \Google\Apps\Chat\V1\MembershipBatchCreatedEventData|null - */ - public function getMembershipBatchCreatedEventData() - { - return $this->readOneof(31); - } - - public function hasMembershipBatchCreatedEventData() - { - return $this->hasOneof(31); - } - - /** - * Event payload for multiple new memberships. - * Event type: `google.workspace.chat.membership.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; - * @param \Google\Apps\Chat\V1\MembershipBatchCreatedEventData $var - * @return $this - */ - public function setMembershipBatchCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchCreatedEventData::class); - $this->writeOneof(31, $var); - - return $this; - } - - /** - * Event payload for multiple updated memberships. - * Event type: `google.workspace.chat.membership.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; - * @return \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData|null - */ - public function getMembershipBatchUpdatedEventData() - { - return $this->readOneof(32); - } - - public function hasMembershipBatchUpdatedEventData() - { - return $this->hasOneof(32); - } - - /** - * Event payload for multiple updated memberships. - * Event type: `google.workspace.chat.membership.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; - * @param \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData $var - * @return $this - */ - public function setMembershipBatchUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData::class); - $this->writeOneof(32, $var); - - return $this; - } - - /** - * Event payload for multiple deleted memberships. - * Event type: `google.workspace.chat.membership.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; - * @return \Google\Apps\Chat\V1\MembershipBatchDeletedEventData|null - */ - public function getMembershipBatchDeletedEventData() - { - return $this->readOneof(33); - } - - public function hasMembershipBatchDeletedEventData() - { - return $this->hasOneof(33); - } - - /** - * Event payload for multiple deleted memberships. - * Event type: `google.workspace.chat.membership.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; - * @param \Google\Apps\Chat\V1\MembershipBatchDeletedEventData $var - * @return $this - */ - public function setMembershipBatchDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchDeletedEventData::class); - $this->writeOneof(33, $var); - - return $this; - } - - /** - * Event payload for a new reaction. - * Event type: `google.workspace.chat.reaction.v1.created` - * - * Generated from protobuf field .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; - * @return \Google\Apps\Chat\V1\ReactionCreatedEventData|null - */ - public function getReactionCreatedEventData() - { - return $this->readOneof(21); - } - - public function hasReactionCreatedEventData() - { - return $this->hasOneof(21); - } - - /** - * Event payload for a new reaction. - * Event type: `google.workspace.chat.reaction.v1.created` - * - * Generated from protobuf field .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; - * @param \Google\Apps\Chat\V1\ReactionCreatedEventData $var - * @return $this - */ - public function setReactionCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionCreatedEventData::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Event payload for a deleted reaction. - * Event type: `google.workspace.chat.reaction.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; - * @return \Google\Apps\Chat\V1\ReactionDeletedEventData|null - */ - public function getReactionDeletedEventData() - { - return $this->readOneof(22); - } - - public function hasReactionDeletedEventData() - { - return $this->hasOneof(22); - } - - /** - * Event payload for a deleted reaction. - * Event type: `google.workspace.chat.reaction.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; - * @param \Google\Apps\Chat\V1\ReactionDeletedEventData $var - * @return $this - */ - public function setReactionDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionDeletedEventData::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * Event payload for multiple new reactions. - * Event type: `google.workspace.chat.reaction.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; - * @return \Google\Apps\Chat\V1\ReactionBatchCreatedEventData|null - */ - public function getReactionBatchCreatedEventData() - { - return $this->readOneof(34); - } - - public function hasReactionBatchCreatedEventData() - { - return $this->hasOneof(34); - } - - /** - * Event payload for multiple new reactions. - * Event type: `google.workspace.chat.reaction.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; - * @param \Google\Apps\Chat\V1\ReactionBatchCreatedEventData $var - * @return $this - */ - public function setReactionBatchCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionBatchCreatedEventData::class); - $this->writeOneof(34, $var); - - return $this; - } - - /** - * Event payload for multiple deleted reactions. - * Event type: `google.workspace.chat.reaction.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; - * @return \Google\Apps\Chat\V1\ReactionBatchDeletedEventData|null - */ - public function getReactionBatchDeletedEventData() - { - return $this->readOneof(35); - } - - public function hasReactionBatchDeletedEventData() - { - return $this->hasOneof(35); - } - - /** - * Event payload for multiple deleted reactions. - * Event type: `google.workspace.chat.reaction.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; - * @param \Google\Apps\Chat\V1\ReactionBatchDeletedEventData $var - * @return $this - */ - public function setReactionBatchDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionBatchDeletedEventData::class); - $this->writeOneof(35, $var); - - return $this; - } - - /** - * @return string - */ - public function getPayload() - { - return $this->whichOneof("payload"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php deleted file mode 100644 index 12100626052e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting.php +++ /dev/null @@ -1,159 +0,0 @@ -google.chat.v1.SpaceNotificationSetting - */ -class SpaceNotificationSetting extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the space notification setting. - * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The notification setting. - * - * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2; - */ - protected $notification_setting = null; - /** - * The space notification mute setting. - * - * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3; - */ - protected $mute_setting = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the space notification setting. - * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. - * @type int $notification_setting - * The notification setting. - * @type int $mute_setting - * The space notification mute setting. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceNotificationSetting::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the space notification setting. - * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the space notification setting. - * Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The notification setting. - * - * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2; - * @return int - */ - public function getNotificationSetting() - { - return isset($this->notification_setting) ? $this->notification_setting : 0; - } - - public function hasNotificationSetting() - { - return isset($this->notification_setting); - } - - public function clearNotificationSetting() - { - unset($this->notification_setting); - } - - /** - * The notification setting. - * - * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.NotificationSetting notification_setting = 2; - * @param int $var - * @return $this - */ - public function setNotificationSetting($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SpaceNotificationSetting\NotificationSetting::class); - $this->notification_setting = $var; - - return $this; - } - - /** - * The space notification mute setting. - * - * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3; - * @return int - */ - public function getMuteSetting() - { - return isset($this->mute_setting) ? $this->mute_setting : 0; - } - - public function hasMuteSetting() - { - return isset($this->mute_setting); - } - - public function clearMuteSetting() - { - unset($this->mute_setting); - } - - /** - * The space notification mute setting. - * - * Generated from protobuf field optional .google.chat.v1.SpaceNotificationSetting.MuteSetting mute_setting = 3; - * @param int $var - * @return $this - */ - public function setMuteSetting($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SpaceNotificationSetting\MuteSetting::class); - $this->mute_setting = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php deleted file mode 100644 index 303e3ff93322..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/MuteSetting.php +++ /dev/null @@ -1,63 +0,0 @@ -google.chat.v1.SpaceNotificationSetting.MuteSetting - */ -class MuteSetting -{ - /** - * Reserved. - * - * Generated from protobuf enum MUTE_SETTING_UNSPECIFIED = 0; - */ - const MUTE_SETTING_UNSPECIFIED = 0; - /** - * The user will receive notifications for the space based on the - * notification setting. - * - * Generated from protobuf enum UNMUTED = 1; - */ - const UNMUTED = 1; - /** - * The user will not receive any notifications for the space, regardless of - * the notification setting. - * - * Generated from protobuf enum MUTED = 2; - */ - const MUTED = 2; - - private static $valueToName = [ - self::MUTE_SETTING_UNSPECIFIED => 'MUTE_SETTING_UNSPECIFIED', - self::UNMUTED => 'UNMUTED', - self::MUTED => 'MUTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php deleted file mode 100644 index fb63738c974b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceNotificationSetting/NotificationSetting.php +++ /dev/null @@ -1,80 +0,0 @@ -google.chat.v1.SpaceNotificationSetting.NotificationSetting - */ -class NotificationSetting -{ - /** - * Reserved. - * - * Generated from protobuf enum NOTIFICATION_SETTING_UNSPECIFIED = 0; - */ - const NOTIFICATION_SETTING_UNSPECIFIED = 0; - /** - * Notifications are triggered by \@mentions, followed threads, first - * message of new threads. All new threads are automatically followed, - * unless manually unfollowed by the user. - * - * Generated from protobuf enum ALL = 1; - */ - const ALL = 1; - /** - * The notification is triggered by \@mentions, followed threads, first - * message of new threads. Not available for 1:1 direct messages. - * - * Generated from protobuf enum MAIN_CONVERSATIONS = 2; - */ - const MAIN_CONVERSATIONS = 2; - /** - * The notification is triggered by \@mentions, followed threads. Not - * available for 1:1 direct messages. - * - * Generated from protobuf enum FOR_YOU = 3; - */ - const FOR_YOU = 3; - /** - * Notification is off. - * - * Generated from protobuf enum OFF = 4; - */ - const OFF = 4; - - private static $valueToName = [ - self::NOTIFICATION_SETTING_UNSPECIFIED => 'NOTIFICATION_SETTING_UNSPECIFIED', - self::ALL => 'ALL', - self::MAIN_CONVERSATIONS => 'MAIN_CONVERSATIONS', - self::FOR_YOU => 'FOR_YOU', - self::OFF => 'OFF', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php deleted file mode 100644 index eeb81eb2a3c7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php +++ /dev/null @@ -1,124 +0,0 @@ -google.chat.v1.SpaceReadState - */ -class SpaceReadState extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $last_read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * @type \Google\Protobuf\Timestamp $last_read_time - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastReadTime() - { - return $this->last_read_time; - } - - public function hasLastReadTime() - { - return isset($this->last_read_time); - } - - public function clearLastReadTime() - { - unset($this->last_read_time); - } - - /** - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_read_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php deleted file mode 100644 index 9a6ac7fe5c1b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.SpaceUpdatedEventData - */ -class SpaceUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The updated space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - */ - protected $space = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * The updated space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The updated space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * The updated space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php deleted file mode 100644 index ffc414bd13d6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceView.php +++ /dev/null @@ -1,70 +0,0 @@ -google.chat.v1.SpaceView - */ -class SpaceView -{ - /** - * The default / unset value. - * - * Generated from protobuf enum SPACE_VIEW_UNSPECIFIED = 0; - */ - const SPACE_VIEW_UNSPECIFIED = 0; - /** - * Populates only the Space resource name. - * - * Generated from protobuf enum SPACE_VIEW_RESOURCE_NAME_ONLY = 3; - */ - const SPACE_VIEW_RESOURCE_NAME_ONLY = 3; - /** - * Populates Space resource fields. Note: the `permissionSettings` field - * will not be populated. - * Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow - * reading space data, for example, - * https://www.googleapis.com/auth/chat.spaces or - * https://www.googleapis.com/auth/chat.spaces.readonly. - * - * Generated from protobuf enum SPACE_VIEW_EXPANDED = 4; - */ - const SPACE_VIEW_EXPANDED = 4; - - private static $valueToName = [ - self::SPACE_VIEW_UNSPECIFIED => 'SPACE_VIEW_UNSPECIFIED', - self::SPACE_VIEW_RESOURCE_NAME_ONLY => 'SPACE_VIEW_RESOURCE_NAME_ONLY', - self::SPACE_VIEW_EXPANDED => 'SPACE_VIEW_EXPANDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php deleted file mode 100644 index 459c2aafdead..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php +++ /dev/null @@ -1,134 +0,0 @@ -google.chat.v1.Thread - */ -class Thread extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * - * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $thread_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * @type string $thread_key - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * - * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getThreadKey() - { - return $this->thread_key; - } - - /** - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * - * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setThreadKey($var) - { - GPBUtil::checkString($var, True); - $this->thread_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php deleted file mode 100644 index a89311fa80aa..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php +++ /dev/null @@ -1,120 +0,0 @@ -google.chat.v1.ThreadReadState - */ -class ThreadReadState extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; - */ - protected $last_read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * @type \Google\Protobuf\Timestamp $last_read_time - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ThreadReadState::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastReadTime() - { - return $this->last_read_time; - } - - public function hasLastReadTime() - { - return isset($this->last_read_time); - } - - public function clearLastReadTime() - { - unset($this->last_read_time); - } - - /** - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_read_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php deleted file mode 100644 index 4ad8dc145f96..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.chat.v1.UpdateMembershipRequest - */ -class UpdateMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $membership = null; - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param \Google\Apps\Chat\V1\Membership $membership Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * - * Currently supported field paths: - * - * - `role` - * - * @return \Google\Apps\Chat\V1\UpdateMembershipRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Membership $membership, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMembership($membership) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php deleted file mode 100644 index b1700572743f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php +++ /dev/null @@ -1,244 +0,0 @@ -google.chat.v1.UpdateMessageRequest - */ -class UpdateMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Message with fields updated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message = null; - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `quoted_message_metadata` (Only allows removal of the quoted message.) - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param \Google\Apps\Chat\V1\Message $message Required. Message with fields updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * - * Currently supported field paths: - * - * - `text` - * - * - `attachment` - * - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * - `quoted_message_metadata` (Only allows removal of the quoted message.) - * - * @return \Google\Apps\Chat\V1\UpdateMessageRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Message $message, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMessage($message) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * Required. Message with fields updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `quoted_message_metadata` (Only allows removal of the quoted message.) - * @type bool $allow_missing - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. Message with fields updated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * Required. Message with fields updated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `quoted_message_metadata` (Only allows removal of the quoted message.) - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `quoted_message_metadata` (Only allows removal of the quoted message.) - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php deleted file mode 100644 index 955468f0b107..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSectionRequest.php +++ /dev/null @@ -1,148 +0,0 @@ -google.chat.v1.UpdateSectionRequest - */ -class UpdateSectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The section to update. - * - * Generated from protobuf field .google.chat.v1.Section section = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $section = null; - /** - * Required. The mask to specify which fields to update. - * Currently supported field paths: - * - `display_name` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Apps\Chat\V1\Section $section Required. The section to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The mask to specify which fields to update. - * - * Currently supported field paths: - * - * - `display_name` - * - * @return \Google\Apps\Chat\V1\UpdateSectionRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Section $section, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSection($section) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Section $section - * Required. The section to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The mask to specify which fields to update. - * Currently supported field paths: - * - `display_name` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Section::initOnce(); - parent::__construct($data); - } - - /** - * Required. The section to update. - * - * Generated from protobuf field .google.chat.v1.Section section = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Section|null - */ - public function getSection() - { - return $this->section; - } - - public function hasSection() - { - return isset($this->section); - } - - public function clearSection() - { - unset($this->section); - } - - /** - * Required. The section to update. - * - * Generated from protobuf field .google.chat.v1.Section section = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Section $var - * @return $this - */ - public function setSection($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Section::class); - $this->section = $var; - - return $this; - } - - /** - * Required. The mask to specify which fields to update. - * Currently supported field paths: - * - `display_name` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The mask to specify which fields to update. - * Currently supported field paths: - * - `display_name` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php deleted file mode 100644 index 0526ba9015dd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceNotificationSettingRequest.php +++ /dev/null @@ -1,164 +0,0 @@ -google.chat.v1.UpdateSpaceNotificationSettingRequest - */ -class UpdateSpaceNotificationSettingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name for the space notification settings must be - * populated in the form of - * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.SpaceNotificationSetting space_notification_setting = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space_notification_setting = null; - /** - * Required. Supported field paths: - * - `notification_setting` - * - `mute_setting` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Apps\Chat\V1\SpaceNotificationSetting $spaceNotificationSetting Required. The resource name for the space notification settings must be - * populated in the form of - * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields - * specified by `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Supported field paths: - * - * - `notification_setting` - * - * - `mute_setting` - * - * @return \Google\Apps\Chat\V1\UpdateSpaceNotificationSettingRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\SpaceNotificationSetting $spaceNotificationSetting, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpaceNotificationSetting($spaceNotificationSetting) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\SpaceNotificationSetting $space_notification_setting - * Required. The resource name for the space notification settings must be - * populated in the form of - * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields - * specified by `update_mask` are updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Supported field paths: - * - `notification_setting` - * - `mute_setting` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceNotificationSetting::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name for the space notification settings must be - * populated in the form of - * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.SpaceNotificationSetting space_notification_setting = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\SpaceNotificationSetting|null - */ - public function getSpaceNotificationSetting() - { - return $this->space_notification_setting; - } - - public function hasSpaceNotificationSetting() - { - return isset($this->space_notification_setting); - } - - public function clearSpaceNotificationSetting() - { - unset($this->space_notification_setting); - } - - /** - * Required. The resource name for the space notification settings must be - * populated in the form of - * `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.SpaceNotificationSetting space_notification_setting = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\SpaceNotificationSetting $var - * @return $this - */ - public function setSpaceNotificationSetting($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceNotificationSetting::class); - $this->space_notification_setting = $var; - - return $this; - } - - /** - * Required. Supported field paths: - * - `notification_setting` - * - `mute_setting` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Supported field paths: - * - `notification_setting` - * - `mute_setting` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php deleted file mode 100644 index 3cebd7c659f5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.chat.v1.UpdateSpaceReadStateRequest - */ -class UpdateSpaceReadStateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space_read_state = null; - /** - * Required. The field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Apps\Chat\V1\SpaceReadState $spaceReadState Required. The space read state and fields to update. - * - * Only supports updating read state for the calling user. - * - * To refer to the calling user, set one of the following: - * - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * - * Format: users/{user}/spaces/{space}/spaceReadState - * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Currently supported field paths: - * - * - `last_read_time` - * - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * @return \Google\Apps\Chat\V1\UpdateSpaceReadStateRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\SpaceReadState $spaceReadState, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\SpaceReadState $space_read_state - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); - parent::__construct($data); - } - - /** - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\SpaceReadState|null - */ - public function getSpaceReadState() - { - return $this->space_read_state; - } - - public function hasSpaceReadState() - { - return isset($this->space_read_state); - } - - public function clearSpaceReadState() - { - unset($this->space_read_state); - } - - /** - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user\@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\SpaceReadState $var - * @return $this - */ - public function setSpaceReadState($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceReadState::class); - $this->space_read_state = $var; - - return $this; - } - - /** - * Required. The field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php deleted file mode 100644 index b3369218a536..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php +++ /dev/null @@ -1,485 +0,0 @@ -google.chat.v1.UpdateSpaceRequest - */ -class UpdateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description and guidelines. You must - * pass both description and guidelines in the update request as - * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to - * update one of the fields, pass the existing value for the other field. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_admin_access = false; - - /** - * @param \Google\Apps\Chat\V1\Space $space Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The updated field paths, comma separated if there are - * multiple. - * - * You can update the following fields for a space: - * - * `space_details`: Updates the space's description and guidelines. You must - * pass both description and guidelines in the update request as - * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to - * update one of the fields, pass the existing value for the other field. - * - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. - * The supported field masks include: - * - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * @return \Google\Apps\Chat\V1\UpdateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Space $space, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpace($space) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description and guidelines. You must - * pass both description and guidelines in the update request as - * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to - * update one of the fields, pass the existing value for the other field. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * @type bool $use_admin_access - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description and guidelines. You must - * pass both description and guidelines in the update request as - * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to - * update one of the fields, pass the existing value for the other field. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description and guidelines. You must - * pass both description and guidelines in the update request as - * [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to - * update one of the fields, pass the existing value for the other field. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * Optional. When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * - * Generated from protobuf field bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php deleted file mode 100644 index 76fd992d24a1..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.UploadAttachmentRequest - */ -class UploadAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The filename of the attachment, including the file extension. - * - * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filename = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * @type string $filename - * Required. The filename of the attachment, including the file extension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The filename of the attachment, including the file extension. - * - * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilename() - { - return $this->filename; - } - - /** - * Required. The filename of the attachment, including the file extension. - * - * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilename($var) - { - GPBUtil::checkString($var, True); - $this->filename = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php deleted file mode 100644 index 77c387d55586..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.UploadAttachmentResponse - */ -class UploadAttachmentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Reference to the uploaded attachment. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; - */ - protected $attachment_data_ref = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\AttachmentDataRef $attachment_data_ref - * Reference to the uploaded attachment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Reference to the uploaded attachment. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; - * @return \Google\Apps\Chat\V1\AttachmentDataRef|null - */ - public function getAttachmentDataRef() - { - return $this->attachment_data_ref; - } - - public function hasAttachmentDataRef() - { - return isset($this->attachment_data_ref); - } - - public function clearAttachmentDataRef() - { - unset($this->attachment_data_ref); - } - - /** - * Reference to the uploaded attachment. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; - * @param \Google\Apps\Chat\V1\AttachmentDataRef $var - * @return $this - */ - public function setAttachmentDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\AttachmentDataRef::class); - $this->attachment_data_ref = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php deleted file mode 100644 index dc14c56c3197..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php +++ /dev/null @@ -1,275 +0,0 @@ -google.chat.v1.User - */ -class User extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The user's display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Unique identifier of the user's Google Workspace domain. - * - * Generated from protobuf field string domain_id = 6; - */ - protected $domain_id = ''; - /** - * User type. - * - * Generated from protobuf field .google.chat.v1.User.Type type = 5; - */ - protected $type = 0; - /** - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * - * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $is_anonymous = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * @type string $display_name - * Output only. The user's display name. - * @type string $domain_id - * Unique identifier of the user's Google Workspace domain. - * @type int $type - * User type. - * @type bool $is_anonymous - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\User::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user\@example.com` is `123456789`, you can use `users/user\@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The user's display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The user's display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Unique identifier of the user's Google Workspace domain. - * - * Generated from protobuf field string domain_id = 6; - * @return string - */ - public function getDomainId() - { - return $this->domain_id; - } - - /** - * Unique identifier of the user's Google Workspace domain. - * - * Generated from protobuf field string domain_id = 6; - * @param string $var - * @return $this - */ - public function setDomainId($var) - { - GPBUtil::checkString($var, True); - $this->domain_id = $var; - - return $this; - } - - /** - * User type. - * - * Generated from protobuf field .google.chat.v1.User.Type type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * User type. - * - * Generated from protobuf field .google.chat.v1.User.Type type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\User\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * - * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getIsAnonymous() - { - return $this->is_anonymous; - } - - /** - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * - * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setIsAnonymous($var) - { - GPBUtil::checkBool($var); - $this->is_anonymous = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php deleted file mode 100644 index d0eea9b21288..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php +++ /dev/null @@ -1,59 +0,0 @@ -google.chat.v1.User.Type - */ -class Type -{ - /** - * Default value for the enum. DO NOT USE. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Human user. - * - * Generated from protobuf enum HUMAN = 1; - */ - const HUMAN = 1; - /** - * Chat app user. - * - * Generated from protobuf enum BOT = 2; - */ - const BOT = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::HUMAN => 'HUMAN', - self::BOT => 'BOT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php deleted file mode 100644 index 45ce4f9a943b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.UserMentionMetadata - */ -class UserMentionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The user mentioned. - * - * Generated from protobuf field .google.chat.v1.User user = 1; - */ - protected $user = null; - /** - * The type of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\User $user - * The user mentioned. - * @type int $type - * The type of user mention. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The user mentioned. - * - * Generated from protobuf field .google.chat.v1.User user = 1; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * The user mentioned. - * - * Generated from protobuf field .google.chat.v1.User user = 1; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->user = $var; - - return $this; - } - - /** - * The type of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\UserMentionMetadata\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php deleted file mode 100644 index 4de547f4aefa..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php +++ /dev/null @@ -1,59 +0,0 @@ -google.chat.v1.UserMentionMetadata.Type - */ -class Type -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Add user to space. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Mention user in space. - * - * Generated from protobuf enum MENTION = 2; - */ - const MENTION = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ADD => 'ADD', - self::MENTION => 'MENTION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php deleted file mode 100644 index a1785c4691fb..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php +++ /dev/null @@ -1,179 +0,0 @@ -google.chat.v1.WidgetMarkup - */ -class WidgetMarkup extends \Google\Protobuf\Internal\Message -{ - /** - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; - */ - private $buttons; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph $text_paragraph - * Display a text paragraph in this widget. - * @type \Google\Apps\Chat\V1\WidgetMarkup\Image $image - * Display an image in this widget. - * @type \Google\Apps\Chat\V1\WidgetMarkup\KeyValue $key_value - * Display a key value item in this widget. - * @type \Google\Apps\Chat\V1\WidgetMarkup\Button[] $buttons - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * Display a text paragraph in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1; - * @return \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph|null - */ - public function getTextParagraph() - { - return $this->readOneof(1); - } - - public function hasTextParagraph() - { - return $this->hasOneof(1); - } - - /** - * Display a text paragraph in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1; - * @param \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph $var - * @return $this - */ - public function setTextParagraph($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Display an image in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Image image = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\Image|null - */ - public function getImage() - { - return $this->readOneof(2); - } - - public function hasImage() - { - return $this->hasOneof(2); - } - - /** - * Display an image in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Image image = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\Image::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Display a key value item in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.KeyValue key_value = 3; - * @return \Google\Apps\Chat\V1\WidgetMarkup\KeyValue|null - */ - public function getKeyValue() - { - return $this->readOneof(3); - } - - public function hasKeyValue() - { - return $this->hasOneof(3); - } - - /** - * Display a key value item in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.KeyValue key_value = 3; - * @param \Google\Apps\Chat\V1\WidgetMarkup\KeyValue $var - * @return $this - */ - public function setKeyValue($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\KeyValue::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; - * @return RepeatedField<\Google\Apps\Chat\V1\WidgetMarkup\Button> - */ - public function getButtons() - { - return $this->buttons; - } - - /** - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; - * @param \Google\Apps\Chat\V1\WidgetMarkup\Button[] $var - * @return $this - */ - public function setButtons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup\Button::class); - $this->buttons = $arr; - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php deleted file mode 100644 index 82379a57d0c7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php +++ /dev/null @@ -1,108 +0,0 @@ -google.chat.v1.WidgetMarkup.Button - */ -class Button extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\WidgetMarkup\TextButton $text_button - * A button with text and `onclick` action. - * @type \Google\Apps\Chat\V1\WidgetMarkup\ImageButton $image_button - * A button with image and `onclick` action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * A button with text and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextButton text_button = 1; - * @return \Google\Apps\Chat\V1\WidgetMarkup\TextButton|null - */ - public function getTextButton() - { - return $this->readOneof(1); - } - - public function hasTextButton() - { - return $this->hasOneof(1); - } - - /** - * A button with text and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextButton text_button = 1; - * @param \Google\Apps\Chat\V1\WidgetMarkup\TextButton $var - * @return $this - */ - public function setTextButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\TextButton::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A button with image and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.ImageButton image_button = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\ImageButton|null - */ - public function getImageButton() - { - return $this->readOneof(2); - } - - public function hasImageButton() - { - return $this->hasOneof(2); - } - - /** - * A button with image and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.ImageButton image_button = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\ImageButton $var - * @return $this - */ - public function setImageButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\ImageButton::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php deleted file mode 100644 index 8480177a276e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php +++ /dev/null @@ -1,114 +0,0 @@ -google.chat.v1.WidgetMarkup.FormAction - */ -class FormAction extends \Google\Protobuf\Internal\Message -{ - /** - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * - * Generated from protobuf field string action_method_name = 1; - */ - protected $action_method_name = ''; - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $action_method_name - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * @type \Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter[] $parameters - * List of action parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * - * Generated from protobuf field string action_method_name = 1; - * @return string - */ - public function getActionMethodName() - { - return $this->action_method_name; - } - - /** - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * - * Generated from protobuf field string action_method_name = 1; - * @param string $var - * @return $this - */ - public function setActionMethodName($var) - { - GPBUtil::checkString($var, True); - $this->action_method_name = $var; - - return $this; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; - * @return RepeatedField<\Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php deleted file mode 100644 index b82cee40e4d8..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php +++ /dev/null @@ -1,104 +0,0 @@ -google.chat.v1.WidgetMarkup.FormAction.ActionParameter - */ -class ActionParameter extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The name of the parameter for the action script. - * @type string $value - * The value of the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php deleted file mode 100644 index 0f9a235ff28d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php +++ /dev/null @@ -1,195 +0,0 @@ -google.chat.v1.WidgetMarkup.Icon - */ -class Icon -{ - /** - * Generated from protobuf enum ICON_UNSPECIFIED = 0; - */ - const ICON_UNSPECIFIED = 0; - /** - * Generated from protobuf enum AIRPLANE = 1; - */ - const AIRPLANE = 1; - /** - * Generated from protobuf enum BOOKMARK = 26; - */ - const BOOKMARK = 26; - /** - * Generated from protobuf enum BUS = 25; - */ - const BUS = 25; - /** - * Generated from protobuf enum CAR = 9; - */ - const CAR = 9; - /** - * Generated from protobuf enum CLOCK = 2; - */ - const CLOCK = 2; - /** - * Generated from protobuf enum CONFIRMATION_NUMBER_ICON = 12; - */ - const CONFIRMATION_NUMBER_ICON = 12; - /** - * Generated from protobuf enum DOLLAR = 14; - */ - const DOLLAR = 14; - /** - * Generated from protobuf enum DESCRIPTION = 27; - */ - const DESCRIPTION = 27; - /** - * Generated from protobuf enum EMAIL = 10; - */ - const EMAIL = 10; - /** - * Generated from protobuf enum EVENT_PERFORMER = 20; - */ - const EVENT_PERFORMER = 20; - /** - * Generated from protobuf enum EVENT_SEAT = 21; - */ - const EVENT_SEAT = 21; - /** - * Generated from protobuf enum FLIGHT_ARRIVAL = 16; - */ - const FLIGHT_ARRIVAL = 16; - /** - * Generated from protobuf enum FLIGHT_DEPARTURE = 15; - */ - const FLIGHT_DEPARTURE = 15; - /** - * Generated from protobuf enum HOTEL = 6; - */ - const HOTEL = 6; - /** - * Generated from protobuf enum HOTEL_ROOM_TYPE = 17; - */ - const HOTEL_ROOM_TYPE = 17; - /** - * Generated from protobuf enum INVITE = 19; - */ - const INVITE = 19; - /** - * Generated from protobuf enum MAP_PIN = 3; - */ - const MAP_PIN = 3; - /** - * Generated from protobuf enum MEMBERSHIP = 24; - */ - const MEMBERSHIP = 24; - /** - * Generated from protobuf enum MULTIPLE_PEOPLE = 18; - */ - const MULTIPLE_PEOPLE = 18; - /** - * Generated from protobuf enum OFFER = 30; - */ - const OFFER = 30; - /** - * Generated from protobuf enum PERSON = 11; - */ - const PERSON = 11; - /** - * Generated from protobuf enum PHONE = 13; - */ - const PHONE = 13; - /** - * Generated from protobuf enum RESTAURANT_ICON = 7; - */ - const RESTAURANT_ICON = 7; - /** - * Generated from protobuf enum SHOPPING_CART = 8; - */ - const SHOPPING_CART = 8; - /** - * Generated from protobuf enum STAR = 5; - */ - const STAR = 5; - /** - * Generated from protobuf enum STORE = 22; - */ - const STORE = 22; - /** - * Generated from protobuf enum TICKET = 4; - */ - const TICKET = 4; - /** - * Generated from protobuf enum TRAIN = 23; - */ - const TRAIN = 23; - /** - * Generated from protobuf enum VIDEO_CAMERA = 28; - */ - const VIDEO_CAMERA = 28; - /** - * Generated from protobuf enum VIDEO_PLAY = 29; - */ - const VIDEO_PLAY = 29; - - private static $valueToName = [ - self::ICON_UNSPECIFIED => 'ICON_UNSPECIFIED', - self::AIRPLANE => 'AIRPLANE', - self::BOOKMARK => 'BOOKMARK', - self::BUS => 'BUS', - self::CAR => 'CAR', - self::CLOCK => 'CLOCK', - self::CONFIRMATION_NUMBER_ICON => 'CONFIRMATION_NUMBER_ICON', - self::DOLLAR => 'DOLLAR', - self::DESCRIPTION => 'DESCRIPTION', - self::EMAIL => 'EMAIL', - self::EVENT_PERFORMER => 'EVENT_PERFORMER', - self::EVENT_SEAT => 'EVENT_SEAT', - self::FLIGHT_ARRIVAL => 'FLIGHT_ARRIVAL', - self::FLIGHT_DEPARTURE => 'FLIGHT_DEPARTURE', - self::HOTEL => 'HOTEL', - self::HOTEL_ROOM_TYPE => 'HOTEL_ROOM_TYPE', - self::INVITE => 'INVITE', - self::MAP_PIN => 'MAP_PIN', - self::MEMBERSHIP => 'MEMBERSHIP', - self::MULTIPLE_PEOPLE => 'MULTIPLE_PEOPLE', - self::OFFER => 'OFFER', - self::PERSON => 'PERSON', - self::PHONE => 'PHONE', - self::RESTAURANT_ICON => 'RESTAURANT_ICON', - self::SHOPPING_CART => 'SHOPPING_CART', - self::STAR => 'STAR', - self::STORE => 'STORE', - self::TICKET => 'TICKET', - self::TRAIN => 'TRAIN', - self::VIDEO_CAMERA => 'VIDEO_CAMERA', - self::VIDEO_PLAY => 'VIDEO_PLAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php deleted file mode 100644 index 1c4e75b255fd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php +++ /dev/null @@ -1,157 +0,0 @@ -google.chat.v1.WidgetMarkup.Image - */ -class Image extends \Google\Protobuf\Internal\Message -{ - /** - * The URL of the image. - * - * Generated from protobuf field string image_url = 1; - */ - protected $image_url = ''; - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - /** - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * - * Generated from protobuf field double aspect_ratio = 3; - */ - protected $aspect_ratio = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_url - * The URL of the image. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action. - * @type float $aspect_ratio - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The URL of the image. - * - * Generated from protobuf field string image_url = 1; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The URL of the image. - * - * Generated from protobuf field string image_url = 1; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * - * Generated from protobuf field double aspect_ratio = 3; - * @return float - */ - public function getAspectRatio() - { - return $this->aspect_ratio; - } - - /** - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * - * Generated from protobuf field double aspect_ratio = 3; - * @param float $var - * @return $this - */ - public function setAspectRatio($var) - { - GPBUtil::checkDouble($var); - $this->aspect_ratio = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php deleted file mode 100644 index 41695fdd820f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php +++ /dev/null @@ -1,193 +0,0 @@ -google.chat.v1.WidgetMarkup.ImageButton - */ -class ImageButton extends \Google\Protobuf\Internal\Message -{ - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - /** - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - protected $icons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $icon - * The icon specified by an `enum` that indices to an icon provided by - * Chat API. - * @type string $icon_url - * The icon specified by a URL. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action. - * @type string $name - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The icon specified by an `enum` that indices to an icon provided by - * Chat API. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @return int - */ - public function getIcon() - { - return $this->readOneof(1); - } - - public function hasIcon() - { - return $this->hasOneof(1); - } - - /** - * The icon specified by an `enum` that indices to an icon provided by - * Chat API. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @param int $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\WidgetMarkup\Icon::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 3; - * @return string - */ - public function getIconUrl() - { - return $this->readOneof(3); - } - - public function hasIconUrl() - { - return $this->hasOneof(3); - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 3; - * @param string $var - * @return $this - */ - public function setIconUrl($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * @return string - */ - public function getIcons() - { - return $this->whichOneof("icons"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php deleted file mode 100644 index 412e2f2ce735..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php +++ /dev/null @@ -1,422 +0,0 @@ -google.chat.v1.WidgetMarkup.KeyValue - */ -class KeyValue extends \Google\Protobuf\Internal\Message -{ - /** - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string top_label = 3; - */ - protected $top_label = ''; - /** - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string content = 4; - */ - protected $content = ''; - /** - * If the content should be multiline. - * - * Generated from protobuf field bool content_multiline = 9; - */ - protected $content_multiline = false; - /** - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string bottom_label = 5; - */ - protected $bottom_label = ''; - /** - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; - */ - protected $on_click = null; - protected $icons; - protected $control; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $icon - * An enum value that's replaced by the Chat API with the - * corresponding icon image. - * @type string $icon_url - * The icon specified by a URL. - * @type string $top_label - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type string $content - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type bool $content_multiline - * If the content should be multiline. - * @type string $bottom_label - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * @type \Google\Apps\Chat\V1\WidgetMarkup\Button $button - * A button that can be clicked to trigger an action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * An enum value that's replaced by the Chat API with the - * corresponding icon image. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @return int - */ - public function getIcon() - { - return $this->readOneof(1); - } - - public function hasIcon() - { - return $this->hasOneof(1); - } - - /** - * An enum value that's replaced by the Chat API with the - * corresponding icon image. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @param int $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\WidgetMarkup\Icon::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 2; - * @return string - */ - public function getIconUrl() - { - return $this->readOneof(2); - } - - public function hasIconUrl() - { - return $this->hasOneof(2); - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 2; - * @param string $var - * @return $this - */ - public function setIconUrl($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string top_label = 3; - * @return string - */ - public function getTopLabel() - { - return $this->top_label; - } - - /** - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string top_label = 3; - * @param string $var - * @return $this - */ - public function setTopLabel($var) - { - GPBUtil::checkString($var, True); - $this->top_label = $var; - - return $this; - } - - /** - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string content = 4; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string content = 4; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * If the content should be multiline. - * - * Generated from protobuf field bool content_multiline = 9; - * @return bool - */ - public function getContentMultiline() - { - return $this->content_multiline; - } - - /** - * If the content should be multiline. - * - * Generated from protobuf field bool content_multiline = 9; - * @param bool $var - * @return $this - */ - public function setContentMultiline($var) - { - GPBUtil::checkBool($var); - $this->content_multiline = $var; - - return $this; - } - - /** - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string bottom_label = 5; - * @return string - */ - public function getBottomLabel() - { - return $this->bottom_label; - } - - /** - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string bottom_label = 5; - * @param string $var - * @return $this - */ - public function setBottomLabel($var) - { - GPBUtil::checkString($var, True); - $this->bottom_label = $var; - - return $this; - } - - /** - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * A button that can be clicked to trigger an action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Button button = 7; - * @return \Google\Apps\Chat\V1\WidgetMarkup\Button|null - */ - public function getButton() - { - return $this->readOneof(7); - } - - public function hasButton() - { - return $this->hasOneof(7); - } - - /** - * A button that can be clicked to trigger an action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Button button = 7; - * @param \Google\Apps\Chat\V1\WidgetMarkup\Button $var - * @return $this - */ - public function setButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\Button::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getIcons() - { - return $this->whichOneof("icons"); - } - - /** - * @return string - */ - public function getControl() - { - return $this->whichOneof("control"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php deleted file mode 100644 index 45a8757095cc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php +++ /dev/null @@ -1,108 +0,0 @@ -google.chat.v1.WidgetMarkup.OnClick - */ -class OnClick extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\WidgetMarkup\FormAction $action - * A form action is triggered by this `onclick` action if specified. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OpenLink $open_link - * This `onclick` action triggers an open link action if specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * A form action is triggered by this `onclick` action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.FormAction action = 1; - * @return \Google\Apps\Chat\V1\WidgetMarkup\FormAction|null - */ - public function getAction() - { - return $this->readOneof(1); - } - - public function hasAction() - { - return $this->hasOneof(1); - } - - /** - * A form action is triggered by this `onclick` action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.FormAction action = 1; - * @param \Google\Apps\Chat\V1\WidgetMarkup\FormAction $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\FormAction::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * This `onclick` action triggers an open link action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OpenLink open_link = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OpenLink|null - */ - public function getOpenLink() - { - return $this->readOneof(2); - } - - public function hasOpenLink() - { - return $this->hasOneof(2); - } - - /** - * This `onclick` action triggers an open link action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OpenLink open_link = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OpenLink $var - * @return $this - */ - public function setOpenLink($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OpenLink::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php deleted file mode 100644 index 814de2c8982e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.WidgetMarkup.OpenLink - */ -class OpenLink extends \Google\Protobuf\Internal\Message -{ - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The URL to open. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php deleted file mode 100644 index 6970e4d2a230..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.WidgetMarkup.TextButton - */ -class TextButton extends \Google\Protobuf\Internal\Message -{ - /** - * The text of the button. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The `onclick` action of the button. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text of the button. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action of the button. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The text of the button. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text of the button. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The `onclick` action of the button. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action of the button. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php deleted file mode 100644 index d853c1596d59..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.WidgetMarkup.TextParagraph - */ -class TextParagraph extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php deleted file mode 100644 index a26fae04128b..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CompleteImportSpaceResponse $response */ - $response = $chatServiceClient->completeImportSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceName('[SPACE]'); - - complete_import_space_sample($formattedName); -} -// [END chat_v1_generated_ChatService_CompleteImportSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php deleted file mode 100644 index 793f3a8bd4fb..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_custom_emoji.php +++ /dev/null @@ -1,73 +0,0 @@ -setCustomEmoji($customEmoji); - - // Call the API and handle any network failures. - try { - /** @var CustomEmoji $response */ - $response = $chatServiceClient->createCustomEmoji($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_CreateCustomEmoji_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php deleted file mode 100644 index 6dfc7b2ea98a..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php +++ /dev/null @@ -1,119 +0,0 @@ -setParent($formattedParent) - ->setMembership($membership); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->createMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - create_membership_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_CreateMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php deleted file mode 100644 index 75dc77b2c7f7..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php +++ /dev/null @@ -1,118 +0,0 @@ -setParent($formattedParent) - ->setMessage($message); - - // Call the API and handle any network failures. - try { - /** @var Message $response */ - $response = $chatServiceClient->createMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - create_message_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_CreateMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php deleted file mode 100644 index 81fcebb672bf..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php +++ /dev/null @@ -1,90 +0,0 @@ -setEmoji($reactionEmoji); - $request = (new CreateReactionRequest()) - ->setParent($formattedParent) - ->setReaction($reaction); - - // Call the API and handle any network failures. - try { - /** @var Reaction $response */ - $response = $chatServiceClient->createReaction($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - create_reaction_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_CreateReaction_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php deleted file mode 100644 index dd40059a7833..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_section.php +++ /dev/null @@ -1,90 +0,0 @@ -setType($sectionType); - $request = (new CreateSectionRequest()) - ->setParent($formattedParent) - ->setSection($section); - - // Call the API and handle any network failures. - try { - /** @var Section $response */ - $response = $chatServiceClient->createSection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::userName('[USER]'); - $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; - - create_section_sample($formattedParent, $sectionType); -} -// [END chat_v1_generated_ChatService_CreateSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php deleted file mode 100644 index 1e0d27f576c0..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php +++ /dev/null @@ -1,100 +0,0 @@ -setSpace($space); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->createSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_CreateSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php deleted file mode 100644 index c38325bebdd7..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_custom_emoji.php +++ /dev/null @@ -1,93 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteCustomEmoji($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::customEmojiName('[CUSTOM_EMOJI]'); - - delete_custom_emoji_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteCustomEmoji_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php deleted file mode 100644 index c71a4ba2f8ed..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php +++ /dev/null @@ -1,122 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->deleteMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::membershipName('[SPACE]', '[MEMBER]'); - - delete_membership_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php deleted file mode 100644 index 700a9febb75f..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteMessage($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - delete_message_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php deleted file mode 100644 index cbbd6f7bb766..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteReaction($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); - - delete_reaction_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteReaction_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php deleted file mode 100644 index e02d13a66fbb..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_section.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteSection($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::sectionName('[USER]', '[SECTION]'); - - delete_section_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php deleted file mode 100644 index b3b25f0dcb06..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php +++ /dev/null @@ -1,97 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteSpace($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceName('[SPACE]'); - - delete_space_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php deleted file mode 100644 index 0cffd3446718..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php +++ /dev/null @@ -1,109 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->findDirectMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - find_direct_message_sample($name); -} -// [END chat_v1_generated_ChatService_FindDirectMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php deleted file mode 100644 index 296088a9565b..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_group_chats.php +++ /dev/null @@ -1,81 +0,0 @@ -findGroupChats($request); - - /** @var Space $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_FindGroupChats_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php deleted file mode 100644 index 5ae1b89edba3..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Attachment $response */ - $response = $chatServiceClient->getAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); - - get_attachment_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetAttachment_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php deleted file mode 100644 index 2d190957cbd0..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_custom_emoji.php +++ /dev/null @@ -1,92 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomEmoji $response */ - $response = $chatServiceClient->getCustomEmoji($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::customEmojiName('[CUSTOM_EMOJI]'); - - get_custom_emoji_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetCustomEmoji_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php deleted file mode 100644 index 10e2e5ec7a53..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php +++ /dev/null @@ -1,104 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->getMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::membershipName('[SPACE]', '[MEMBER]'); - - get_membership_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php deleted file mode 100644 index 9c3b57731762..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php +++ /dev/null @@ -1,105 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Message $response */ - $response = $chatServiceClient->getMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - get_message_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php deleted file mode 100644 index 918d242bc589..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php +++ /dev/null @@ -1,104 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->getSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceName('[SPACE]'); - - get_space_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php deleted file mode 100644 index ad179edf7656..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php +++ /dev/null @@ -1,117 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SpaceEvent $response */ - $response = $chatServiceClient->getSpaceEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceEventName('[SPACE]', '[SPACE_EVENT]'); - - get_space_event_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetSpaceEvent_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php deleted file mode 100644 index f6cc10633818..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_notification_setting.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SpaceNotificationSetting $response */ - $response = $chatServiceClient->getSpaceNotificationSetting($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceNotificationSettingName('[USER]', '[SPACE]'); - - get_space_notification_setting_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetSpaceNotificationSetting_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php deleted file mode 100644 index 9132caf40543..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SpaceReadState $response */ - $response = $chatServiceClient->getSpaceReadState($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceReadStateName('[USER]', '[SPACE]'); - - get_space_read_state_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetSpaceReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php deleted file mode 100644 index 8dd5930986d1..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php +++ /dev/null @@ -1,97 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ThreadReadState $response */ - $response = $chatServiceClient->getThreadReadState($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); - - get_thread_read_state_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetThreadReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php deleted file mode 100644 index 25dca19abb7d..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_custom_emojis.php +++ /dev/null @@ -1,77 +0,0 @@ -listCustomEmojis($request); - - /** @var CustomEmoji $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_ListCustomEmojis_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php deleted file mode 100644 index 40804d742230..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php +++ /dev/null @@ -1,112 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listMemberships($request); - - /** @var Membership $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - list_memberships_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListMemberships_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php deleted file mode 100644 index 7c080ac5661c..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php +++ /dev/null @@ -1,105 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listMessages($request); - - /** @var Message $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - list_messages_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListMessages_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php deleted file mode 100644 index cf5184295493..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listReactions($request); - - /** @var Reaction $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - list_reactions_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListReactions_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php deleted file mode 100644 index cac0175e4bdc..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_section_items.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listSectionItems($request); - - /** @var SectionItem $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::sectionName('[USER]', '[SECTION]'); - - list_section_items_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListSectionItems_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php deleted file mode 100644 index a981e2e0c0b9..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_sections.php +++ /dev/null @@ -1,97 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listSections($request); - - /** @var Section $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::userName('[USER]'); - - list_sections_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListSections_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php deleted file mode 100644 index 77a82efb68cf..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php +++ /dev/null @@ -1,175 +0,0 @@ -setParent($formattedParent) - ->setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listSpaceEvents($request); - - /** @var SpaceEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - $filter = '[FILTER]'; - - list_space_events_sample($formattedParent, $filter); -} -// [END chat_v1_generated_ChatService_ListSpaceEvents_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php deleted file mode 100644 index e52433d7aea3..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php +++ /dev/null @@ -1,83 +0,0 @@ -listSpaces($request); - - /** @var Space $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_ListSpaces_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php deleted file mode 100644 index 7f110b62ea19..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/move_section_item.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName) - ->setTargetSection($formattedTargetSection); - - // Call the API and handle any network failures. - try { - /** @var MoveSectionItemResponse $response */ - $response = $chatServiceClient->moveSectionItem($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::sectionItemName('[USER]', '[SECTION]', '[ITEM]'); - $formattedTargetSection = ChatServiceClient::sectionName('[USER]', '[SECTION]'); - - move_section_item_sample($formattedName, $formattedTargetSection); -} -// [END chat_v1_generated_ChatService_MoveSectionItem_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php deleted file mode 100644 index 8a0812a6fa7e..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/position_section.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PositionSectionResponse $response */ - $response = $chatServiceClient->positionSection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::sectionName('[USER]', '[SECTION]'); - - position_section_sample($formattedName); -} -// [END chat_v1_generated_ChatService_PositionSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php deleted file mode 100644 index 34290aba9b98..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php +++ /dev/null @@ -1,154 +0,0 @@ -`, `<=`, `>=`. - * - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * - * `external_user_allowed` accepts either `true` or `false`. - * - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * - * `space_type` is required and the only valid value is `SPACE`. - * - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * - * The following example queries are valid: - * - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - */ -function search_spaces_sample(string $query): void -{ - // Create a client. - $chatServiceClient = new ChatServiceClient(); - - // Prepare the request message. - $request = (new SearchSpacesRequest()) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->searchSpaces($request); - - /** @var Space $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $query = '[QUERY]'; - - search_spaces_sample($query); -} -// [END chat_v1_generated_ChatService_SearchSpaces_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php deleted file mode 100644 index 28377f1c6b68..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php +++ /dev/null @@ -1,115 +0,0 @@ -setSpace($space); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->setUpSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_SetUpSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php deleted file mode 100644 index e2450c3cdf6e..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php +++ /dev/null @@ -1,85 +0,0 @@ -setMembership($membership) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->updateMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php deleted file mode 100644 index dbe452e31387..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php +++ /dev/null @@ -1,85 +0,0 @@ -setMessage($message) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Message $response */ - $response = $chatServiceClient->updateMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php deleted file mode 100644 index 851e01622f44..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_section.php +++ /dev/null @@ -1,85 +0,0 @@ -setType($sectionType); - $updateMask = new FieldMask(); - $request = (new UpdateSectionRequest()) - ->setSection($section) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Section $response */ - $response = $chatServiceClient->updateSection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; - - update_section_sample($sectionType); -} -// [END chat_v1_generated_ChatService_UpdateSection_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php deleted file mode 100644 index 8fa4b631ddce..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php +++ /dev/null @@ -1,95 +0,0 @@ -setSpace($space) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->updateSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php deleted file mode 100644 index d82cf0187137..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_notification_setting.php +++ /dev/null @@ -1,71 +0,0 @@ -setSpaceNotificationSetting($spaceNotificationSetting) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var SpaceNotificationSetting $response */ - $response = $chatServiceClient->updateSpaceNotificationSetting($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateSpaceNotificationSetting_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php deleted file mode 100644 index 4f4748bc4278..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php +++ /dev/null @@ -1,71 +0,0 @@ -setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var SpaceReadState $response */ - $response = $chatServiceClient->updateSpaceReadState($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateSpaceReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php deleted file mode 100644 index 4364e108967e..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent) - ->setFilename($filename); - - // Call the API and handle any network failures. - try { - /** @var UploadAttachmentResponse $response */ - $response = $chatServiceClient->uploadAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - $filename = '[FILENAME]'; - - upload_attachment_sample($formattedParent, $filename); -} -// [END chat_v1_generated_ChatService_UploadAttachment_sync] diff --git a/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php b/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php deleted file mode 100644 index 86524fd55102..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php +++ /dev/null @@ -1,2632 +0,0 @@ - completeImportSpaceAsync(CompleteImportSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomEmojiAsync(CreateCustomEmojiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMessageAsync(CreateMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReactionAsync(CreateReactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface
createSectionAsync(CreateSectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteCustomEmojiAsync(DeleteCustomEmojiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMembershipAsync(DeleteMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMessageAsync(DeleteMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteReactionAsync(DeleteReactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSectionAsync(DeleteSectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSpaceAsync(DeleteSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface findDirectMessageAsync(FindDirectMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface findGroupChatsAsync(FindGroupChatsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomEmojiAsync(GetCustomEmojiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMembershipAsync(GetMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMessageAsync(GetMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceEventAsync(GetSpaceEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceNotificationSettingAsync(GetSpaceNotificationSettingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceReadStateAsync(GetSpaceReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getThreadReadStateAsync(GetThreadReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomEmojisAsync(ListCustomEmojisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMembershipsAsync(ListMembershipsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReactionsAsync(ListReactionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSectionItemsAsync(ListSectionItemsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSectionsAsync(ListSectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpaceEventsAsync(ListSpaceEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpacesAsync(ListSpacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveSectionItemAsync(MoveSectionItemRequest $request, array $optionalArgs = []) - * @method PromiseInterface positionSectionAsync(PositionSectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchSpacesAsync(SearchSpacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface setUpSpaceAsync(SetUpSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMembershipAsync(UpdateMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMessageAsync(UpdateMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface
updateSectionAsync(UpdateSectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceNotificationSettingAsync(UpdateSpaceNotificationSettingRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceReadStateAsync(UpdateSpaceReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface uploadAttachmentAsync(UploadAttachmentRequest $request, array $optionalArgs = []) - */ -final class ChatServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.chat.v1.ChatService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chat.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chat.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chat.admin.delete', - 'https://www.googleapis.com/auth/chat.admin.memberships', - 'https://www.googleapis.com/auth/chat.admin.memberships.readonly', - 'https://www.googleapis.com/auth/chat.admin.spaces', - 'https://www.googleapis.com/auth/chat.admin.spaces.readonly', - 'https://www.googleapis.com/auth/chat.app.delete', - 'https://www.googleapis.com/auth/chat.app.memberships', - 'https://www.googleapis.com/auth/chat.app.memberships.readonly', - 'https://www.googleapis.com/auth/chat.app.messages.readonly', - 'https://www.googleapis.com/auth/chat.app.spaces', - 'https://www.googleapis.com/auth/chat.app.spaces.create', - 'https://www.googleapis.com/auth/chat.app.spaces.readonly', - 'https://www.googleapis.com/auth/chat.bot', - 'https://www.googleapis.com/auth/chat.customemojis', - 'https://www.googleapis.com/auth/chat.customemojis.readonly', - 'https://www.googleapis.com/auth/chat.delete', - 'https://www.googleapis.com/auth/chat.import', - 'https://www.googleapis.com/auth/chat.memberships', - 'https://www.googleapis.com/auth/chat.memberships.app', - 'https://www.googleapis.com/auth/chat.memberships.readonly', - 'https://www.googleapis.com/auth/chat.messages', - 'https://www.googleapis.com/auth/chat.messages.create', - 'https://www.googleapis.com/auth/chat.messages.reactions', - 'https://www.googleapis.com/auth/chat.messages.reactions.create', - 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', - 'https://www.googleapis.com/auth/chat.messages.readonly', - 'https://www.googleapis.com/auth/chat.spaces', - 'https://www.googleapis.com/auth/chat.spaces.create', - 'https://www.googleapis.com/auth/chat.spaces.readonly', - 'https://www.googleapis.com/auth/chat.users.readstate', - 'https://www.googleapis.com/auth/chat.users.readstate.readonly', - 'https://www.googleapis.com/auth/chat.users.sections', - 'https://www.googleapis.com/auth/chat.users.sections.readonly', - 'https://www.googleapis.com/auth/chat.users.spacesettings', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/chat_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/chat_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/chat_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/chat_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a attachment - * resource. - * - * @param string $space - * @param string $message - * @param string $attachment - * - * @return string The formatted attachment resource. - */ - public static function attachmentName(string $space, string $message, string $attachment): string - { - return self::getPathTemplate('attachment')->render([ - 'space' => $space, - 'message' => $message, - 'attachment' => $attachment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a custom_emoji - * resource. - * - * @param string $customEmoji - * - * @return string The formatted custom_emoji resource. - */ - public static function customEmojiName(string $customEmoji): string - { - return self::getPathTemplate('customEmoji')->render([ - 'custom_emoji' => $customEmoji, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a membership - * resource. - * - * @param string $space - * @param string $member - * - * @return string The formatted membership resource. - */ - public static function membershipName(string $space, string $member): string - { - return self::getPathTemplate('membership')->render([ - 'space' => $space, - 'member' => $member, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a message - * resource. - * - * @param string $space - * @param string $message - * - * @return string The formatted message resource. - */ - public static function messageName(string $space, string $message): string - { - return self::getPathTemplate('message')->render([ - 'space' => $space, - 'message' => $message, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * quoted_message_metadata resource. - * - * @param string $space - * @param string $message - * @param string $quotedMessageMetadata - * - * @return string The formatted quoted_message_metadata resource. - */ - public static function quotedMessageMetadataName(string $space, string $message, string $quotedMessageMetadata): string - { - return self::getPathTemplate('quotedMessageMetadata')->render([ - 'space' => $space, - 'message' => $message, - 'quoted_message_metadata' => $quotedMessageMetadata, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a reaction - * resource. - * - * @param string $space - * @param string $message - * @param string $reaction - * - * @return string The formatted reaction resource. - */ - public static function reactionName(string $space, string $message, string $reaction): string - { - return self::getPathTemplate('reaction')->render([ - 'space' => $space, - 'message' => $message, - 'reaction' => $reaction, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a section - * resource. - * - * @param string $user - * @param string $section - * - * @return string The formatted section resource. - */ - public static function sectionName(string $user, string $section): string - { - return self::getPathTemplate('section')->render([ - 'user' => $user, - 'section' => $section, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a section_item - * resource. - * - * @param string $user - * @param string $section - * @param string $item - * - * @return string The formatted section_item resource. - */ - public static function sectionItemName(string $user, string $section, string $item): string - { - return self::getPathTemplate('sectionItem')->render([ - 'user' => $user, - 'section' => $section, - 'item' => $item, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a space - * resource. - * - * @param string $space - * - * @return string The formatted space resource. - */ - public static function spaceName(string $space): string - { - return self::getPathTemplate('space')->render([ - 'space' => $space, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a space_event - * resource. - * - * @param string $space - * @param string $spaceEvent - * - * @return string The formatted space_event resource. - */ - public static function spaceEventName(string $space, string $spaceEvent): string - { - return self::getPathTemplate('spaceEvent')->render([ - 'space' => $space, - 'space_event' => $spaceEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * space_notification_setting resource. - * - * @param string $user - * @param string $space - * - * @return string The formatted space_notification_setting resource. - */ - public static function spaceNotificationSettingName(string $user, string $space): string - { - return self::getPathTemplate('spaceNotificationSetting')->render([ - 'user' => $user, - 'space' => $space, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * space_read_state resource. - * - * @param string $user - * @param string $space - * - * @return string The formatted space_read_state resource. - */ - public static function spaceReadStateName(string $user, string $space): string - { - return self::getPathTemplate('spaceReadState')->render([ - 'user' => $user, - 'space' => $space, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a thread - * resource. - * - * @param string $space - * @param string $thread - * - * @return string The formatted thread resource. - */ - public static function threadName(string $space, string $thread): string - { - return self::getPathTemplate('thread')->render([ - 'space' => $space, - 'thread' => $thread, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * thread_read_state resource. - * - * @param string $user - * @param string $space - * @param string $thread - * - * @return string The formatted thread_read_state resource. - */ - public static function threadReadStateName(string $user, string $space, string $thread): string - { - return self::getPathTemplate('threadReadState')->render([ - 'user' => $user, - 'space' => $space, - 'thread' => $thread, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a user - * resource. - * - * @param string $user - * - * @return string The formatted user resource. - */ - public static function userName(string $user): string - { - return self::getPathTemplate('user')->render([ - 'user' => $user, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - attachment: spaces/{space}/messages/{message}/attachments/{attachment} - * - customEmoji: customEmojis/{custom_emoji} - * - membership: spaces/{space}/members/{member} - * - message: spaces/{space}/messages/{message} - * - quotedMessageMetadata: spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata} - * - reaction: spaces/{space}/messages/{message}/reactions/{reaction} - * - section: users/{user}/sections/{section} - * - sectionItem: users/{user}/sections/{section}/items/{item} - * - space: spaces/{space} - * - spaceEvent: spaces/{space}/spaceEvents/{space_event} - * - spaceNotificationSetting: users/{user}/spaces/{space}/spaceNotificationSetting - * - spaceReadState: users/{user}/spaces/{space}/spaceReadState - * - thread: spaces/{space}/threads/{thread} - * - threadReadState: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - user: users/{user} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chat.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Apps\Chat\V1\ChatServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ChatServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Completes the - * [import process](https://developers.google.com/workspace/chat/import-data) - * for the specified space and makes it visible to users. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * and domain-wide delegation with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.import` - * - * For more information, see [Authorize Google - * Chat apps to import - * data](https://developers.google.com/workspace/chat/authorize-import). - * - * The async variant is {@see ChatServiceClient::completeImportSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/complete_import_space.php - * - * @param CompleteImportSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CompleteImportSpaceResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function completeImportSpace(CompleteImportSpaceRequest $request, array $callOptions = []): CompleteImportSpaceResponse - { - return $this->startApiCall('CompleteImportSpace', $request, $callOptions)->wait(); - } - - /** - * Creates a custom emoji. - * - * Custom emojis are only available for Google Workspace accounts, and the - * administrator must turn custom emojis on for the organization. For more - * information, see [Learn about custom emojis in Google - * Chat](https://support.google.com/chat/answer/12800149) and - * [Manage custom emoji - * permissions](https://support.google.com/a/answer/12850085). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.customemojis` - * - * The async variant is {@see ChatServiceClient::createCustomEmojiAsync()} . - * - * @example samples/V1/ChatServiceClient/create_custom_emoji.php - * - * @param CreateCustomEmojiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomEmoji - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCustomEmoji(CreateCustomEmojiRequest $request, array $callOptions = []): CustomEmoji - { - return $this->startApiCall('CreateCustomEmoji', $request, $callOptions)->wait(); - } - - /** - * Creates a membership for the calling Chat app, a user, or a Google Group. - * Creating memberships for other Chat apps isn't supported. - * When creating a membership, if the specified member has their auto-accept - * policy turned off, then they're invited, and must accept the space - * invitation before joining. Otherwise, creating a membership adds the member - * directly to the specified space. - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator approval](https://support.google.com/a?p=chat-app-auth) - * and the authorization scope: - * - `https://www.googleapis.com/auth/chat.app.memberships` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.memberships` - * - `https://www.googleapis.com/auth/chat.memberships.app` (to add the - * calling app to the space) - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * the following authorization scope is used: - * - `https://www.googleapis.com/auth/chat.admin.memberships` - * - * App authentication is not supported for the following use cases: - * - * - Inviting users external to the Workspace organization that owns the - * space. - * - Adding a Google Group to a space. - * - Adding a Chat app to a space. - * - * For example usage, see: - * - * - [Invite or add a user to a - * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). - * - [Invite or add a Google Group to a - * space](https://developers.google.com/workspace/chat/create-members#create-group-membership). - * - [Add the Chat app to a - * space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api). - * - * The async variant is {@see ChatServiceClient::createMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/create_membership.php - * - * @param CreateMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function createMembership(CreateMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('CreateMembership', $request, $callOptions)->wait(); - } - - /** - * Creates a message in a Google Chat space. For an example, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with the authorization scope: - * - `https://www.googleapis.com/auth/chat.bot` - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.messages.create` - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - * Chat attributes the message sender differently depending on the type of - * authentication that you use in your request. - * - * The following image shows how Chat attributes a message when you use app - * authentication. Chat displays the Chat app as the message - * sender. The content of the message can contain text (`text`), cards - * (`cardsV2`), and accessory widgets (`accessoryWidgets`). - * - * ![Message sent with app - * authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) - * - * The following image shows how Chat attributes a message when you use user - * authentication. Chat displays the user as the message sender and attributes - * the Chat app to the message by displaying its name. The content of message - * can only contain text (`text`). - * - * ![Message sent with user - * authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) - * - * The maximum message size, including the message contents, is 32,000 bytes. - * - * For - * [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) - * requests, the response doesn't contain the full message. The response only - * populates the `name` and `thread.name` fields in addition to the - * information that was in the request. - * - * The async variant is {@see ChatServiceClient::createMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/create_message.php - * - * @param CreateMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Message - * - * @throws ApiException Thrown if the API call fails. - */ - public function createMessage(CreateMessageRequest $request, array $callOptions = []): Message - { - return $this->startApiCall('CreateMessage', $request, $callOptions)->wait(); - } - - /** - * Creates a reaction and adds it to a message. For an example, see - * [Add a reaction to a - * message](https://developers.google.com/workspace/chat/create-reactions). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.messages.reactions.create` - * - `https://www.googleapis.com/auth/chat.messages.reactions` - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - * - * The async variant is {@see ChatServiceClient::createReactionAsync()} . - * - * @example samples/V1/ChatServiceClient/create_reaction.php - * - * @param CreateReactionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Reaction - * - * @throws ApiException Thrown if the API call fails. - */ - public function createReaction(CreateReactionRequest $request, array $callOptions = []): Reaction - { - return $this->startApiCall('CreateReaction', $request, $callOptions)->wait(); - } - - /** - * Creates a section in Google Chat. Sections help users group conversations - * and customize the list of spaces displayed in Chat navigation panel. Only - * sections of type `CUSTOM_SECTION` can be created. For details, see [Create - * and organize sections in Google - * Chat](https://support.google.com/chat/answer/16059854). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.sections` - * - * The async variant is {@see ChatServiceClient::createSectionAsync()} . - * - * @example samples/V1/ChatServiceClient/create_section.php - * - * @param CreateSectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Section - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSection(CreateSectionRequest $request, array $callOptions = []): Section - { - return $this->startApiCall('CreateSection', $request, $callOptions)->wait(); - } - - /** - * Creates a space. Can be used to create a named space, or a - * group chat in `Import mode`. For an example, see [Create a - * space](https://developers.google.com/workspace/chat/create-spaces). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator approval](https://support.google.com/a?p=chat-app-auth) - * and one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.app.spaces.create` - * - `https://www.googleapis.com/auth/chat.app.spaces` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.spaces.create` - * - `https://www.googleapis.com/auth/chat.spaces` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - * When authenticating as an app, the `space.customer` field must be set in - * the request. - * - * When authenticating as an app, the Chat app is added as a member of the - * space. However, unlike human authentication, the Chat app is not added as a - * space manager. By default, the Chat app can be removed from the space by - * all space members. To allow only space managers to remove the app from a - * space, set `space.permission_settings.manage_apps` to `managers_allowed`. - * - * Space membership upon creation depends on whether the space is created in - * `Import mode`: - * - * * **Import mode:** No members are created. - * * **All other modes:** The calling user is added as a member. This is: - * * The app itself when using app authentication. - * * The human user when using user authentication. - * - * If you receive the error message `ALREADY_EXISTS` when creating - * a space, try a different `displayName`. An existing space within - * the Google Workspace organization might already use this display name. - * - * The async variant is {@see ChatServiceClient::createSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/create_space.php - * - * @param CreateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSpace(CreateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('CreateSpace', $request, $callOptions)->wait(); - } - - /** - * Deletes a custom emoji. By default, users can only delete custom emoji they - * created. [Emoji managers](https://support.google.com/a/answer/12850085) - * assigned by the administrator can delete any custom emoji in the - * organization. See [Learn about custom emojis in Google - * Chat](https://support.google.com/chat/answer/12800149). - * - * Custom emojis are only available for Google Workspace accounts, and the - * administrator must turn custom emojis on for the organization. For more - * information, see [Learn about custom emojis in Google - * Chat](https://support.google.com/chat/answer/12800149) and - * [Manage custom emoji - * permissions](https://support.google.com/a/answer/12850085). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.customemojis` - * - * The async variant is {@see ChatServiceClient::deleteCustomEmojiAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_custom_emoji.php - * - * @param DeleteCustomEmojiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteCustomEmoji(DeleteCustomEmojiRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteCustomEmoji', $request, $callOptions)->wait(); - } - - /** - * Deletes a membership. For an example, see - * [Remove a user or a Google Chat app from a - * space](https://developers.google.com/workspace/chat/delete-members). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator approval](https://support.google.com/a?p=chat-app-auth) - * and the authorization scope: - * - `https://www.googleapis.com/auth/chat.app.memberships` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.memberships` - * - `https://www.googleapis.com/auth/chat.memberships.app` (to remove - * the calling app from the space) - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * the following authorization scope is used: - * - `https://www.googleapis.com/auth/chat.admin.memberships` - * - * App authentication is not supported for the following use cases: - * - * - Removing a Google Group from a space. - * - Removing a Chat app from a space. - * - * To delete memberships for space managers, the requester - * must be a space manager. If you're using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * the Chat app must be the space creator. - * - * The async variant is {@see ChatServiceClient::deleteMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_membership.php - * - * @param DeleteMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteMembership(DeleteMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('DeleteMembership', $request, $callOptions)->wait(); - } - - /** - * Deletes a message. - * For an example, see [Delete a - * message](https://developers.google.com/workspace/chat/delete-messages). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with the authorization scope: - * - `https://www.googleapis.com/auth/chat.bot` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - * When using app authentication, requests can only delete messages - * created by the calling Chat app. - * - * The async variant is {@see ChatServiceClient::deleteMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_message.php - * - * @param DeleteMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteMessage(DeleteMessageRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMessage', $request, $callOptions)->wait(); - } - - /** - * Deletes a reaction to a message. For an example, see - * [Delete a - * reaction](https://developers.google.com/workspace/chat/delete-reactions). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.messages.reactions` - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - * - * The async variant is {@see ChatServiceClient::deleteReactionAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_reaction.php - * - * @param DeleteReactionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteReaction(DeleteReactionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteReaction', $request, $callOptions)->wait(); - } - - /** - * Deletes a section of type `CUSTOM_SECTION`. - * - * If the section contains items, such as spaces, the items are moved to - * Google Chat's default sections and are not deleted. - * - * For details, see [Create and organize sections in Google - * Chat](https://support.google.com/chat/answer/16059854). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.sections` - * - * The async variant is {@see ChatServiceClient::deleteSectionAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_section.php - * - * @param DeleteSectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSection(DeleteSectionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSection', $request, $callOptions)->wait(); - } - - /** - * Deletes a named space. Always performs a cascading delete, which means - * that the space's child resources—like messages posted in the space and - * memberships in the space—are also deleted. For an example, see - * [Delete a - * space](https://developers.google.com/workspace/chat/delete-spaces). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) and the - * authorization scope: - * - `https://www.googleapis.com/auth/chat.app.delete` (only in - * spaces the app created) - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.delete` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * the following authorization scope is used: - * - `https://www.googleapis.com/auth/chat.admin.delete` - * - * The async variant is {@see ChatServiceClient::deleteSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_space.php - * - * @param DeleteSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSpace(DeleteSpaceRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSpace', $request, $callOptions)->wait(); - } - - /** - * Returns the existing direct message with the specified user. If no direct - * message space is found, returns a `404 NOT_FOUND` error. For an example, - * see - * [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). - * - * With [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * returns the direct message space between the specified user and the calling - * Chat app. - * - * With [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * returns the direct message space between the specified user and the - * authenticated user. - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with the authorization scope: - * - `https://www.googleapis.com/auth/chat.bot` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.spaces` - * - * The async variant is {@see ChatServiceClient::findDirectMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/find_direct_message.php - * - * @param FindDirectMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function findDirectMessage(FindDirectMessageRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('FindDirectMessage', $request, $callOptions)->wait(); - } - - /** - * Returns all spaces with `spaceType == GROUP_CHAT`, whose - * human memberships contain exactly the calling user, and the users specified - * in `FindGroupChatsRequest.users`. Only members that have joined the - * conversation are supported. For an example, see [Find group - * chats](https://developers.google.com/workspace/chat/find-group-chats). - * - * If the calling user blocks, or is blocked by, some users, and no spaces - * with the entire specified set of users are found, this method returns - * spaces that don't include the blocked or blocking users. - * - * The specified set of users must contain only human (non-app) memberships. - * A request that contains non-human users doesn't return any spaces. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.memberships.readonly` - * - `https://www.googleapis.com/auth/chat.memberships` - * - * The async variant is {@see ChatServiceClient::findGroupChatsAsync()} . - * - * @example samples/V1/ChatServiceClient/find_group_chats.php - * - * @param FindGroupChatsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function findGroupChats(FindGroupChatsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('FindGroupChats', $request, $callOptions); - } - - /** - * Gets the metadata of a message attachment. The attachment data is fetched - * using the [media - * API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). - * For an example, see - * [Get metadata about a message - * attachment](https://developers.google.com/workspace/chat/get-media-attachments). - * - * Requires [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.bot` - * - * The async variant is {@see ChatServiceClient::getAttachmentAsync()} . - * - * @example samples/V1/ChatServiceClient/get_attachment.php - * - * @param GetAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Attachment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAttachment(GetAttachmentRequest $request, array $callOptions = []): Attachment - { - return $this->startApiCall('GetAttachment', $request, $callOptions)->wait(); - } - - /** - * Returns details about a custom emoji. - * - * Custom emojis are only available for Google Workspace accounts, and the - * administrator must turn custom emojis on for the organization. For more - * information, see [Learn about custom emojis in Google - * Chat](https://support.google.com/chat/answer/12800149) and - * [Manage custom emoji - * permissions](https://support.google.com/a/answer/12850085). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.customemojis.readonly` - * - `https://www.googleapis.com/auth/chat.customemojis` - * - * The async variant is {@see ChatServiceClient::getCustomEmojiAsync()} . - * - * @example samples/V1/ChatServiceClient/get_custom_emoji.php - * - * @param GetCustomEmojiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomEmoji - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomEmoji(GetCustomEmojiRequest $request, array $callOptions = []): CustomEmoji - { - return $this->startApiCall('GetCustomEmoji', $request, $callOptions)->wait(); - } - - /** - * Returns details about a membership. For an example, see - * [Get details about a user's or Google Chat app's - * membership](https://developers.google.com/workspace/chat/get-members). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.bot` - * - `https://www.googleapis.com/auth/chat.app.memberships` (requires - * [administrator approval](https://support.google.com/a?p=chat-app-auth)) - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.memberships.readonly` - * - `https://www.googleapis.com/auth/chat.memberships` - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * one of the following authorization scopes is used: - * - `https://www.googleapis.com/auth/chat.admin.memberships.readonly` - * - `https://www.googleapis.com/auth/chat.admin.memberships` - * - * The async variant is {@see ChatServiceClient::getMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/get_membership.php - * - * @param GetMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMembership(GetMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('GetMembership', $request, $callOptions)->wait(); - } - - /** - * Returns details about a message. - * For an example, see [Get details about a - * message](https://developers.google.com/workspace/chat/get-messages). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.bot`: When using this - * authorization scope, this method returns details about a message the - * Chat app has access to, like direct messages and [slash - * commands](https://developers.google.com/workspace/chat/slash-commands) - * that invoke the Chat app. - * - `https://www.googleapis.com/auth/chat.app.messages.readonly` - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth). - * When using this authentication scope, - * this method returns details about a public message in a space. - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.messages.readonly` - * - `https://www.googleapis.com/auth/chat.messages` - * - * Note: Might return a message from a blocked member or space. - * - * The async variant is {@see ChatServiceClient::getMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/get_message.php - * - * @param GetMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Message - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMessage(GetMessageRequest $request, array $callOptions = []): Message - { - return $this->startApiCall('GetMessage', $request, $callOptions)->wait(); - } - - /** - * Returns details about a space. For an example, see - * [Get details about a - * space](https://developers.google.com/workspace/chat/get-spaces). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.bot` - * - `https://www.googleapis.com/auth/chat.app.spaces` with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.spaces` - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * one of the following authorization scopes is used: - * - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.admin.spaces` - * - * App authentication has the following limitations: - * - * - `space.access_settings` is only populated when using the - * `chat.app.spaces` scope. - * - `space.predefind_permission_settings` and `space.permission_settings` are - * only populated when using the `chat.app.spaces` scope, and only for - * spaces the app created. - * - * The async variant is {@see ChatServiceClient::getSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/get_space.php - * - * @param GetSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpace(GetSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('GetSpace', $request, $callOptions)->wait(); - } - - /** - * Returns an event from a Google Chat space. The [event - * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) - * contains the most recent version of the resource that changed. For example, - * if you request an event about a new message but the message was later - * updated, the server returns the updated `Message` resource in the event - * payload. - * - * Note: The `permissionSettings` field is not returned in the Space - * object of the Space event data for this request. - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize) - * with an - * [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes) - * appropriate for reading the requested data: - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.app.spaces` - * - `https://www.googleapis.com/auth/chat.app.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.app.messages.readonly` - * - `https://www.googleapis.com/auth/chat.app.memberships` - * - `https://www.googleapis.com/auth/chat.app.memberships.readonly` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.spaces` - * - `https://www.googleapis.com/auth/chat.messages.readonly` - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` - * - `https://www.googleapis.com/auth/chat.messages.reactions` - * - `https://www.googleapis.com/auth/chat.memberships.readonly` - * - `https://www.googleapis.com/auth/chat.memberships` - * - * To get an event, the authenticated caller must be a member of the space. - * - * For an example, see [Get details about an - * event from a Google Chat - * space](https://developers.google.com/workspace/chat/get-space-event). - * - * The async variant is {@see ChatServiceClient::getSpaceEventAsync()} . - * - * @example samples/V1/ChatServiceClient/get_space_event.php - * - * @param GetSpaceEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceEvent - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpaceEvent(GetSpaceEventRequest $request, array $callOptions = []): SpaceEvent - { - return $this->startApiCall('GetSpaceEvent', $request, $callOptions)->wait(); - } - - /** - * Gets the space notification setting. For an example, see [Get the - * caller's space notification - * setting](https://developers.google.com/workspace/chat/get-space-notification-setting). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.spacesettings` - * - * The async variant is - * {@see ChatServiceClient::getSpaceNotificationSettingAsync()} . - * - * @example samples/V1/ChatServiceClient/get_space_notification_setting.php - * - * @param GetSpaceNotificationSettingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceNotificationSetting - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpaceNotificationSetting(GetSpaceNotificationSettingRequest $request, array $callOptions = []): SpaceNotificationSetting - { - return $this->startApiCall('GetSpaceNotificationSetting', $request, $callOptions)->wait(); - } - - /** - * Returns details about a user's read state within a space, used to identify - * read and unread messages. For an example, see [Get details about a user's - * space read - * state](https://developers.google.com/workspace/chat/get-space-read-state). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.readstate.readonly` - * - `https://www.googleapis.com/auth/chat.users.readstate` - * - * The async variant is {@see ChatServiceClient::getSpaceReadStateAsync()} . - * - * @example samples/V1/ChatServiceClient/get_space_read_state.php - * - * @param GetSpaceReadStateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceReadState - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpaceReadState(GetSpaceReadStateRequest $request, array $callOptions = []): SpaceReadState - { - return $this->startApiCall('GetSpaceReadState', $request, $callOptions)->wait(); - } - - /** - * Returns details about a user's read state within a thread, used to identify - * read and unread messages. For an example, see [Get details about a user's - * thread read - * state](https://developers.google.com/workspace/chat/get-thread-read-state). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.readstate.readonly` - * - `https://www.googleapis.com/auth/chat.users.readstate` - * - * The async variant is {@see ChatServiceClient::getThreadReadStateAsync()} . - * - * @example samples/V1/ChatServiceClient/get_thread_read_state.php - * - * @param GetThreadReadStateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ThreadReadState - * - * @throws ApiException Thrown if the API call fails. - */ - public function getThreadReadState(GetThreadReadStateRequest $request, array $callOptions = []): ThreadReadState - { - return $this->startApiCall('GetThreadReadState', $request, $callOptions)->wait(); - } - - /** - * Lists custom emojis visible to the authenticated user. - * - * Custom emojis are only available for Google Workspace accounts, and the - * administrator must turn custom emojis on for the organization. For more - * information, see [Learn about custom emojis in Google - * Chat](https://support.google.com/chat/answer/12800149) and - * [Manage custom emoji - * permissions](https://support.google.com/a/answer/12850085). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.customemojis.readonly` - * - `https://www.googleapis.com/auth/chat.customemojis` - * - * The async variant is {@see ChatServiceClient::listCustomEmojisAsync()} . - * - * @example samples/V1/ChatServiceClient/list_custom_emojis.php - * - * @param ListCustomEmojisRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomEmojis(ListCustomEmojisRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomEmojis', $request, $callOptions); - } - - /** - * Lists memberships in a space. For an example, see [List users and Google - * Chat apps in a - * space](https://developers.google.com/workspace/chat/list-members). Listing - * memberships with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * lists memberships in spaces that the Chat app has - * access to, but excludes Chat app memberships, - * including its own. Listing memberships with - * [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * lists memberships in spaces that the authenticated user has access to. - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.bot` - * - `https://www.googleapis.com/auth/chat.app.memberships` (requires - * [administrator approval](https://support.google.com/a?p=chat-app-auth)) - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.memberships.readonly` - * - `https://www.googleapis.com/auth/chat.memberships` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * one of the following authorization scopes is used: - * - `https://www.googleapis.com/auth/chat.admin.memberships.readonly` - * - `https://www.googleapis.com/auth/chat.admin.memberships` - * - * The async variant is {@see ChatServiceClient::listMembershipsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_memberships.php - * - * @param ListMembershipsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMemberships(ListMembershipsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMemberships', $request, $callOptions); - } - - /** - * Lists messages in a space that the caller is a member of, including - * messages from blocked members and spaces. System messages, like those - * announcing new space members, aren't included. If you list messages from a - * space with no messages, the response is an empty object. When using a - * REST/HTTP interface, the response contains an empty JSON object, `{}`. - * For an example, see - * [List - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * with the authorization scope: - * - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When - * using this authentication scope, this method only returns public - * messages in a space. It doesn't include private messages. - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.messages.readonly` - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - * The async variant is {@see ChatServiceClient::listMessagesAsync()} . - * - * @example samples/V1/ChatServiceClient/list_messages.php - * - * @param ListMessagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMessages(ListMessagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMessages', $request, $callOptions); - } - - /** - * Lists reactions to a message. For an example, see - * [List reactions for a - * message](https://developers.google.com/workspace/chat/list-reactions). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` - * - `https://www.googleapis.com/auth/chat.messages.reactions` - * - `https://www.googleapis.com/auth/chat.messages.readonly` - * - `https://www.googleapis.com/auth/chat.messages` - * - * The async variant is {@see ChatServiceClient::listReactionsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_reactions.php - * - * @param ListReactionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReactions(ListReactionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReactions', $request, $callOptions); - } - - /** - * Lists items in a section. - * - * Only spaces can be section items. For details, see [Create and organize - * sections in Google Chat](https://support.google.com/chat/answer/16059854). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.sections` - * - `https://www.googleapis.com/auth/chat.users.sections.readonly` - * - * The async variant is {@see ChatServiceClient::listSectionItemsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_section_items.php - * - * @param ListSectionItemsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSectionItems(ListSectionItemsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSectionItems', $request, $callOptions); - } - - /** - * Lists sections available to the Chat user. Sections help users group their - * conversations and customize the list of spaces displayed in Chat - * navigation panel. For details, see [Create and organize sections in Google - * Chat](https://support.google.com/chat/answer/16059854). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.sections` - * - `https://www.googleapis.com/auth/chat.users.sections.readonly` - * - * The async variant is {@see ChatServiceClient::listSectionsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_sections.php - * - * @param ListSectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSections(ListSectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSections', $request, $callOptions); - } - - /** - * Lists events from a Google Chat space. For each event, the - * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) - * contains the most recent version of the Chat resource. For example, if you - * list events about new space members, the server returns `Membership` - * resources that contain the latest membership details. If new members were - * removed during the requested period, the event payload contains an empty - * `Membership` resource. - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize) - * with an - * [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes) - * appropriate for reading the requested data: - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.app.spaces` - * - `https://www.googleapis.com/auth/chat.app.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.app.messages.readonly` - * - `https://www.googleapis.com/auth/chat.app.memberships` - * - `https://www.googleapis.com/auth/chat.app.memberships.readonly` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.spaces` - * - `https://www.googleapis.com/auth/chat.messages.readonly` - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` - * - `https://www.googleapis.com/auth/chat.messages.reactions` - * - `https://www.googleapis.com/auth/chat.memberships.readonly` - * - `https://www.googleapis.com/auth/chat.memberships` - * - * To list events, the authenticated caller must be a member of the space. - * - * For an example, see [List events from a Google Chat - * space](https://developers.google.com/workspace/chat/list-space-events). - * - * The async variant is {@see ChatServiceClient::listSpaceEventsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_space_events.php - * - * @param ListSpaceEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSpaceEvents(ListSpaceEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSpaceEvents', $request, $callOptions); - } - - /** - * Lists spaces the caller is a member of. Group chats and DMs aren't listed - * until the first message is sent. For an example, see - * [List - * spaces](https://developers.google.com/workspace/chat/list-spaces). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with the authorization scope: - * - `https://www.googleapis.com/auth/chat.bot` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.spaces` - * - * To list all named spaces by Google Workspace organization, use the - * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) - * method using Workspace administrator privileges instead. - * - * The async variant is {@see ChatServiceClient::listSpacesAsync()} . - * - * @example samples/V1/ChatServiceClient/list_spaces.php - * - * @param ListSpacesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSpaces(ListSpacesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSpaces', $request, $callOptions); - } - - /** - * Moves an item from one section to another. For example, if a section - * contains spaces, this method can be used to move a space to a different - * section. For details, see [Create and organize sections in Google - * Chat](https://support.google.com/chat/answer/16059854). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.sections` - * - * The async variant is {@see ChatServiceClient::moveSectionItemAsync()} . - * - * @example samples/V1/ChatServiceClient/move_section_item.php - * - * @param MoveSectionItemRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MoveSectionItemResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function moveSectionItem(MoveSectionItemRequest $request, array $callOptions = []): MoveSectionItemResponse - { - return $this->startApiCall('MoveSectionItem', $request, $callOptions)->wait(); - } - - /** - * Changes the sort order of a section. For details, see [Create and organize - * sections in Google Chat](https://support.google.com/chat/answer/16059854). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.sections` - * - * The async variant is {@see ChatServiceClient::positionSectionAsync()} . - * - * @example samples/V1/ChatServiceClient/position_section.php - * - * @param PositionSectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PositionSectionResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function positionSection(PositionSectionRequest $request, array $callOptions = []): PositionSectionResponse - { - return $this->startApiCall('PositionSection', $request, $callOptions)->wait(); - } - - /** - * Returns a list of spaces in a Google Workspace organization based on an - * administrator's search. In the request, set `use_admin_access` to `true`. - * For an example, see [Search for and manage - * spaces](https://developers.google.com/workspace/chat/search-manage-admin). - * - * Requires [user - * authentication with administrator - * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) - * and one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - * - `https://www.googleapis.com/auth/chat.admin.spaces` - * - * The async variant is {@see ChatServiceClient::searchSpacesAsync()} . - * - * @example samples/V1/ChatServiceClient/search_spaces.php - * - * @param SearchSpacesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchSpaces(SearchSpacesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchSpaces', $request, $callOptions); - } - - /** - * Creates a space and adds specified users to it. The calling user is - * automatically added to the space, and shouldn't be specified as a - * membership in the request. For an example, see - * [Set up a space with initial - * members](https://developers.google.com/workspace/chat/set-up-spaces). - * - * To specify the human members to add, add memberships with the appropriate - * `membership.member.name`. To add a human user, use `users/{user}`, where - * `{user}` can be the email address for the user. For users in the same - * Workspace organization `{user}` can also be the `id` for the person from - * the People API, or the `id` for the user in the Directory API. For example, - * if the People API Person profile ID for `user@example.com` is `123456789`, - * you can add the user to the space by setting the `membership.member.name` - * to `users/user@example.com` or `users/123456789`. - * - * To specify the Google groups to add, add memberships with the - * appropriate `membership.group_member.name`. To add or invite a Google - * group, use `groups/{group}`, where `{group}` is the `id` for the group from - * the Cloud Identity Groups API. For example, you can use [Cloud Identity - * Groups lookup - * API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup) - * to retrieve the ID `123456789` for group email `group@example.com`, then - * you can add the group to the space by setting the - * `membership.group_member.name` to `groups/123456789`. Group email is not - * supported, and Google groups can only be added as members in named spaces. - * - * For a named space or group chat, if the caller blocks, or is blocked - * by some members, or doesn't have permission to add some members, then - * those members aren't added to the created space. - * - * To create a direct message (DM) between the calling user and another human - * user, specify exactly one membership to represent the human user. If - * one user blocks the other, the request fails and the DM isn't created. - * - * To create a DM between the calling user and the calling app, set - * `Space.singleUserBotDm` to `true` and don't specify any memberships. You - * can only use this method to set up a DM with the calling app. To add the - * calling app as a member of a space or an existing DM between two human - * users, see - * [Invite or add a user or app to a - * space](https://developers.google.com/workspace/chat/create-members). - * - * If a DM already exists between two users, even when one user blocks the - * other at the time a request is made, then the existing DM is returned. - * - * Spaces with threaded replies aren't supported. If you receive the error - * message `ALREADY_EXISTS` when setting up a space, try a different - * `displayName`. An existing space within the Google Workspace organization - * might already use this display name. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.spaces.create` - * - `https://www.googleapis.com/auth/chat.spaces` - * - * The async variant is {@see ChatServiceClient::setUpSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/set_up_space.php - * - * @param SetUpSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function setUpSpace(SetUpSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('SetUpSpace', $request, $callOptions)->wait(); - } - - /** - * Updates a membership. For an example, see [Update a user's membership in - * a space](https://developers.google.com/workspace/chat/update-members). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator - * approval](https://support.google.com/a?p=chat-app-auth) and the - * authorization scope: - * - `https://www.googleapis.com/auth/chat.app.memberships` (only in - * spaces the app created) - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.memberships` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * the following authorization scope is used: - * - `https://www.googleapis.com/auth/chat.admin.memberships` - * - * The async variant is {@see ChatServiceClient::updateMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/update_membership.php - * - * @param UpdateMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMembership(UpdateMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('UpdateMembership', $request, $callOptions)->wait(); - } - - /** - * Updates a message. There's a difference between the `patch` and `update` - * methods. The `patch` - * method uses a `patch` request while the `update` method uses a `put` - * request. We recommend using the `patch` method. For an example, see - * [Update a - * message](https://developers.google.com/workspace/chat/update-messages). - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with the authorization scope: - * - `https://www.googleapis.com/auth/chat.bot` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - * When using app authentication, requests can only update messages - * created by the calling Chat app. - * - * The async variant is {@see ChatServiceClient::updateMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/update_message.php - * - * @param UpdateMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Message - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMessage(UpdateMessageRequest $request, array $callOptions = []): Message - { - return $this->startApiCall('UpdateMessage', $request, $callOptions)->wait(); - } - - /** - * Updates a section. Only sections of type `CUSTOM_SECTION` can be updated. - * For details, see [Create and organize sections in Google - * Chat](https://support.google.com/chat/answer/16059854). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.sections` - * - * The async variant is {@see ChatServiceClient::updateSectionAsync()} . - * - * @example samples/V1/ChatServiceClient/update_section.php - * - * @param UpdateSectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Section - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSection(UpdateSectionRequest $request, array $callOptions = []): Section - { - return $this->startApiCall('UpdateSection', $request, $callOptions)->wait(); - } - - /** - * Updates a space. For an example, see - * [Update a - * space](https://developers.google.com/workspace/chat/update-spaces). - * - * If you're updating the `displayName` field and receive the error message - * `ALREADY_EXISTS`, try a different display name.. An existing space within - * the Google Workspace organization might already use this display name. - * - * Supports the following types of - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - * - * - [App - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * with [administrator approval](https://support.google.com/a?p=chat-app-auth) - * and one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.app.spaces` - * - * - [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following authorization scopes: - * - `https://www.googleapis.com/auth/chat.spaces` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces - * only) - * - User authentication grants administrator privileges when an - * administrator account authenticates, `use_admin_access` is `true`, and - * the following authorization scopes is used: - * - `https://www.googleapis.com/auth/chat.admin.spaces` - * - * App authentication has the following limitations: - * - * - To update either `space.predefined_permission_settings` or - * `space.permission_settings`, the app must be the space creator. - * - Updating the `space.access_settings.audience` is not supported for app - * authentication. - * - * The async variant is {@see ChatServiceClient::updateSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/update_space.php - * - * @param UpdateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSpace(UpdateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('UpdateSpace', $request, $callOptions)->wait(); - } - - /** - * Updates the space notification setting. For an example, see [Update - * the caller's space notification - * setting](https://developers.google.com/workspace/chat/update-space-notification-setting). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.spacesettings` - * - * The async variant is - * {@see ChatServiceClient::updateSpaceNotificationSettingAsync()} . - * - * @example samples/V1/ChatServiceClient/update_space_notification_setting.php - * - * @param UpdateSpaceNotificationSettingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceNotificationSetting - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSpaceNotificationSetting(UpdateSpaceNotificationSettingRequest $request, array $callOptions = []): SpaceNotificationSetting - { - return $this->startApiCall('UpdateSpaceNotificationSetting', $request, $callOptions)->wait(); - } - - /** - * Updates a user's read state within a space, used to identify read and - * unread messages. For an example, see [Update a user's space read - * state](https://developers.google.com/workspace/chat/update-space-read-state). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with the [authorization - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.users.readstate` - * - * The async variant is {@see ChatServiceClient::updateSpaceReadStateAsync()} . - * - * @example samples/V1/ChatServiceClient/update_space_read_state.php - * - * @param UpdateSpaceReadStateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceReadState - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSpaceReadState(UpdateSpaceReadStateRequest $request, array $callOptions = []): SpaceReadState - { - return $this->startApiCall('UpdateSpaceReadState', $request, $callOptions)->wait(); - } - - /** - * Uploads an attachment. For an example, see - * [Upload media as a file - * attachment](https://developers.google.com/workspace/chat/upload-media-attachments). - * - * Requires user - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * with one of the following [authorization - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - * - * - `https://www.googleapis.com/auth/chat.messages.create` - * - `https://www.googleapis.com/auth/chat.messages` - * - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - * - * You can upload attachments up to 200 MB. Certain file types aren't - * supported. For details, see [File types blocked by Google - * Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat). - * - * The async variant is {@see ChatServiceClient::uploadAttachmentAsync()} . - * - * @example samples/V1/ChatServiceClient/upload_attachment.php - * - * @param UploadAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return UploadAttachmentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function uploadAttachment(UploadAttachmentRequest $request, array $callOptions = []): UploadAttachmentResponse - { - return $this->startApiCall('UploadAttachment', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json deleted file mode 100644 index d0bc4ad614d2..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,233 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.chat.v1", - "libraryPackage": "Google\\Apps\\Chat\\V1", - "services": { - "ChatService": { - "clients": { - "grpc": { - "libraryClient": "ChatServiceGapicClient", - "rpcs": { - "CompleteImportSpace": { - "methods": [ - "completeImportSpace" - ] - }, - "CreateCustomEmoji": { - "methods": [ - "createCustomEmoji" - ] - }, - "CreateMembership": { - "methods": [ - "createMembership" - ] - }, - "CreateMessage": { - "methods": [ - "createMessage" - ] - }, - "CreateReaction": { - "methods": [ - "createReaction" - ] - }, - "CreateSection": { - "methods": [ - "createSection" - ] - }, - "CreateSpace": { - "methods": [ - "createSpace" - ] - }, - "DeleteCustomEmoji": { - "methods": [ - "deleteCustomEmoji" - ] - }, - "DeleteMembership": { - "methods": [ - "deleteMembership" - ] - }, - "DeleteMessage": { - "methods": [ - "deleteMessage" - ] - }, - "DeleteReaction": { - "methods": [ - "deleteReaction" - ] - }, - "DeleteSection": { - "methods": [ - "deleteSection" - ] - }, - "DeleteSpace": { - "methods": [ - "deleteSpace" - ] - }, - "FindDirectMessage": { - "methods": [ - "findDirectMessage" - ] - }, - "FindGroupChats": { - "methods": [ - "findGroupChats" - ] - }, - "GetAttachment": { - "methods": [ - "getAttachment" - ] - }, - "GetCustomEmoji": { - "methods": [ - "getCustomEmoji" - ] - }, - "GetMembership": { - "methods": [ - "getMembership" - ] - }, - "GetMessage": { - "methods": [ - "getMessage" - ] - }, - "GetSpace": { - "methods": [ - "getSpace" - ] - }, - "GetSpaceEvent": { - "methods": [ - "getSpaceEvent" - ] - }, - "GetSpaceNotificationSetting": { - "methods": [ - "getSpaceNotificationSetting" - ] - }, - "GetSpaceReadState": { - "methods": [ - "getSpaceReadState" - ] - }, - "GetThreadReadState": { - "methods": [ - "getThreadReadState" - ] - }, - "ListCustomEmojis": { - "methods": [ - "listCustomEmojis" - ] - }, - "ListMemberships": { - "methods": [ - "listMemberships" - ] - }, - "ListMessages": { - "methods": [ - "listMessages" - ] - }, - "ListReactions": { - "methods": [ - "listReactions" - ] - }, - "ListSectionItems": { - "methods": [ - "listSectionItems" - ] - }, - "ListSections": { - "methods": [ - "listSections" - ] - }, - "ListSpaceEvents": { - "methods": [ - "listSpaceEvents" - ] - }, - "ListSpaces": { - "methods": [ - "listSpaces" - ] - }, - "MoveSectionItem": { - "methods": [ - "moveSectionItem" - ] - }, - "PositionSection": { - "methods": [ - "positionSection" - ] - }, - "SearchSpaces": { - "methods": [ - "searchSpaces" - ] - }, - "SetUpSpace": { - "methods": [ - "setUpSpace" - ] - }, - "UpdateMembership": { - "methods": [ - "updateMembership" - ] - }, - "UpdateMessage": { - "methods": [ - "updateMessage" - ] - }, - "UpdateSection": { - "methods": [ - "updateSection" - ] - }, - "UpdateSpace": { - "methods": [ - "updateSpace" - ] - }, - "UpdateSpaceNotificationSetting": { - "methods": [ - "updateSpaceNotificationSetting" - ] - }, - "UpdateSpaceReadState": { - "methods": [ - "updateSpaceReadState" - ] - }, - "UploadAttachment": { - "methods": [ - "uploadAttachment" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json deleted file mode 100644 index 1382fd16fe06..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json +++ /dev/null @@ -1,249 +0,0 @@ -{ - "interfaces": { - "google.chat.v1.ChatService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "CompleteImportSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomEmoji": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateReaction": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSection": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteCustomEmoji": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteReaction": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSection": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FindDirectMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FindGroupChats": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAttachment": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomEmoji": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpaceEvent": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpaceNotificationSetting": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpaceReadState": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetThreadReadState": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomEmojis": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMemberships": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMessages": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListReactions": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSectionItems": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSections": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSpaceEvents": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSpaces": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "MoveSectionItem": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "PositionSection": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchSpaces": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetUpSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSection": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSpaceNotificationSetting": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSpaceReadState": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UploadAttachment": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php deleted file mode 100644 index 77d113e0126f..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php +++ /dev/null @@ -1,583 +0,0 @@ - [ - 'google.chat.v1.ChatService' => [ - 'CompleteImportSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\CompleteImportSpaceResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateCustomEmoji' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\CustomEmoji', - ], - 'CreateMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Message', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReaction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Reaction', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Section', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - ], - 'DeleteCustomEmoji' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReaction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FindDirectMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - ], - 'FindGroupChats' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpaces', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\FindGroupChatsResponse', - ], - 'GetAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Attachment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomEmoji' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\CustomEmoji', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Message', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceEvent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceNotificationSetting' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceNotificationSetting', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceReadState' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceReadState', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetThreadReadState' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ThreadReadState', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomEmojis' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomEmojis', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListCustomEmojisResponse', - ], - 'ListMemberships' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMemberships', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListMembershipsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMessages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListMessagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListReactions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReactions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListReactionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSectionItems' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSectionItems', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListSectionItemsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListSectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpaceEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpaceEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListSpaceEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpaces' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpaces', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListSpacesResponse', - ], - 'MoveSectionItem' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\MoveSectionItemResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'PositionSection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\PositionSectionResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SearchSpaces' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpaces', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SearchSpacesResponse', - ], - 'SetUpSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - ], - 'UpdateMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'membership.name', - 'fieldAccessors' => [ - 'getMembership', - 'getName', - ], - ], - ], - ], - 'UpdateMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Message', - 'headerParams' => [ - [ - 'keyName' => 'message.name', - 'fieldAccessors' => [ - 'getMessage', - 'getName', - ], - ], - ], - ], - 'UpdateSection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Section', - 'headerParams' => [ - [ - 'keyName' => 'section.name', - 'fieldAccessors' => [ - 'getSection', - 'getName', - ], - ], - ], - ], - 'UpdateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - 'headerParams' => [ - [ - 'keyName' => 'space.name', - 'fieldAccessors' => [ - 'getSpace', - 'getName', - ], - ], - ], - ], - 'UpdateSpaceNotificationSetting' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceNotificationSetting', - 'headerParams' => [ - [ - 'keyName' => 'space_notification_setting.name', - 'fieldAccessors' => [ - 'getSpaceNotificationSetting', - 'getName', - ], - ], - ], - ], - 'UpdateSpaceReadState' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceReadState', - 'headerParams' => [ - [ - 'keyName' => 'space_read_state.name', - 'fieldAccessors' => [ - 'getSpaceReadState', - 'getName', - ], - ], - ], - ], - 'UploadAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\UploadAttachmentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'attachment' => 'spaces/{space}/messages/{message}/attachments/{attachment}', - 'customEmoji' => 'customEmojis/{custom_emoji}', - 'membership' => 'spaces/{space}/members/{member}', - 'message' => 'spaces/{space}/messages/{message}', - 'quotedMessageMetadata' => 'spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}', - 'reaction' => 'spaces/{space}/messages/{message}/reactions/{reaction}', - 'section' => 'users/{user}/sections/{section}', - 'sectionItem' => 'users/{user}/sections/{section}/items/{item}', - 'space' => 'spaces/{space}', - 'spaceEvent' => 'spaces/{space}/spaceEvents/{space_event}', - 'spaceNotificationSetting' => 'users/{user}/spaces/{space}/spaceNotificationSetting', - 'spaceReadState' => 'users/{user}/spaces/{space}/spaceReadState', - 'thread' => 'spaces/{space}/threads/{thread}', - 'threadReadState' => 'users/{user}/spaces/{space}/threads/{thread}/threadReadState', - 'user' => 'users/{user}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php deleted file mode 100644 index 3771817b03b1..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php +++ /dev/null @@ -1,500 +0,0 @@ - [ - 'google.chat.v1.ChatService' => [ - 'CompleteImportSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=spaces/*}:completeImport', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateCustomEmoji' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/customEmojis', - 'body' => 'custom_emoji', - ], - 'CreateMembership' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*}/members', - 'body' => 'membership', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMessage' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*}/messages', - 'body' => 'message', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReaction' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*/messages/*}/reactions', - 'body' => 'reaction', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSection' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=users/*}/sections', - 'body' => 'section', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/spaces', - 'body' => 'space', - ], - 'DeleteCustomEmoji' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=customEmojis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMembership' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*/members/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMessage' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReaction' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*/reactions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSection' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=users/*/sections/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSpace' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FindDirectMessage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/spaces:findDirectMessage', - ], - 'FindGroupChats' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/spaces:findGroupChats', - ], - 'GetAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*/attachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomEmoji' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=customEmojis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMembership' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/members/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMessage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/spaceEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceNotificationSetting' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=users/*/spaces/*/spaceNotificationSetting}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceReadState' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=users/*/spaces/*/spaceReadState}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetThreadReadState' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=users/*/spaces/*/threads/*/threadReadState}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomEmojis' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/customEmojis', - ], - 'ListMemberships' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*}/members', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*}/messages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListReactions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*/messages/*}/reactions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSectionItems' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=users/*/sections/*}/items', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSections' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=users/*}/sections', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpaceEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*}/spaceEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'filter', - ], - ], - 'ListSpaces' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/spaces', - ], - 'MoveSectionItem' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=users/*/sections/*/items/*}:move', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'PositionSection' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=users/*/sections/*}:position', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'SearchSpaces' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/spaces:search', - ], - 'SetUpSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/spaces:setup', - 'body' => '*', - ], - 'UpdateMembership' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{membership.name=spaces/*/members/*}', - 'body' => 'membership', - 'placeholders' => [ - 'membership.name' => [ - 'getters' => [ - 'getMembership', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMessage' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{message.name=spaces/*/messages/*}', - 'body' => 'message', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{message.name=spaces/*/messages/*}', - 'body' => 'message', - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'placeholders' => [ - 'message.name' => [ - 'getters' => [ - 'getMessage', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSection' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{section.name=users/*/sections/*}', - 'body' => 'section', - 'placeholders' => [ - 'section.name' => [ - 'getters' => [ - 'getSection', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSpace' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{space.name=spaces/*}', - 'body' => 'space', - 'placeholders' => [ - 'space.name' => [ - 'getters' => [ - 'getSpace', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSpaceNotificationSetting' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}', - 'body' => 'space_notification_setting', - 'placeholders' => [ - 'space_notification_setting.name' => [ - 'getters' => [ - 'getSpaceNotificationSetting', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSpaceReadState' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}', - 'body' => 'space_read_state', - 'placeholders' => [ - 'space_read_state.name' => [ - 'getters' => [ - 'getSpaceReadState', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UploadAttachment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*}/attachments:upload', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php b/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php deleted file mode 100644 index 5963d1ea1e06..000000000000 --- a/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php +++ /dev/null @@ -1,3189 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ChatServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ChatServiceClient($options); - } - - /** @test */ - public function completeImportSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CompleteImportSpaceResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new CompleteImportSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->completeImportSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CompleteImportSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeImportSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new CompleteImportSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->completeImportSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomEmojiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $uid = 'uid115792'; - $emojiName = 'emojiName749661924'; - $temporaryImageUri = 'temporaryImageUri-241827814'; - $expectedResponse = new CustomEmoji(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEmojiName($emojiName); - $expectedResponse->setTemporaryImageUri($temporaryImageUri); - $transport->addResponse($expectedResponse); - // Mock request - $customEmoji = new CustomEmoji(); - $request = (new CreateCustomEmojiRequest()) - ->setCustomEmoji($customEmoji); - $response = $gapicClient->createCustomEmoji($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateCustomEmoji', $actualFuncCall); - $actualValue = $actualRequestObject->getCustomEmoji(); - $this->assertProtobufEquals($customEmoji, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomEmojiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $customEmoji = new CustomEmoji(); - $request = (new CreateCustomEmojiRequest()) - ->setCustomEmoji($customEmoji); - try { - $gapicClient->createCustomEmoji($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $membership = new Membership(); - $request = (new CreateMembershipRequest()) - ->setParent($formattedParent) - ->setMembership($membership); - $response = $gapicClient->createMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMembership(); - $this->assertProtobufEquals($membership, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $membership = new Membership(); - $request = (new CreateMembershipRequest()) - ->setParent($formattedParent) - ->setMembership($membership); - try { - $gapicClient->createMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $text = 'text3556653'; - $formattedText = 'formattedText-1686936880'; - $fallbackText = 'fallbackText563106922'; - $argumentText = 'argumentText-39826065'; - $threadReply = false; - $silent = false; - $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; - $expectedResponse = new Message(); - $expectedResponse->setName($name); - $expectedResponse->setText($text); - $expectedResponse->setFormattedText($formattedText); - $expectedResponse->setFallbackText($fallbackText); - $expectedResponse->setArgumentText($argumentText); - $expectedResponse->setThreadReply($threadReply); - $expectedResponse->setSilent($silent); - $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $message = new Message(); - $request = (new CreateMessageRequest()) - ->setParent($formattedParent) - ->setMessage($message); - $response = $gapicClient->createMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMessage(); - $this->assertProtobufEquals($message, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $message = new Message(); - $request = (new CreateMessageRequest()) - ->setParent($formattedParent) - ->setMessage($message); - try { - $gapicClient->createMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReactionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Reaction(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $reaction = new Reaction(); - $reactionEmoji = new Emoji(); - $reaction->setEmoji($reactionEmoji); - $request = (new CreateReactionRequest()) - ->setParent($formattedParent) - ->setReaction($reaction); - $response = $gapicClient->createReaction($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateReaction', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReaction(); - $this->assertProtobufEquals($reaction, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReactionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $reaction = new Reaction(); - $reactionEmoji = new Emoji(); - $reaction->setEmoji($reactionEmoji); - $request = (new CreateReactionRequest()) - ->setParent($formattedParent) - ->setReaction($reaction); - try { - $gapicClient->createReaction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $sortOrder = 374296211; - $expectedResponse = new Section(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSortOrder($sortOrder); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->userName('[USER]'); - $section = new Section(); - $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; - $section->setType($sectionType); - $request = (new CreateSectionRequest()) - ->setParent($formattedParent) - ->setSection($section); - $response = $gapicClient->createSection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateSection', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSection(); - $this->assertProtobufEquals($section, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->userName('[USER]'); - $section = new Section(); - $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; - $section->setType($sectionType); - $request = (new CreateSectionRequest()) - ->setParent($formattedParent) - ->setSection($section); - try { - $gapicClient->createSection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $customer = 'customer606175198'; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setCustomer($customer); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $request = (new CreateSpaceRequest()) - ->setSpace($space); - $response = $gapicClient->createSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $request = (new CreateSpaceRequest()) - ->setSpace($space); - try { - $gapicClient->createSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteCustomEmojiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); - $request = (new DeleteCustomEmojiRequest()) - ->setName($formattedName); - $gapicClient->deleteCustomEmoji($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteCustomEmoji', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteCustomEmojiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); - $request = (new DeleteCustomEmojiRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteCustomEmoji($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new DeleteMembershipRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new DeleteMembershipRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new DeleteMessageRequest()) - ->setName($formattedName); - $gapicClient->deleteMessage($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new DeleteMessageRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteReactionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); - $request = (new DeleteReactionRequest()) - ->setName($formattedName); - $gapicClient->deleteReaction($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteReaction', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteReactionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); - $request = (new DeleteReactionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteReaction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new DeleteSectionRequest()) - ->setName($formattedName); - $gapicClient->deleteSection($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteSection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new DeleteSectionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new DeleteSpaceRequest()) - ->setName($formattedName); - $gapicClient->deleteSpace($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new DeleteSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function findDirectMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $customer = 'customer606175198'; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name2); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setCustomer($customer); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new FindDirectMessageRequest()) - ->setName($name); - $response = $gapicClient->findDirectMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/FindDirectMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function findDirectMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new FindDirectMessageRequest()) - ->setName($name); - try { - $gapicClient->findDirectMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function findGroupChatsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $spacesElement = new Space(); - $spaces = [ - $spacesElement, - ]; - $expectedResponse = new FindGroupChatsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSpaces($spaces); - $transport->addResponse($expectedResponse); - $request = new FindGroupChatsRequest(); - $response = $gapicClient->findGroupChats($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/FindGroupChats', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function findGroupChatsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new FindGroupChatsRequest(); - try { - $gapicClient->findGroupChats($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $contentName = 'contentName831644305'; - $contentType = 'contentType831846208'; - $thumbnailUri = 'thumbnailUri1825632153'; - $downloadUri = 'downloadUri1109408053'; - $expectedResponse = new Attachment(); - $expectedResponse->setName($name2); - $expectedResponse->setContentName($contentName); - $expectedResponse->setContentType($contentType); - $expectedResponse->setThumbnailUri($thumbnailUri); - $expectedResponse->setDownloadUri($downloadUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); - $request = (new GetAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->getAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); - $request = (new GetAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->getAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomEmojiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $emojiName = 'emojiName749661924'; - $temporaryImageUri = 'temporaryImageUri-241827814'; - $expectedResponse = new CustomEmoji(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEmojiName($emojiName); - $expectedResponse->setTemporaryImageUri($temporaryImageUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); - $request = (new GetCustomEmojiRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomEmoji($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetCustomEmoji', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomEmojiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customEmojiName('[CUSTOM_EMOJI]'); - $request = (new GetCustomEmojiRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomEmoji($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new GetMembershipRequest()) - ->setName($formattedName); - $response = $gapicClient->getMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new GetMembershipRequest()) - ->setName($formattedName); - try { - $gapicClient->getMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $text = 'text3556653'; - $formattedText = 'formattedText-1686936880'; - $fallbackText = 'fallbackText563106922'; - $argumentText = 'argumentText-39826065'; - $threadReply = false; - $silent = false; - $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; - $expectedResponse = new Message(); - $expectedResponse->setName($name2); - $expectedResponse->setText($text); - $expectedResponse->setFormattedText($formattedText); - $expectedResponse->setFallbackText($fallbackText); - $expectedResponse->setArgumentText($argumentText); - $expectedResponse->setThreadReply($threadReply); - $expectedResponse->setSilent($silent); - $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new GetMessageRequest()) - ->setName($formattedName); - $response = $gapicClient->getMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new GetMessageRequest()) - ->setName($formattedName); - try { - $gapicClient->getMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $customer = 'customer606175198'; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name2); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setCustomer($customer); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventType = 'eventType984376767'; - $expectedResponse = new SpaceEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventType($eventType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceEventName('[SPACE]', '[SPACE_EVENT]'); - $request = (new GetSpaceEventRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpaceEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetSpaceEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceEventName('[SPACE]', '[SPACE_EVENT]'); - $request = (new GetSpaceEventRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpaceEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceNotificationSettingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new SpaceNotificationSetting(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceNotificationSettingName('[USER]', '[SPACE]'); - $request = (new GetSpaceNotificationSettingRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpaceNotificationSetting($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetSpaceNotificationSetting', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceNotificationSettingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceNotificationSettingName('[USER]', '[SPACE]'); - $request = (new GetSpaceNotificationSettingRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpaceNotificationSetting($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceReadStateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new SpaceReadState(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceReadStateName('[USER]', '[SPACE]'); - $request = (new GetSpaceReadStateRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpaceReadState($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetSpaceReadState', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceReadStateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceReadStateName('[USER]', '[SPACE]'); - $request = (new GetSpaceReadStateRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpaceReadState($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getThreadReadStateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new ThreadReadState(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); - $request = (new GetThreadReadStateRequest()) - ->setName($formattedName); - $response = $gapicClient->getThreadReadState($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetThreadReadState', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getThreadReadStateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); - $request = (new GetThreadReadStateRequest()) - ->setName($formattedName); - try { - $gapicClient->getThreadReadState($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomEmojisTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customEmojisElement = new CustomEmoji(); - $customEmojis = [ - $customEmojisElement, - ]; - $expectedResponse = new ListCustomEmojisResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomEmojis($customEmojis); - $transport->addResponse($expectedResponse); - $request = new ListCustomEmojisRequest(); - $response = $gapicClient->listCustomEmojis($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomEmojis()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListCustomEmojis', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomEmojisExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListCustomEmojisRequest(); - try { - $gapicClient->listCustomEmojis($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMembershipsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $membershipsElement = new Membership(); - $memberships = [ - $membershipsElement, - ]; - $expectedResponse = new ListMembershipsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMemberships($memberships); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMembershipsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMemberships($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMemberships()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListMemberships', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMembershipsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMembershipsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMemberships($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $messagesElement = new Message(); - $messages = [ - $messagesElement, - ]; - $expectedResponse = new ListMessagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMessages($messages); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMessages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMessages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListMessages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMessages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReactionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $reactionsElement = new Reaction(); - $reactions = [ - $reactionsElement, - ]; - $expectedResponse = new ListReactionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReactions($reactions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new ListReactionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReactions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReactions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListReactions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReactionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new ListReactionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReactions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSectionItemsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $sectionItemsElement = new SectionItem(); - $sectionItems = [ - $sectionItemsElement, - ]; - $expectedResponse = new ListSectionItemsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSectionItems($sectionItems); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new ListSectionItemsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSectionItems($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSectionItems()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListSectionItems', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSectionItemsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new ListSectionItemsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSectionItems($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $sectionsElement = new Section(); - $sections = [ - $sectionsElement, - ]; - $expectedResponse = new ListSectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSections($sections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->userName('[USER]'); - $request = (new ListSectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListSections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->userName('[USER]'); - $request = (new ListSectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpaceEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $spaceEventsElement = new SpaceEvent(); - $spaceEvents = [ - $spaceEventsElement, - ]; - $expectedResponse = new ListSpaceEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSpaceEvents($spaceEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filter = 'filter-1274492040'; - $request = (new ListSpaceEventsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - $response = $gapicClient->listSpaceEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpaceEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListSpaceEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpaceEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filter = 'filter-1274492040'; - $request = (new ListSpaceEventsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - try { - $gapicClient->listSpaceEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpacesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $spacesElement = new Space(); - $spaces = [ - $spacesElement, - ]; - $expectedResponse = new ListSpacesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSpaces($spaces); - $transport->addResponse($expectedResponse); - $request = new ListSpacesRequest(); - $response = $gapicClient->listSpaces($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListSpaces', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpacesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListSpacesRequest(); - try { - $gapicClient->listSpaces($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveSectionItemTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MoveSectionItemResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sectionItemName('[USER]', '[SECTION]', '[ITEM]'); - $formattedTargetSection = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new MoveSectionItemRequest()) - ->setName($formattedName) - ->setTargetSection($formattedTargetSection); - $response = $gapicClient->moveSectionItem($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/MoveSectionItem', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getTargetSection(); - $this->assertProtobufEquals($formattedTargetSection, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveSectionItemExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sectionItemName('[USER]', '[SECTION]', '[ITEM]'); - $formattedTargetSection = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new MoveSectionItemRequest()) - ->setName($formattedName) - ->setTargetSection($formattedTargetSection); - try { - $gapicClient->moveSectionItem($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function positionSectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PositionSectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new PositionSectionRequest()) - ->setName($formattedName); - $response = $gapicClient->positionSection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/PositionSection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function positionSectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sectionName('[USER]', '[SECTION]'); - $request = (new PositionSectionRequest()) - ->setName($formattedName); - try { - $gapicClient->positionSection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchSpacesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $spacesElement = new Space(); - $spaces = [ - $spacesElement, - ]; - $expectedResponse = new SearchSpacesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setSpaces($spaces); - $transport->addResponse($expectedResponse); - // Mock request - $query = 'query107944136'; - $request = (new SearchSpacesRequest()) - ->setQuery($query); - $response = $gapicClient->searchSpaces($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/SearchSpaces', $actualFuncCall); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchSpacesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $query = 'query107944136'; - $request = (new SearchSpacesRequest()) - ->setQuery($query); - try { - $gapicClient->searchSpaces($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setUpSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $customer = 'customer606175198'; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setCustomer($customer); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $request = (new SetUpSpaceRequest()) - ->setSpace($space); - $response = $gapicClient->setUpSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/SetUpSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setUpSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $request = (new SetUpSpaceRequest()) - ->setSpace($space); - try { - $gapicClient->setUpSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $membership = new Membership(); - $updateMask = new FieldMask(); - $request = (new UpdateMembershipRequest()) - ->setMembership($membership) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getMembership(); - $this->assertProtobufEquals($membership, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $membership = new Membership(); - $updateMask = new FieldMask(); - $request = (new UpdateMembershipRequest()) - ->setMembership($membership) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $text = 'text3556653'; - $formattedText = 'formattedText-1686936880'; - $fallbackText = 'fallbackText563106922'; - $argumentText = 'argumentText-39826065'; - $threadReply = false; - $silent = false; - $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; - $expectedResponse = new Message(); - $expectedResponse->setName($name); - $expectedResponse->setText($text); - $expectedResponse->setFormattedText($formattedText); - $expectedResponse->setFallbackText($fallbackText); - $expectedResponse->setArgumentText($argumentText); - $expectedResponse->setThreadReply($threadReply); - $expectedResponse->setSilent($silent); - $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); - $transport->addResponse($expectedResponse); - // Mock request - $message = new Message(); - $updateMask = new FieldMask(); - $request = (new UpdateMessageRequest()) - ->setMessage($message) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getMessage(); - $this->assertProtobufEquals($message, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $message = new Message(); - $updateMask = new FieldMask(); - $request = (new UpdateMessageRequest()) - ->setMessage($message) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $sortOrder = 374296211; - $expectedResponse = new Section(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSortOrder($sortOrder); - $transport->addResponse($expectedResponse); - // Mock request - $section = new Section(); - $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; - $section->setType($sectionType); - $updateMask = new FieldMask(); - $request = (new UpdateSectionRequest()) - ->setSection($section) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateSection', $actualFuncCall); - $actualValue = $actualRequestObject->getSection(); - $this->assertProtobufEquals($section, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $section = new Section(); - $sectionType = SectionType::SECTION_TYPE_UNSPECIFIED; - $section->setType($sectionType); - $updateMask = new FieldMask(); - $request = (new UpdateSectionRequest()) - ->setSection($section) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $customer = 'customer606175198'; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setCustomer($customer); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceNotificationSettingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new SpaceNotificationSetting(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $spaceNotificationSetting = new SpaceNotificationSetting(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceNotificationSettingRequest()) - ->setSpaceNotificationSetting($spaceNotificationSetting) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSpaceNotificationSetting($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateSpaceNotificationSetting', $actualFuncCall); - $actualValue = $actualRequestObject->getSpaceNotificationSetting(); - $this->assertProtobufEquals($spaceNotificationSetting, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceNotificationSettingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $spaceNotificationSetting = new SpaceNotificationSetting(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceNotificationSettingRequest()) - ->setSpaceNotificationSetting($spaceNotificationSetting) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSpaceNotificationSetting($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceReadStateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new SpaceReadState(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $spaceReadState = new SpaceReadState(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceReadStateRequest()) - ->setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSpaceReadState($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateSpaceReadState', $actualFuncCall); - $actualValue = $actualRequestObject->getSpaceReadState(); - $this->assertProtobufEquals($spaceReadState, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceReadStateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $spaceReadState = new SpaceReadState(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceReadStateRequest()) - ->setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSpaceReadState($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function uploadAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new UploadAttachmentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filename = 'filename-734768633'; - $request = (new UploadAttachmentRequest()) - ->setParent($formattedParent) - ->setFilename($filename); - $response = $gapicClient->uploadAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UploadAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFilename(); - $this->assertProtobufEquals($filename, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function uploadAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filename = 'filename-734768633'; - $request = (new UploadAttachmentRequest()) - ->setParent($formattedParent) - ->setFilename($filename); - try { - $gapicClient->uploadAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeImportSpaceAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CompleteImportSpaceResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new CompleteImportSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->completeImportSpaceAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CompleteImportSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}