From dc02ddfcdd9a58b4edcff9cb523c1079cb51a2fd Mon Sep 17 00:00:00 2001 From: Asghar Amereii Date: Sat, 30 Jun 2018 11:37:13 +0430 Subject: [PATCH] Fixed protobuf Segmentation fault --- src/GPBMetadata/ChannelAddMember.php | 2 +- src/GPBMetadata/ChannelAddMessageReaction.php | 2 +- src/GPBMetadata/ChannelAvatarAdd.php | 2 +- src/GPBMetadata/ChannelAvatarGetList.php | 2 +- src/GPBMetadata/ChannelEditMessage.php | 2 +- src/GPBMetadata/ChannelGetDraft.php | 2 +- src/GPBMetadata/ChannelGetMemberList.php | 2 +- src/GPBMetadata/ChannelPinMessage.php | 2 +- src/GPBMetadata/ChannelSendMessage.php | 2 +- src/GPBMetadata/ChannelSetAction.php | 2 +- src/GPBMetadata/ChannelUpdateDraft.php | 2 +- src/GPBMetadata/ChatConvertToGroup.php | 2 +- src/GPBMetadata/ChatEditMessage.php | 2 +- src/GPBMetadata/ChatGetDraft.php | 2 +- src/GPBMetadata/ChatGetRoom.php | 2 +- src/GPBMetadata/ChatSendMessage.php | 2 +- src/GPBMetadata/ChatSetAction.php | 2 +- src/GPBMetadata/ChatUpdateDraft.php | 2 +- src/GPBMetadata/ChatUpdateStatus.php | 2 +- src/GPBMetadata/ClientCheckInviteLink.php | 2 +- src/GPBMetadata/ClientGetRoom.php | 2 +- src/GPBMetadata/ClientGetRoomHistory.php | 2 +- src/GPBMetadata/ClientGetRoomList.php | 2 +- src/GPBMetadata/ClientGetRoomMessage.php | 2 +- src/GPBMetadata/ClientMuteRoom.php | 2 +- src/GPBMetadata/ClientResolveUsername.php | 2 +- src/GPBMetadata/ClientSearchRoomHistory.php | 2 +- src/GPBMetadata/ClientSearchUsername.php | 2 +- src/GPBMetadata/FileInfo.php | 2 +- src/GPBMetadata/GroupAddMember.php | 2 +- src/GPBMetadata/GroupAvatarAdd.php | 2 +- src/GPBMetadata/GroupAvatarGetList.php | 2 +- src/GPBMetadata/GroupEditMessage.php | 2 +- src/GPBMetadata/GroupGetDraft.php | 2 +- src/GPBMetadata/GroupGetMemberList.php | 2 +- src/GPBMetadata/GroupPinMessage.php | 2 +- src/GPBMetadata/GroupSendMessage.php | 2 +- src/GPBMetadata/GroupSetAction.php | 2 +- src/GPBMetadata/GroupUpdateDraft.php | 2 +- src/GPBMetadata/GroupUpdateStatus.php | 2 +- src/GPBMetadata/InfoWallpaper.php | 2 +- src/GPBMetadata/{Global.php => PBGlobal.php} | 2 +- src/GPBMetadata/QrCodeNewDevice.php | 2 +- src/GPBMetadata/SignalingGetLog.php | 2 +- src/GPBMetadata/UserAvatarAdd.php | 2 +- src/GPBMetadata/UserAvatarGetList.php | 2 +- src/GPBMetadata/UserContactsGetList.php | 2 +- src/GPBMetadata/UserInfo.php | 2 +- src/GPBMetadata/UserLogin.php | 2 +- src/GPBMetadata/UserPrivacyGetRule.php | 2 +- src/GPBMetadata/UserPrivacySetRule.php | 2 +- src/GPBMetadata/UserProfileGetGender.php | 2 +- src/GPBMetadata/UserProfileSetGender.php | 2 +- src/GPBMetadata/UserSessionGetActiveList.php | 2 +- src/GPBMetadata/UserVerifyNewDevice.php | 2 +- src/Proto/Avatar.php | 16 +- src/Proto/ChannelAddAdmin.php | 15 +- src/Proto/ChannelAddAdminResponse.php | 15 +- src/Proto/ChannelAddMember.php | 19 +- src/Proto/ChannelAddMember/Member.php | 61 +++ src/Proto/ChannelAddMemberResponse.php | 16 +- src/Proto/ChannelAddMember_Member.php | 45 +- src/Proto/ChannelAddMessageReaction.php | 16 +- .../ChannelAddMessageReactionResponse.php | 14 +- src/Proto/ChannelAddModerator.php | 15 +- src/Proto/ChannelAddModeratorResponse.php | 15 +- src/Proto/ChannelAvatarAdd.php | 15 +- src/Proto/ChannelAvatarAddResponse.php | 15 +- src/Proto/ChannelAvatarDelete.php | 15 +- src/Proto/ChannelAvatarDeleteResponse.php | 15 +- src/Proto/ChannelAvatarGetList.php | 14 +- src/Proto/ChannelAvatarGetListResponse.php | 14 +- src/Proto/ChannelCheckUsername.php | 15 +- src/Proto/ChannelCheckUsernameResponse.php | 14 +- .../ChannelCheckUsernameResponse/Status.php | 32 ++ .../ChannelCheckUsernameResponse_Status.php | 25 +- src/Proto/ChannelCreate.php | 15 +- src/Proto/ChannelCreateResponse.php | 15 +- src/Proto/ChannelDelete.php | 14 +- src/Proto/ChannelDeleteMessage.php | 15 +- src/Proto/ChannelDeleteMessageResponse.php | 16 +- src/Proto/ChannelDeleteResponse.php | 14 +- src/Proto/ChannelEdit.php | 16 +- src/Proto/ChannelEditMessage.php | 16 +- src/Proto/ChannelEditMessageResponse.php | 18 +- src/Proto/ChannelEditResponse.php | 16 +- src/Proto/ChannelGetDraft.php | 14 +- src/Proto/ChannelGetDraftResponse.php | 14 +- src/Proto/ChannelGetMemberList.php | 16 +- src/Proto/ChannelGetMemberList/FilterRole.php | 32 ++ src/Proto/ChannelGetMemberListResponse.php | 18 +- .../ChannelGetMemberListResponse/Member.php | 88 ++++ .../ChannelGetMemberListResponse_Member.php | 71 +-- src/Proto/ChannelGetMemberList_FilterRole.php | 25 +- src/Proto/ChannelGetMessagesStats.php | 15 +- src/Proto/ChannelGetMessagesStatsResponse.php | 18 +- .../ChannelGetMessagesStatsResponse/Stats.php | 142 ++++++ .../ChannelGetMessagesStatsResponse_Stats.php | 123 +---- src/Proto/ChannelKickAdmin.php | 15 +- src/Proto/ChannelKickAdminResponse.php | 15 +- src/Proto/ChannelKickMember.php | 15 +- src/Proto/ChannelKickMemberResponse.php | 15 +- src/Proto/ChannelKickModerator.php | 15 +- src/Proto/ChannelKickModeratorResponse.php | 15 +- src/Proto/ChannelLeft.php | 14 +- src/Proto/ChannelLeftResponse.php | 15 +- src/Proto/ChannelPinMessage.php | 15 +- src/Proto/ChannelPinMessageResponse.php | 15 +- src/Proto/ChannelRemoveUsername.php | 14 +- src/Proto/ChannelRemoveUsernameResponse.php | 14 +- src/Proto/ChannelRevokeLink.php | 14 +- src/Proto/ChannelRevokeLinkResponse.php | 16 +- src/Proto/ChannelRoom.php | 35 +- src/Proto/ChannelRoom/PrivateExtra.php | 88 ++++ src/Proto/ChannelRoom/PublicExtra.php | 61 +++ src/Proto/ChannelRoom/Role.php | 32 ++ src/Proto/ChannelRoom/Type.php | 24 + src/Proto/ChannelRoom_PrivateExtra.php | 71 +-- src/Proto/ChannelRoom_PublicExtra.php | 45 +- src/Proto/ChannelRoom_Role.php | 25 +- src/Proto/ChannelRoom_Type.php | 17 +- src/Proto/ChannelSendMessage.php | 22 +- src/Proto/ChannelSendMessageResponse.php | 15 +- src/Proto/ChannelSetAction.php | 16 +- src/Proto/ChannelSetActionResponse.php | 16 +- src/Proto/ChannelUpdateDraft.php | 15 +- src/Proto/ChannelUpdateDraftResponse.php | 15 +- src/Proto/ChannelUpdateReactionStatus.php | 15 +- .../ChannelUpdateReactionStatusResponse.php | 15 +- src/Proto/ChannelUpdateSignature.php | 15 +- src/Proto/ChannelUpdateSignatureResponse.php | 15 +- src/Proto/ChannelUpdateUsername.php | 15 +- src/Proto/ChannelUpdateUsernameResponse.php | 15 +- src/Proto/ChatClearMessage.php | 15 +- src/Proto/ChatClearMessageResponse.php | 15 +- src/Proto/ChatConvertToGroup.php | 16 +- src/Proto/ChatConvertToGroupResponse.php | 17 +- src/Proto/ChatDelete.php | 14 +- src/Proto/ChatDeleteMessage.php | 16 +- src/Proto/ChatDeleteMessageResponse.php | 16 +- src/Proto/ChatDeleteResponse.php | 14 +- src/Proto/ChatEditMessage.php | 16 +- src/Proto/ChatEditMessageResponse.php | 18 +- src/Proto/ChatGetDraft.php | 14 +- src/Proto/ChatGetDraftResponse.php | 14 +- src/Proto/ChatGetRoom.php | 14 +- src/Proto/ChatGetRoomResponse.php | 14 +- src/Proto/ChatRoom.php | 15 +- src/Proto/ChatSendMessage.php | 22 +- src/Proto/ChatSendMessageResponse.php | 15 +- src/Proto/ChatSetAction.php | 16 +- src/Proto/ChatSetActionResponse.php | 16 +- src/Proto/ChatUpdateDraft.php | 15 +- src/Proto/ChatUpdateDraftResponse.php | 15 +- src/Proto/ChatUpdateStatus.php | 16 +- src/Proto/ChatUpdateStatusResponse.php | 18 +- src/Proto/ClientAction.php | 2 +- src/Proto/ClientCheckInviteLink.php | 14 +- src/Proto/ClientCheckInviteLinkResponse.php | 14 +- src/Proto/ClientCondition.php | 18 +- src/Proto/ClientCondition/Room.php | 392 ++++++++++++++++ .../ClientCondition/Room/OfflineDeleted.php | 88 ++++ .../ClientCondition/Room/OfflineEdited.php | 88 ++++ .../ClientCondition/Room/OfflineMute.php | 28 ++ src/Proto/ClientConditionResponse.php | 13 +- src/Proto/ClientCondition_Room.php | 363 +-------------- .../ClientCondition_Room_OfflineDeleted.php | 71 +-- .../ClientCondition_Room_OfflineEdited.php | 71 +-- .../ClientCondition_Room_OfflineMute.php | 21 +- src/Proto/ClientCountRoomHistory.php | 14 +- src/Proto/ClientCountRoomHistoryResponse.php | 21 +- src/Proto/ClientGetRoom.php | 14 +- src/Proto/ClientGetRoomHistory.php | 17 +- src/Proto/ClientGetRoomHistory/Direction.php | 24 + src/Proto/ClientGetRoomHistoryResponse.php | 14 +- src/Proto/ClientGetRoomHistory_Direction.php | 17 +- src/Proto/ClientGetRoomList.php | 14 +- src/Proto/ClientGetRoomListResponse.php | 14 +- src/Proto/ClientGetRoomMessage.php | 15 +- src/Proto/ClientGetRoomMessageResponse.php | 14 +- src/Proto/ClientGetRoomResponse.php | 14 +- src/Proto/ClientJoinByInviteLink.php | 14 +- src/Proto/ClientJoinByInviteLinkResponse.php | 13 +- src/Proto/ClientJoinByUsername.php | 14 +- src/Proto/ClientJoinByUsernameResponse.php | 13 +- src/Proto/ClientMuteRoom.php | 15 +- src/Proto/ClientMuteRoomResponse.php | 15 +- src/Proto/ClientPinRoom.php | 15 +- src/Proto/ClientPinRoomResponse.php | 15 +- src/Proto/ClientRegisterDevice.php | 14 +- src/Proto/ClientRegisterDeviceResponse.php | 13 +- src/Proto/ClientResolveUsername.php | 14 +- src/Proto/ClientResolveUsernameResponse.php | 16 +- .../ClientResolveUsernameResponse/Type.php | 24 + .../ClientResolveUsernameResponse_Type.php | 17 +- src/Proto/ClientRoomReport.php | 17 +- src/Proto/ClientRoomReport/Reason.php | 36 ++ src/Proto/ClientRoomReportResponse.php | 13 +- src/Proto/ClientRoomReport_Reason.php | 29 +- src/Proto/ClientSearchRoomHistory.php | 18 +- src/Proto/ClientSearchRoomHistory/Filter.php | 44 ++ src/Proto/ClientSearchRoomHistoryResponse.php | 16 +- src/Proto/ClientSearchRoomHistory_Filter.php | 37 +- src/Proto/ClientSearchUsername.php | 14 +- src/Proto/ClientSearchUsernameResponse.php | 18 +- .../ClientSearchUsernameResponse/Result.php | 142 ++++++ .../Result/Type.php | 24 + .../ClientSearchUsernameResponse_Result.php | 123 +---- ...ientSearchUsernameResponse_Result_Type.php | 17 +- src/Proto/ClientSubscribeToRoom.php | 14 +- src/Proto/ClientSubscribeToRoomResponse.php | 13 +- src/Proto/ClientUnsubscribeFromRoom.php | 14 +- .../ClientUnsubscribeFromRoomResponse.php | 13 +- src/Proto/ConnectionSecuringResponse.php | 18 +- src/Proto/ConnectionSymmetricKey.php | 15 +- src/Proto/ConnectionSymmetricKeyResponse.php | 17 +- .../ConnectionSymmetricKeyResponse/Status.php | 24 + .../ConnectionSymmetricKeyResponse_Status.php | 17 +- src/Proto/Device.php | 2 +- src/Proto/ErrorResponse.php | 17 +- src/Proto/File.php | 26 +- src/Proto/FileDownload.php | 17 +- src/Proto/FileDownload/Selector.php | 32 ++ src/Proto/FileDownloadResponse.php | 14 +- src/Proto/FileDownload_Selector.php | 25 +- src/Proto/FileInfo.php | 14 +- src/Proto/FileInfoResponse.php | 14 +- src/Proto/FileUpload.php | 16 +- src/Proto/FileUploadInit.php | 18 +- src/Proto/FileUploadInitResponse.php | 17 +- src/Proto/FileUploadOption.php | 14 +- src/Proto/FileUploadOptionResponse.php | 16 +- src/Proto/FileUploadResponse.php | 16 +- src/Proto/FileUploadStatus.php | 14 +- src/Proto/FileUploadStatusResponse.php | 16 +- src/Proto/FileUploadStatusResponse/Status.php | 32 ++ src/Proto/FileUploadStatusResponse_Status.php | 25 +- src/Proto/Gender.php | 2 +- src/Proto/GeoGetComment.php | 14 +- src/Proto/GeoGetCommentResponse.php | 14 +- src/Proto/GeoGetConfiguration.php | 13 +- src/Proto/GeoGetConfigurationResponse.php | 19 +- .../TileServer.php | 61 +++ ...GeoGetConfigurationResponse_TileServer.php | 45 +- src/Proto/GeoGetNearbyCoordinate.php | 15 +- src/Proto/GeoGetNearbyCoordinateResponse.php | 18 +- .../GeoGetNearbyCoordinateResponse/Result.php | 142 ++++++ .../GeoGetNearbyCoordinateResponse_Result.php | 123 +---- src/Proto/GeoGetNearbyDistance.php | 15 +- src/Proto/GeoGetNearbyDistanceResponse.php | 18 +- .../GeoGetNearbyDistanceResponse/Result.php | 115 +++++ .../GeoGetNearbyDistanceResponse_Result.php | 97 +--- src/Proto/GeoGetRegisterStatus.php | 13 +- src/Proto/GeoGetRegisterStatusResponse.php | 14 +- src/Proto/GeoRegister.php | 14 +- src/Proto/GeoRegisterResponse.php | 14 +- src/Proto/GeoUpdateComment.php | 14 +- src/Proto/GeoUpdateCommentResponse.php | 14 +- src/Proto/GeoUpdatePosition.php | 15 +- src/Proto/GeoUpdatePositionResponse.php | 13 +- src/Proto/GroupAddAdmin.php | 15 +- src/Proto/GroupAddAdminResponse.php | 15 +- src/Proto/GroupAddMember.php | 19 +- src/Proto/GroupAddMember/Member.php | 88 ++++ src/Proto/GroupAddMemberResponse.php | 16 +- src/Proto/GroupAddMember_Member.php | 71 +-- src/Proto/GroupAddModerator.php | 15 +- src/Proto/GroupAddModeratorResponse.php | 15 +- src/Proto/GroupAvatarAdd.php | 15 +- src/Proto/GroupAvatarAddResponse.php | 15 +- src/Proto/GroupAvatarDelete.php | 15 +- src/Proto/GroupAvatarDeleteResponse.php | 15 +- src/Proto/GroupAvatarGetList.php | 14 +- src/Proto/GroupAvatarGetListResponse.php | 14 +- src/Proto/GroupCheckUsername.php | 15 +- src/Proto/GroupCheckUsernameResponse.php | 14 +- .../GroupCheckUsernameResponse/Status.php | 32 ++ .../GroupCheckUsernameResponse_Status.php | 25 +- src/Proto/GroupClearMessage.php | 15 +- src/Proto/GroupClearMessageResponse.php | 15 +- src/Proto/GroupCreate.php | 15 +- src/Proto/GroupCreateResponse.php | 15 +- src/Proto/GroupDelete.php | 14 +- src/Proto/GroupDeleteMessage.php | 15 +- src/Proto/GroupDeleteMessageResponse.php | 16 +- src/Proto/GroupDeleteResponse.php | 14 +- src/Proto/GroupEdit.php | 16 +- src/Proto/GroupEditMessage.php | 16 +- src/Proto/GroupEditMessageResponse.php | 18 +- src/Proto/GroupEditResponse.php | 16 +- src/Proto/GroupGetDraft.php | 14 +- src/Proto/GroupGetDraftResponse.php | 14 +- src/Proto/GroupGetMemberList.php | 16 +- src/Proto/GroupGetMemberList/FilterRole.php | 32 ++ src/Proto/GroupGetMemberListResponse.php | 18 +- .../GroupGetMemberListResponse/Member.php | 88 ++++ .../GroupGetMemberListResponse_Member.php | 71 +-- src/Proto/GroupGetMemberList_FilterRole.php | 25 +- src/Proto/GroupKickAdmin.php | 15 +- src/Proto/GroupKickAdminResponse.php | 15 +- src/Proto/GroupKickMember.php | 15 +- src/Proto/GroupKickMemberResponse.php | 15 +- src/Proto/GroupKickModerator.php | 15 +- src/Proto/GroupKickModeratorResponse.php | 15 +- src/Proto/GroupLeft.php | 14 +- src/Proto/GroupLeftResponse.php | 15 +- src/Proto/GroupPinMessage.php | 15 +- src/Proto/GroupPinMessageResponse.php | 15 +- src/Proto/GroupRemoveUsername.php | 14 +- src/Proto/GroupRemoveUsernameResponse.php | 14 +- src/Proto/GroupRevokeLink.php | 14 +- src/Proto/GroupRevokeLinkResponse.php | 16 +- src/Proto/GroupRoom.php | 33 +- src/Proto/GroupRoom/PrivateExtra.php | 88 ++++ src/Proto/GroupRoom/PublicExtra.php | 61 +++ src/Proto/GroupRoom/Role.php | 32 ++ src/Proto/GroupRoom/Type.php | 24 + src/Proto/GroupRoom_PrivateExtra.php | 71 +-- src/Proto/GroupRoom_PublicExtra.php | 45 +- src/Proto/GroupRoom_Role.php | 25 +- src/Proto/GroupRoom_Type.php | 17 +- src/Proto/GroupSendMessage.php | 22 +- src/Proto/GroupSendMessageResponse.php | 15 +- src/Proto/GroupSetAction.php | 16 +- src/Proto/GroupSetActionResponse.php | 16 +- src/Proto/GroupUpdateDraft.php | 15 +- src/Proto/GroupUpdateDraftResponse.php | 15 +- src/Proto/GroupUpdateStatus.php | 16 +- src/Proto/GroupUpdateStatusResponse.php | 18 +- src/Proto/GroupUpdateUsername.php | 15 +- src/Proto/GroupUpdateUsernameResponse.php | 15 +- src/Proto/Heartbeat.php | 13 +- src/Proto/HeartbeatResponse.php | 13 +- src/Proto/InfoCountry.php | 14 +- src/Proto/InfoCountryResponse.php | 17 +- src/Proto/InfoLocation.php | 13 +- src/Proto/InfoLocationResponse.php | 18 +- src/Proto/InfoPage.php | 14 +- src/Proto/InfoPageResponse.php | 14 +- src/Proto/InfoTime.php | 13 +- src/Proto/InfoTimeResponse.php | 14 +- src/Proto/InfoWallpaper.php | 14 +- src/Proto/InfoWallpaper/Fit.php | 28 ++ src/Proto/InfoWallpaperResponse.php | 14 +- src/Proto/InfoWallpaper_Fit.php | 21 +- src/Proto/Language.php | 2 +- src/Proto/Pagination.php | 16 +- src/Proto/Platform.php | 2 +- src/Proto/PrivacyLevel.php | 2 +- src/Proto/PrivacyType.php | 2 +- src/Proto/PushLoginTokenResponse.php | 17 +- src/Proto/PushRateSignalingResponse.php | 14 +- src/Proto/PushTwoStepVerificationResponse.php | 16 +- src/Proto/PushUserInfoExpiredResponse.php | 14 +- src/Proto/QrCodeAddContact.php | 16 +- src/Proto/QrCodeAddContactResponse.php | 14 +- src/Proto/QrCodeAddMe.php | 13 +- src/Proto/QrCodeAddMeResponse.php | 14 +- src/Proto/QrCodeJoin.php | 14 +- src/Proto/QrCodeJoinResponse.php | 14 +- src/Proto/QrCodeNewDevice.php | 21 +- src/Proto/QrCodeNewDeviceResponse.php | 15 +- src/Proto/QrCodeResolve.php | 15 +- src/Proto/QrCodeResolveResponse.php | 14 +- src/Proto/RegisteredUser.php | 31 +- src/Proto/RegisteredUser/Status.php | 48 ++ src/Proto/RegisteredUser_Status.php | 41 +- src/Proto/Request.php | 13 +- src/Proto/Response.php | 14 +- src/Proto/Room.php | 31 +- src/Proto/Room/Type.php | 28 ++ src/Proto/RoomDraft.php | 16 +- src/Proto/RoomMessage.php | 43 +- src/Proto/RoomMessage/Author.php | 115 +++++ src/Proto/RoomMessage/Author/Room.php | 61 +++ src/Proto/RoomMessage/Author/User.php | 88 ++++ src/Proto/RoomMessage/ChannelExtra.php | 142 ++++++ src/Proto/RoomMessage/ExtraType.php | 24 + src/Proto/RoomMessageContact.php | 19 +- src/Proto/RoomMessageForwardFrom.php | 16 +- src/Proto/RoomMessageLocation.php | 16 +- src/Proto/RoomMessageLog.php | 21 +- src/Proto/RoomMessageLog/ExtraType.php | 24 + src/Proto/RoomMessageLog/TargetUser.php | 61 +++ src/Proto/RoomMessageLog/Type.php | 76 +++ src/Proto/RoomMessageLog_ExtraType.php | 17 +- src/Proto/RoomMessageLog_TargetUser.php | 45 +- src/Proto/RoomMessageLog_Type.php | 69 +-- src/Proto/RoomMessageReaction.php | 2 +- src/Proto/RoomMessageStatus.php | 2 +- src/Proto/RoomMessageType.php | 2 +- src/Proto/RoomMessage_Author.php | 97 +--- src/Proto/RoomMessage_Author_Room.php | 45 +- src/Proto/RoomMessage_Author_User.php | 71 +-- src/Proto/RoomMessage_ChannelExtra.php | 123 +---- src/Proto/RoomMessage_ExtraType.php | 17 +- src/Proto/RoomMute.php | 2 +- src/Proto/Room_Type.php | 21 +- src/Proto/SignalingAccept.php | 14 +- src/Proto/SignalingAcceptResponse.php | 14 +- src/Proto/SignalingCandidate.php | 16 +- src/Proto/SignalingCandidateResponse.php | 16 +- src/Proto/SignalingClearLog.php | 14 +- src/Proto/SignalingClearLogResponse.php | 14 +- src/Proto/SignalingGetConfiguration.php | 13 +- .../SignalingGetConfigurationResponse.php | 22 +- .../IceServer.php | 115 +++++ ...lingGetConfigurationResponse_IceServer.php | 97 +--- src/Proto/SignalingGetLog.php | 14 +- src/Proto/SignalingGetLogResponse.php | 18 +- .../SignalingGetLogResponse/SignalingLog.php | 196 ++++++++ .../SignalingLog/Status.php | 32 ++ .../SignalingGetLogResponse_SignalingLog.php | 175 +------ ...lingGetLogResponse_SignalingLog_Status.php | 25 +- src/Proto/SignalingLeave.php | 13 +- src/Proto/SignalingLeaveResponse.php | 14 +- src/Proto/SignalingLeaveResponse/Type.php | 48 ++ src/Proto/SignalingLeaveResponse_Type.php | 41 +- src/Proto/SignalingOffer.php | 16 +- src/Proto/SignalingOffer/Type.php | 32 ++ src/Proto/SignalingOfferResponse.php | 16 +- src/Proto/SignalingOffer_Type.php | 25 +- src/Proto/SignalingRate.php | 16 +- src/Proto/SignalingRateResponse.php | 13 +- src/Proto/SignalingRinging.php | 13 +- src/Proto/SignalingRingingResponse.php | 13 +- src/Proto/SignalingSessionHold.php | 14 +- src/Proto/SignalingSessionHoldResponse.php | 14 +- src/Proto/Thumbnail.php | 20 +- src/Proto/UserAvatarAdd.php | 14 +- src/Proto/UserAvatarAddResponse.php | 14 +- src/Proto/UserAvatarDelete.php | 14 +- src/Proto/UserAvatarDeleteResponse.php | 14 +- src/Proto/UserAvatarGetList.php | 14 +- src/Proto/UserAvatarGetListResponse.php | 14 +- src/Proto/UserContactsBlock.php | 14 +- src/Proto/UserContactsBlockResponse.php | 14 +- src/Proto/UserContactsDelete.php | 14 +- src/Proto/UserContactsDeleteResponse.php | 14 +- src/Proto/UserContactsEdit.php | 16 +- src/Proto/UserContactsEditResponse.php | 17 +- src/Proto/UserContactsGetBlockedList.php | 13 +- .../UserContactsGetBlockedListResponse.php | 18 +- .../User.php | 88 ++++ ...serContactsGetBlockedListResponse_User.php | 71 +-- src/Proto/UserContactsGetList.php | 13 +- src/Proto/UserContactsGetListResponse.php | 14 +- src/Proto/UserContactsImport.php | 19 +- src/Proto/UserContactsImport/Contact.php | 142 ++++++ src/Proto/UserContactsImportResponse.php | 18 +- .../UserContactsImportResponse/Contact.php | 88 ++++ .../UserContactsImportResponse_Contact.php | 71 +-- src/Proto/UserContactsImport_Contact.php | 123 +---- src/Proto/UserContactsUnblock.php | 14 +- src/Proto/UserContactsUnblockResponse.php | 14 +- src/Proto/UserDelete.php | 15 +- src/Proto/UserDelete/Reason.php | 20 + src/Proto/UserDeleteResponse.php | 13 +- src/Proto/UserDelete_Reason.php | 13 +- src/Proto/UserGetDeleteToken.php | 13 +- src/Proto/UserGetDeleteTokenResponse.php | 17 +- src/Proto/UserInfo.php | 14 +- src/Proto/UserInfoResponse.php | 14 +- src/Proto/UserLogin.php | 23 +- src/Proto/UserLoginResponse.php | 17 +- src/Proto/UserPrivacyGetRule.php | 14 +- src/Proto/UserPrivacyGetRuleResponse.php | 14 +- src/Proto/UserPrivacySetRule.php | 15 +- src/Proto/UserPrivacySetRuleResponse.php | 15 +- src/Proto/UserProfileCheckUsername.php | 14 +- .../UserProfileCheckUsernameResponse.php | 14 +- .../Status.php | 28 ++ ...serProfileCheckUsernameResponse_Status.php | 21 +- src/Proto/UserProfileGetBio.php | 13 +- src/Proto/UserProfileGetBioResponse.php | 14 +- src/Proto/UserProfileGetEmail.php | 13 +- src/Proto/UserProfileGetEmailResponse.php | 14 +- src/Proto/UserProfileGetGender.php | 13 +- src/Proto/UserProfileGetGenderResponse.php | 14 +- src/Proto/UserProfileGetNickname.php | 13 +- src/Proto/UserProfileGetNicknameResponse.php | 14 +- src/Proto/UserProfileGetSelfRemove.php | 13 +- .../UserProfileGetSelfRemoveResponse.php | 14 +- src/Proto/UserProfileSetBio.php | 14 +- src/Proto/UserProfileSetBioResponse.php | 14 +- src/Proto/UserProfileSetEmail.php | 14 +- src/Proto/UserProfileSetEmailResponse.php | 14 +- src/Proto/UserProfileSetGender.php | 14 +- src/Proto/UserProfileSetGenderResponse.php | 14 +- src/Proto/UserProfileSetNickname.php | 14 +- src/Proto/UserProfileSetNicknameResponse.php | 15 +- src/Proto/UserProfileSetSelfRemove.php | 14 +- .../UserProfileSetSelfRemoveResponse.php | 14 +- src/Proto/UserProfileUpdateUsername.php | 14 +- .../UserProfileUpdateUsernameResponse.php | 14 +- src/Proto/UserRegister.php | 15 +- src/Proto/UserRegisterResponse.php | 21 +- src/Proto/UserRegisterResponse/Method.php | 28 ++ src/Proto/UserRegisterResponse_Method.php | 21 +- src/Proto/UserReport.php | 16 +- src/Proto/UserReport/Reason.php | 32 ++ src/Proto/UserReportResponse.php | 13 +- src/Proto/UserReport_Reason.php | 25 +- src/Proto/UserSessionGetActiveList.php | 13 +- .../UserSessionGetActiveListResponse.php | 18 +- .../Session.php | 439 ++++++++++++++++++ ...erSessionGetActiveListResponse_Session.php | 409 +--------------- src/Proto/UserSessionLogout.php | 13 +- src/Proto/UserSessionLogoutResponse.php | 13 +- src/Proto/UserSessionTerminate.php | 14 +- src/Proto/UserSessionTerminateResponse.php | 13 +- .../UserTwoStepVerificationChangeHint.php | 15 +- ...rTwoStepVerificationChangeHintResponse.php | 13 +- ...TwoStepVerificationChangeRecoveryEmail.php | 15 +- ...erificationChangeRecoveryEmailResponse.php | 14 +- ...StepVerificationChangeRecoveryQuestion.php | 18 +- ...ficationChangeRecoveryQuestionResponse.php | 13 +- .../UserTwoStepVerificationCheckPassword.php | 14 +- ...oStepVerificationCheckPasswordResponse.php | 13 +- ...erTwoStepVerificationGetPasswordDetail.php | 13 +- ...pVerificationGetPasswordDetailResponse.php | 18 +- ...epVerificationRecoverPasswordByAnswers.php | 15 +- ...cationRecoverPasswordByAnswersResponse.php | 14 +- ...StepVerificationRecoverPasswordByToken.php | 14 +- ...ficationRecoverPasswordByTokenResponse.php | 14 +- ...woStepVerificationRequestRecoveryToken.php | 13 +- ...rificationRequestRecoveryTokenResponse.php | 14 +- ...erTwoStepVerificationResendVerifyEmail.php | 13 +- ...pVerificationResendVerifyEmailResponse.php | 14 +- .../UserTwoStepVerificationSetPassword.php | 21 +- ...TwoStepVerificationSetPasswordResponse.php | 14 +- .../UserTwoStepVerificationUnsetPassword.php | 14 +- ...oStepVerificationUnsetPasswordResponse.php | 13 +- .../UserTwoStepVerificationVerifyPassword.php | 14 +- ...StepVerificationVerifyPasswordResponse.php | 14 +- ...TwoStepVerificationVerifyRecoveryEmail.php | 14 +- ...erificationVerifyRecoveryEmailResponse.php | 13 +- src/Proto/UserUpdateStatus.php | 14 +- src/Proto/UserUpdateStatus/Status.php | 24 + src/Proto/UserUpdateStatusResponse.php | 15 +- src/Proto/UserUpdateStatus_Status.php | 17 +- src/Proto/UserUsernameToId.php | 14 +- src/Proto/UserUsernameToIdResponse.php | 14 +- src/Proto/UserVerify.php | 15 +- src/Proto/UserVerifyNewDevice.php | 14 +- src/Proto/UserVerifyNewDeviceResponse.php | 22 +- src/Proto/UserVerifyResponse.php | 15 +- src/Proto/Wallpaper.php | 16 +- 548 files changed, 9546 insertions(+), 4108 deletions(-) rename src/GPBMetadata/{Global.php => PBGlobal.php} (99%) create mode 100644 src/Proto/ChannelAddMember/Member.php create mode 100644 src/Proto/ChannelCheckUsernameResponse/Status.php create mode 100644 src/Proto/ChannelGetMemberList/FilterRole.php create mode 100644 src/Proto/ChannelGetMemberListResponse/Member.php create mode 100644 src/Proto/ChannelGetMessagesStatsResponse/Stats.php create mode 100644 src/Proto/ChannelRoom/PrivateExtra.php create mode 100644 src/Proto/ChannelRoom/PublicExtra.php create mode 100644 src/Proto/ChannelRoom/Role.php create mode 100644 src/Proto/ChannelRoom/Type.php create mode 100644 src/Proto/ClientCondition/Room.php create mode 100644 src/Proto/ClientCondition/Room/OfflineDeleted.php create mode 100644 src/Proto/ClientCondition/Room/OfflineEdited.php create mode 100644 src/Proto/ClientCondition/Room/OfflineMute.php create mode 100644 src/Proto/ClientGetRoomHistory/Direction.php create mode 100644 src/Proto/ClientResolveUsernameResponse/Type.php create mode 100644 src/Proto/ClientRoomReport/Reason.php create mode 100644 src/Proto/ClientSearchRoomHistory/Filter.php create mode 100644 src/Proto/ClientSearchUsernameResponse/Result.php create mode 100644 src/Proto/ClientSearchUsernameResponse/Result/Type.php create mode 100644 src/Proto/ConnectionSymmetricKeyResponse/Status.php create mode 100644 src/Proto/FileDownload/Selector.php create mode 100644 src/Proto/FileUploadStatusResponse/Status.php create mode 100644 src/Proto/GeoGetConfigurationResponse/TileServer.php create mode 100644 src/Proto/GeoGetNearbyCoordinateResponse/Result.php create mode 100644 src/Proto/GeoGetNearbyDistanceResponse/Result.php create mode 100644 src/Proto/GroupAddMember/Member.php create mode 100644 src/Proto/GroupCheckUsernameResponse/Status.php create mode 100644 src/Proto/GroupGetMemberList/FilterRole.php create mode 100644 src/Proto/GroupGetMemberListResponse/Member.php create mode 100644 src/Proto/GroupRoom/PrivateExtra.php create mode 100644 src/Proto/GroupRoom/PublicExtra.php create mode 100644 src/Proto/GroupRoom/Role.php create mode 100644 src/Proto/GroupRoom/Type.php create mode 100644 src/Proto/InfoWallpaper/Fit.php create mode 100644 src/Proto/RegisteredUser/Status.php create mode 100644 src/Proto/Room/Type.php create mode 100644 src/Proto/RoomMessage/Author.php create mode 100644 src/Proto/RoomMessage/Author/Room.php create mode 100644 src/Proto/RoomMessage/Author/User.php create mode 100644 src/Proto/RoomMessage/ChannelExtra.php create mode 100644 src/Proto/RoomMessage/ExtraType.php create mode 100644 src/Proto/RoomMessageLog/ExtraType.php create mode 100644 src/Proto/RoomMessageLog/TargetUser.php create mode 100644 src/Proto/RoomMessageLog/Type.php create mode 100644 src/Proto/SignalingGetConfigurationResponse/IceServer.php create mode 100644 src/Proto/SignalingGetLogResponse/SignalingLog.php create mode 100644 src/Proto/SignalingGetLogResponse/SignalingLog/Status.php create mode 100644 src/Proto/SignalingLeaveResponse/Type.php create mode 100644 src/Proto/SignalingOffer/Type.php create mode 100644 src/Proto/UserContactsGetBlockedListResponse/User.php create mode 100644 src/Proto/UserContactsImport/Contact.php create mode 100644 src/Proto/UserContactsImportResponse/Contact.php create mode 100644 src/Proto/UserDelete/Reason.php create mode 100644 src/Proto/UserProfileCheckUsernameResponse/Status.php create mode 100644 src/Proto/UserRegisterResponse/Method.php create mode 100644 src/Proto/UserReport/Reason.php create mode 100644 src/Proto/UserSessionGetActiveListResponse/Session.php create mode 100644 src/Proto/UserUpdateStatus/Status.php diff --git a/src/GPBMetadata/ChannelAddMember.php b/src/GPBMetadata/ChannelAddMember.php index 82b962e..f6aa967 100644 --- a/src/GPBMetadata/ChannelAddMember.php +++ b/src/GPBMetadata/ChannelAddMember.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a89030a164368616e6e656c4164644d656d6265722e70726f746f120570" . "726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70" . diff --git a/src/GPBMetadata/ChannelAddMessageReaction.php b/src/GPBMetadata/ChannelAddMessageReaction.php index 6d79c47..cfcbbd2 100644 --- a/src/GPBMetadata/ChannelAddMessageReaction.php +++ b/src/GPBMetadata/ChannelAddMessageReaction.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0afa020a1f4368616e6e656c4164644d6573736167655265616374696f6e" . "2e70726f746f120570726f746f1a0e526573706f6e73652e70726f746f1a" . diff --git a/src/GPBMetadata/ChannelAvatarAdd.php b/src/GPBMetadata/ChannelAvatarAdd.php index a166b4f..457da4e 100644 --- a/src/GPBMetadata/ChannelAvatarAdd.php +++ b/src/GPBMetadata/ChannelAvatarAdd.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ab7020a164368616e6e656c4176617461724164642e70726f746f120570" . "726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70" . diff --git a/src/GPBMetadata/ChannelAvatarGetList.php b/src/GPBMetadata/ChannelAvatarGetList.php index a2feb89..3f98fed 100644 --- a/src/GPBMetadata/ChannelAvatarGetList.php +++ b/src/GPBMetadata/ChannelAvatarGetList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aa2020a1a4368616e6e656c4176617461724765744c6973742e70726f74" . "6f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62" . diff --git a/src/GPBMetadata/ChannelEditMessage.php b/src/GPBMetadata/ChannelEditMessage.php index 4d00f1c..853de16 100644 --- a/src/GPBMetadata/ChannelEditMessage.php +++ b/src/GPBMetadata/ChannelEditMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a9e030a184368616e6e656c456469744d6573736167652e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/ChannelGetDraft.php b/src/GPBMetadata/ChannelGetDraft.php index 42b38dc..f6584c6 100644 --- a/src/GPBMetadata/ChannelGetDraft.php +++ b/src/GPBMetadata/ChannelGetDraft.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a90020a154368616e6e656c47657444726166742e70726f746f12057072" . "6f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e7072" . diff --git a/src/GPBMetadata/ChannelGetMemberList.php b/src/GPBMetadata/ChannelGetMemberList.php index e195b78..b3b3f60 100644 --- a/src/GPBMetadata/ChannelGetMemberList.php +++ b/src/GPBMetadata/ChannelGetMemberList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aa3040a1a4368616e6e656c4765744d656d6265724c6973742e70726f74" . "6f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62" . diff --git a/src/GPBMetadata/ChannelPinMessage.php b/src/GPBMetadata/ChannelPinMessage.php index 5a30edb..7707013 100644 --- a/src/GPBMetadata/ChannelPinMessage.php +++ b/src/GPBMetadata/ChannelPinMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ac8020a174368616e6e656c50696e4d6573736167652e70726f746f1205" . "70726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e" . diff --git a/src/GPBMetadata/ChannelSendMessage.php b/src/GPBMetadata/ChannelSendMessage.php index 4bb633c..1cabd19 100644 --- a/src/GPBMetadata/ChannelSendMessage.php +++ b/src/GPBMetadata/ChannelSendMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0abe040a184368616e6e656c53656e644d6573736167652e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/ChannelSetAction.php b/src/GPBMetadata/ChannelSetAction.php index 03b9bd8..5a8aa22 100644 --- a/src/GPBMetadata/ChannelSetAction.php +++ b/src/GPBMetadata/ChannelSetAction.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0af3020a164368616e6e656c536574416374696f6e2e70726f746f120570" . "726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70" . diff --git a/src/GPBMetadata/ChannelUpdateDraft.php b/src/GPBMetadata/ChannelUpdateDraft.php index a4c8a61..4a06f14 100644 --- a/src/GPBMetadata/ChannelUpdateDraft.php +++ b/src/GPBMetadata/ChannelUpdateDraft.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ace020a184368616e6e656c55706461746544726166742e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/ChatConvertToGroup.php b/src/GPBMetadata/ChatConvertToGroup.php index b220df8..1970921 100644 --- a/src/GPBMetadata/ChatConvertToGroup.php +++ b/src/GPBMetadata/ChatConvertToGroup.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0af8020a1843686174436f6e76657274546f47726f75702e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/ChatEditMessage.php b/src/GPBMetadata/ChatEditMessage.php index 48e9aea..f303eeb 100644 --- a/src/GPBMetadata/ChatEditMessage.php +++ b/src/GPBMetadata/ChatEditMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a92030a1543686174456469744d6573736167652e70726f746f12057072" . "6f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e7072" . diff --git a/src/GPBMetadata/ChatGetDraft.php b/src/GPBMetadata/ChatGetDraft.php index ec0e403..c56d17a 100644 --- a/src/GPBMetadata/ChatGetDraft.php +++ b/src/GPBMetadata/ChatGetDraft.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a84020a124368617447657444726166742e70726f746f120570726f746f" . "1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f746f" . diff --git a/src/GPBMetadata/ChatGetRoom.php b/src/GPBMetadata/ChatGetRoom.php index 21b58c0..dd8cd03 100644 --- a/src/GPBMetadata/ChatGetRoom.php +++ b/src/GPBMetadata/ChatGetRoom.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0afa010a1143686174476574526f6f6d2e70726f746f120570726f746f1a" . "0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f746f22" . diff --git a/src/GPBMetadata/ChatSendMessage.php b/src/GPBMetadata/ChatSendMessage.php index 5b01fca..de21ccf 100644 --- a/src/GPBMetadata/ChatSendMessage.php +++ b/src/GPBMetadata/ChatSendMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ab2040a154368617453656e644d6573736167652e70726f746f12057072" . "6f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e7072" . diff --git a/src/GPBMetadata/ChatSetAction.php b/src/GPBMetadata/ChatSetAction.php index 99629de..da7bfc8 100644 --- a/src/GPBMetadata/ChatSetAction.php +++ b/src/GPBMetadata/ChatSetAction.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ae7020a1343686174536574416374696f6e2e70726f746f120570726f74" . "6f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f74" . diff --git a/src/GPBMetadata/ChatUpdateDraft.php b/src/GPBMetadata/ChatUpdateDraft.php index b7f3626..5191bc5 100644 --- a/src/GPBMetadata/ChatUpdateDraft.php +++ b/src/GPBMetadata/ChatUpdateDraft.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ac2020a154368617455706461746544726166742e70726f746f12057072" . "6f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e7072" . diff --git a/src/GPBMetadata/ChatUpdateStatus.php b/src/GPBMetadata/ChatUpdateStatus.php index 7f2a3a6..73ae2d6 100644 --- a/src/GPBMetadata/ChatUpdateStatus.php +++ b/src/GPBMetadata/ChatUpdateStatus.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ab7030a16436861745570646174655374617475732e70726f746f120570" . "726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70" . diff --git a/src/GPBMetadata/ClientCheckInviteLink.php b/src/GPBMetadata/ClientCheckInviteLink.php index a6cceb4..71af8ea 100644 --- a/src/GPBMetadata/ClientCheckInviteLink.php +++ b/src/GPBMetadata/ClientCheckInviteLink.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aa7020a1b436c69656e74436865636b496e766974654c696e6b2e70726f" . "746f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f" . diff --git a/src/GPBMetadata/ClientGetRoom.php b/src/GPBMetadata/ClientGetRoom.php index a667eb1..3bcde5a 100644 --- a/src/GPBMetadata/ClientGetRoom.php +++ b/src/GPBMetadata/ClientGetRoom.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a82020a13436c69656e74476574526f6f6d2e70726f746f120570726f74" . "6f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f74" . diff --git a/src/GPBMetadata/ClientGetRoomHistory.php b/src/GPBMetadata/ClientGetRoomHistory.php index 23f47e0..dd7583e 100644 --- a/src/GPBMetadata/ClientGetRoomHistory.php +++ b/src/GPBMetadata/ClientGetRoomHistory.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aab030a1a436c69656e74476574526f6f6d486973746f72792e70726f74" . "6f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62" . diff --git a/src/GPBMetadata/ClientGetRoomList.php b/src/GPBMetadata/ClientGetRoomList.php index 3befe9b..54e8bf8 100644 --- a/src/GPBMetadata/ClientGetRoomList.php +++ b/src/GPBMetadata/ClientGetRoomList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aa9020a17436c69656e74476574526f6f6d4c6973742e70726f746f1205" . "70726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e" . diff --git a/src/GPBMetadata/ClientGetRoomMessage.php b/src/GPBMetadata/ClientGetRoomMessage.php index 46e93ac..821b6b9 100644 --- a/src/GPBMetadata/ClientGetRoomMessage.php +++ b/src/GPBMetadata/ClientGetRoomMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0abc020a1a436c69656e74476574526f6f6d4d6573736167652e70726f74" . "6f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62" . diff --git a/src/GPBMetadata/ClientMuteRoom.php b/src/GPBMetadata/ClientMuteRoom.php index f22eaa0..563ba52 100644 --- a/src/GPBMetadata/ClientMuteRoom.php +++ b/src/GPBMetadata/ClientMuteRoom.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ac4020a14436c69656e744d757465526f6f6d2e70726f746f120570726f" . "746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f" . diff --git a/src/GPBMetadata/ClientResolveUsername.php b/src/GPBMetadata/ClientResolveUsername.php index 294acc5..58bafb6 100644 --- a/src/GPBMetadata/ClientResolveUsername.php +++ b/src/GPBMetadata/ClientResolveUsername.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a9e030a1b436c69656e745265736f6c7665557365726e616d652e70726f" . "746f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f" . diff --git a/src/GPBMetadata/ClientSearchRoomHistory.php b/src/GPBMetadata/ClientSearchRoomHistory.php index 029d815..316a2c8 100644 --- a/src/GPBMetadata/ClientSearchRoomHistory.php +++ b/src/GPBMetadata/ClientSearchRoomHistory.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a96040a1d436c69656e74536561726368526f6f6d486973746f72792e70" . "726f746f120570726f746f1a0e526573706f6e73652e70726f746f1a0c47" . diff --git a/src/GPBMetadata/ClientSearchUsername.php b/src/GPBMetadata/ClientSearchUsername.php index 2a1ea63..019b570 100644 --- a/src/GPBMetadata/ClientSearchUsername.php +++ b/src/GPBMetadata/ClientSearchUsername.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0af9030a1a436c69656e74536561726368557365726e616d652e70726f74" . "6f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62" . diff --git a/src/GPBMetadata/FileInfo.php b/src/GPBMetadata/FileInfo.php index c554e78..e7af641 100644 --- a/src/GPBMetadata/FileInfo.php +++ b/src/GPBMetadata/FileInfo.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aec010a0e46696c65496e666f2e70726f746f120570726f746f1a0e5265" . "73706f6e73652e70726f746f1a0c476c6f62616c2e70726f746f223a0a08" . diff --git a/src/GPBMetadata/GroupAddMember.php b/src/GPBMetadata/GroupAddMember.php index 7af7c7a..e39b458 100644 --- a/src/GPBMetadata/GroupAddMember.php +++ b/src/GPBMetadata/GroupAddMember.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a97030a1447726f75704164644d656d6265722e70726f746f120570726f" . "746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f" . diff --git a/src/GPBMetadata/GroupAvatarAdd.php b/src/GPBMetadata/GroupAvatarAdd.php index c72fe6f..78d8e4f 100644 --- a/src/GPBMetadata/GroupAvatarAdd.php +++ b/src/GPBMetadata/GroupAvatarAdd.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aaf020a1447726f75704176617461724164642e70726f746f120570726f" . "746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f" . diff --git a/src/GPBMetadata/GroupAvatarGetList.php b/src/GPBMetadata/GroupAvatarGetList.php index 92691e7..52a8603 100644 --- a/src/GPBMetadata/GroupAvatarGetList.php +++ b/src/GPBMetadata/GroupAvatarGetList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a9a020a1847726f75704176617461724765744c6973742e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/GroupEditMessage.php b/src/GPBMetadata/GroupEditMessage.php index 4c281cc..abf0ee3 100644 --- a/src/GPBMetadata/GroupEditMessage.php +++ b/src/GPBMetadata/GroupEditMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a96030a1647726f7570456469744d6573736167652e70726f746f120570" . "726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70" . diff --git a/src/GPBMetadata/GroupGetDraft.php b/src/GPBMetadata/GroupGetDraft.php index 17479d4..6fa18db 100644 --- a/src/GPBMetadata/GroupGetDraft.php +++ b/src/GPBMetadata/GroupGetDraft.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a88020a1347726f757047657444726166742e70726f746f120570726f74" . "6f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f74" . diff --git a/src/GPBMetadata/GroupGetMemberList.php b/src/GPBMetadata/GroupGetMemberList.php index 2399935..59ad712 100644 --- a/src/GPBMetadata/GroupGetMemberList.php +++ b/src/GPBMetadata/GroupGetMemberList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a95040a1847726f75704765744d656d6265724c6973742e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/GroupPinMessage.php b/src/GPBMetadata/GroupPinMessage.php index c3aab36..54c34af 100644 --- a/src/GPBMetadata/GroupPinMessage.php +++ b/src/GPBMetadata/GroupPinMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ac0020a1547726f757050696e4d6573736167652e70726f746f12057072" . "6f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e7072" . diff --git a/src/GPBMetadata/GroupSendMessage.php b/src/GPBMetadata/GroupSendMessage.php index 0af6b4d..a4f2e47 100644 --- a/src/GPBMetadata/GroupSendMessage.php +++ b/src/GPBMetadata/GroupSendMessage.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ab6040a1647726f757053656e644d6573736167652e70726f746f120570" . "726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70" . diff --git a/src/GPBMetadata/GroupSetAction.php b/src/GPBMetadata/GroupSetAction.php index fa1bfca..e1120d9 100644 --- a/src/GPBMetadata/GroupSetAction.php +++ b/src/GPBMetadata/GroupSetAction.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aeb020a1447726f7570536574416374696f6e2e70726f746f120570726f" . "746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f" . diff --git a/src/GPBMetadata/GroupUpdateDraft.php b/src/GPBMetadata/GroupUpdateDraft.php index eb12ebd..42a9f3c 100644 --- a/src/GPBMetadata/GroupUpdateDraft.php +++ b/src/GPBMetadata/GroupUpdateDraft.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ac6020a1647726f757055706461746544726166742e70726f746f120570" . "726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70" . diff --git a/src/GPBMetadata/GroupUpdateStatus.php b/src/GPBMetadata/GroupUpdateStatus.php index 72f7b9c..2376bf6 100644 --- a/src/GPBMetadata/GroupUpdateStatus.php +++ b/src/GPBMetadata/GroupUpdateStatus.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0abb030a1747726f75705570646174655374617475732e70726f746f1205" . "70726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e" . diff --git a/src/GPBMetadata/InfoWallpaper.php b/src/GPBMetadata/InfoWallpaper.php index c6aff00..f0e021b 100644 --- a/src/GPBMetadata/InfoWallpaper.php +++ b/src/GPBMetadata/InfoWallpaper.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ace020a13496e666f57616c6c70617065722e70726f746f120570726f74" . "6f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f74" . diff --git a/src/GPBMetadata/Global.php b/src/GPBMetadata/PBGlobal.php similarity index 99% rename from src/GPBMetadata/Global.php rename to src/GPBMetadata/PBGlobal.php index 0f5a484..afebfed 100644 --- a/src/GPBMetadata/Global.php +++ b/src/GPBMetadata/PBGlobal.php @@ -4,7 +4,7 @@ namespace GPBMetadata; -class Global +class PBGlobal { public static $is_initialized = false; diff --git a/src/GPBMetadata/QrCodeNewDevice.php b/src/GPBMetadata/QrCodeNewDevice.php index e69f65c..8f95e00 100644 --- a/src/GPBMetadata/QrCodeNewDevice.php +++ b/src/GPBMetadata/QrCodeNewDevice.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ace030a155172436f64654e65774465766963652e70726f746f12057072" . "6f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e7072" . diff --git a/src/GPBMetadata/SignalingGetLog.php b/src/GPBMetadata/SignalingGetLog.php index 3518b50..6c8fcc0 100644 --- a/src/GPBMetadata/SignalingGetLog.php +++ b/src/GPBMetadata/SignalingGetLog.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); \GPBMetadata\SignalingOffer::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0af6040a155369676e616c696e674765744c6f672e70726f746f12057072" . diff --git a/src/GPBMetadata/UserAvatarAdd.php b/src/GPBMetadata/UserAvatarAdd.php index b246003..9686739 100644 --- a/src/GPBMetadata/UserAvatarAdd.php +++ b/src/GPBMetadata/UserAvatarAdd.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a89020a13557365724176617461724164642e70726f746f120570726f74" . "6f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e70726f74" . diff --git a/src/GPBMetadata/UserAvatarGetList.php b/src/GPBMetadata/UserAvatarGetList.php index b3b56bd..b9cb3d3 100644 --- a/src/GPBMetadata/UserAvatarGetList.php +++ b/src/GPBMetadata/UserAvatarGetList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a96020a17557365724176617461724765744c6973742e70726f746f1205" . "70726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c2e" . diff --git a/src/GPBMetadata/UserContactsGetList.php b/src/GPBMetadata/UserContactsGetList.php index 282ad29..40a8f48 100644 --- a/src/GPBMetadata/UserContactsGetList.php +++ b/src/GPBMetadata/UserContactsGetList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a9e020a1955736572436f6e74616374734765744c6973742e70726f746f" . "120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f6261" . diff --git a/src/GPBMetadata/UserInfo.php b/src/GPBMetadata/UserInfo.php index 61bf598..910e51e 100644 --- a/src/GPBMetadata/UserInfo.php +++ b/src/GPBMetadata/UserInfo.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0af8010a0e55736572496e666f2e70726f746f120570726f746f1a0e5265" . "73706f6e73652e70726f746f1a0c476c6f62616c2e70726f746f223c0a08" . diff --git a/src/GPBMetadata/UserLogin.php b/src/GPBMetadata/UserLogin.php index b42a9ea..37e0ff4 100644 --- a/src/GPBMetadata/UserLogin.php +++ b/src/GPBMetadata/UserLogin.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0abc040a0f557365724c6f67696e2e70726f746f120570726f746f1a0e52" . "6573706f6e73652e70726f746f1a0c476c6f62616c2e70726f746f22a102" . diff --git a/src/GPBMetadata/UserPrivacyGetRule.php b/src/GPBMetadata/UserPrivacyGetRule.php index 2277b81..6aab66d 100644 --- a/src/GPBMetadata/UserPrivacyGetRule.php +++ b/src/GPBMetadata/UserPrivacyGetRule.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ab0020a18557365725072697661637947657452756c652e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/UserPrivacySetRule.php b/src/GPBMetadata/UserPrivacySetRule.php index 7fbde6c..dfa5e85 100644 --- a/src/GPBMetadata/UserPrivacySetRule.php +++ b/src/GPBMetadata/UserPrivacySetRule.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0af7020a18557365725072697661637953657452756c652e70726f746f12" . "0570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62616c" . diff --git a/src/GPBMetadata/UserProfileGetGender.php b/src/GPBMetadata/UserProfileGetGender.php index 78b0216..b6be2bf 100644 --- a/src/GPBMetadata/UserProfileGetGender.php +++ b/src/GPBMetadata/UserProfileGetGender.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0a91020a1a5573657250726f66696c6547657447656e6465722e70726f74" . "6f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62" . diff --git a/src/GPBMetadata/UserProfileSetGender.php b/src/GPBMetadata/UserProfileSetGender.php index 030a8ce..21ba832 100644 --- a/src/GPBMetadata/UserProfileSetGender.php +++ b/src/GPBMetadata/UserProfileSetGender.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aad020a1a5573657250726f66696c6553657447656e6465722e70726f74" . "6f120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f62" . diff --git a/src/GPBMetadata/UserSessionGetActiveList.php b/src/GPBMetadata/UserSessionGetActiveList.php index 4a9dcff..305b2b5 100644 --- a/src/GPBMetadata/UserSessionGetActiveList.php +++ b/src/GPBMetadata/UserSessionGetActiveList.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0aa3050a1e5573657253657373696f6e4765744163746976654c6973742e" . "70726f746f120570726f746f1a0e526573706f6e73652e70726f746f1a0c" . diff --git a/src/GPBMetadata/UserVerifyNewDevice.php b/src/GPBMetadata/UserVerifyNewDevice.php index 15a597e..cf3bea5 100644 --- a/src/GPBMetadata/UserVerifyNewDevice.php +++ b/src/GPBMetadata/UserVerifyNewDevice.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Request::initOnce(); \GPBMetadata\Response::initOnce(); - \GPBMetadata\Global::initOnce(); + \GPBMetadata\PBGlobal::initOnce(); $pool->internalAddGeneratedFile(hex2bin( "0ae0030a19557365725665726966794e65774465766963652e70726f746f" . "120570726f746f1a0e526573706f6e73652e70726f746f1a0c476c6f6261" . diff --git a/src/Proto/Avatar.php b/src/Proto/Avatar.php index bd88620..3ef4185 100644 --- a/src/Proto/Avatar.php +++ b/src/Proto/Avatar.php @@ -22,9 +22,19 @@ class Avatar extends \Google\Protobuf\Internal\Message */ private $file = null; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $id + * @type \Proto\File $file + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAddAdmin.php b/src/Proto/ChannelAddAdmin.php index 74db1e6..38eadb5 100644 --- a/src/Proto/ChannelAddAdmin.php +++ b/src/Proto/ChannelAddAdmin.php @@ -26,9 +26,20 @@ class ChannelAddAdmin extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAddAdminResponse.php b/src/Proto/ChannelAddAdminResponse.php index 4102e14..7825e1f 100644 --- a/src/Proto/ChannelAddAdminResponse.php +++ b/src/Proto/ChannelAddAdminResponse.php @@ -26,9 +26,20 @@ class ChannelAddAdminResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAddMember.php b/src/Proto/ChannelAddMember.php index 449a905..d8e2bad 100644 --- a/src/Proto/ChannelAddMember.php +++ b/src/Proto/ChannelAddMember.php @@ -26,9 +26,20 @@ class ChannelAddMember extends \Google\Protobuf\Internal\Message */ private $member = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type \Proto\ChannelAddMember\Member $member + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -77,7 +88,7 @@ public function setRoomId($var) /** * Generated from protobuf field .proto.ChannelAddMember.Member member = 3; - * @return \Proto\ChannelAddMember_Member + * @return \Proto\ChannelAddMember\Member */ public function getMember() { @@ -86,7 +97,7 @@ public function getMember() /** * Generated from protobuf field .proto.ChannelAddMember.Member member = 3; - * @param \Proto\ChannelAddMember_Member $var + * @param \Proto\ChannelAddMember\Member $var * @return $this */ public function setMember($var) diff --git a/src/Proto/ChannelAddMember/Member.php b/src/Proto/ChannelAddMember/Member.php new file mode 100644 index 0000000..a3af57e --- /dev/null +++ b/src/Proto/ChannelAddMember/Member.php @@ -0,0 +1,61 @@ +proto.ChannelAddMember.Member + */ +class Member extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 user_id = 1; + */ + private $user_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\ChannelAddMember::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @return int|string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->user_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Member::class, \Proto\ChannelAddMember_Member::class); + diff --git a/src/Proto/ChannelAddMemberResponse.php b/src/Proto/ChannelAddMemberResponse.php index a5e0753..c850021 100644 --- a/src/Proto/ChannelAddMemberResponse.php +++ b/src/Proto/ChannelAddMemberResponse.php @@ -30,9 +30,21 @@ class ChannelAddMemberResponse extends \Google\Protobuf\Internal\Message */ private $role = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $user_id + * @type int $role + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAddMember_Member.php b/src/Proto/ChannelAddMember_Member.php index bcd9ceb..20d5506 100644 --- a/src/Proto/ChannelAddMember_Member.php +++ b/src/Proto/ChannelAddMember_Member.php @@ -4,46 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ChannelAddMember.Member - */ -class ChannelAddMember_Member extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 user_id = 1; - */ - private $user_id = 0; - - public function __construct() { - \GPBMetadata\ChannelAddMember::initOnce(); - parent::__construct(); - } - +if (false) { /** - * Generated from protobuf field uint64 user_id = 1; - * @return int|string + * This class is deprecated. Use Proto\ChannelAddMember\Member instead. + * @deprecated */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @param int|string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->user_id = $var; - - return $this; - } - + class ChannelAddMember_Member {} } +class_exists(ChannelAddMember\Member::class); +@trigger_error('Proto\ChannelAddMember_Member is deprecated and will be removed in the next major release. Use Proto\ChannelAddMember\Member instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelAddMessageReaction.php b/src/Proto/ChannelAddMessageReaction.php index d10fc34..f9d06cd 100644 --- a/src/Proto/ChannelAddMessageReaction.php +++ b/src/Proto/ChannelAddMessageReaction.php @@ -30,9 +30,21 @@ class ChannelAddMessageReaction extends \Google\Protobuf\Internal\Message */ private $reaction = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type int $reaction + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddMessageReaction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAddMessageReactionResponse.php b/src/Proto/ChannelAddMessageReactionResponse.php index 5dc8141..dac85d5 100644 --- a/src/Proto/ChannelAddMessageReactionResponse.php +++ b/src/Proto/ChannelAddMessageReactionResponse.php @@ -22,9 +22,19 @@ class ChannelAddMessageReactionResponse extends \Google\Protobuf\Internal\Messag */ private $reaction_counter_label = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $reaction_counter_label + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddMessageReaction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAddModerator.php b/src/Proto/ChannelAddModerator.php index 80d605b..39dbb29 100644 --- a/src/Proto/ChannelAddModerator.php +++ b/src/Proto/ChannelAddModerator.php @@ -26,9 +26,20 @@ class ChannelAddModerator extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAddModeratorResponse.php b/src/Proto/ChannelAddModeratorResponse.php index 3ad730d..a5afb5f 100644 --- a/src/Proto/ChannelAddModeratorResponse.php +++ b/src/Proto/ChannelAddModeratorResponse.php @@ -26,9 +26,20 @@ class ChannelAddModeratorResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAddModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAvatarAdd.php b/src/Proto/ChannelAvatarAdd.php index c41ff11..22cf0ae 100644 --- a/src/Proto/ChannelAvatarAdd.php +++ b/src/Proto/ChannelAvatarAdd.php @@ -26,9 +26,20 @@ class ChannelAvatarAdd extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $attachment + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAvatarAdd::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAvatarAddResponse.php b/src/Proto/ChannelAvatarAddResponse.php index d34bb5f..02fc25e 100644 --- a/src/Proto/ChannelAvatarAddResponse.php +++ b/src/Proto/ChannelAvatarAddResponse.php @@ -26,9 +26,20 @@ class ChannelAvatarAddResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Avatar $avatar + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAvatarAdd::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAvatarDelete.php b/src/Proto/ChannelAvatarDelete.php index 0fbd27f..925b0f4 100644 --- a/src/Proto/ChannelAvatarDelete.php +++ b/src/Proto/ChannelAvatarDelete.php @@ -26,9 +26,20 @@ class ChannelAvatarDelete extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $id + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAvatarDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAvatarDeleteResponse.php b/src/Proto/ChannelAvatarDeleteResponse.php index c118c65..8a404ca 100644 --- a/src/Proto/ChannelAvatarDeleteResponse.php +++ b/src/Proto/ChannelAvatarDeleteResponse.php @@ -26,9 +26,20 @@ class ChannelAvatarDeleteResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $id + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAvatarDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAvatarGetList.php b/src/Proto/ChannelAvatarGetList.php index 42c8f46..cd5a0a4 100644 --- a/src/Proto/ChannelAvatarGetList.php +++ b/src/Proto/ChannelAvatarGetList.php @@ -22,9 +22,19 @@ class ChannelAvatarGetList extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAvatarGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelAvatarGetListResponse.php b/src/Proto/ChannelAvatarGetListResponse.php index 6d27381..5fe3601 100644 --- a/src/Proto/ChannelAvatarGetListResponse.php +++ b/src/Proto/ChannelAvatarGetListResponse.php @@ -22,9 +22,19 @@ class ChannelAvatarGetListResponse extends \Google\Protobuf\Internal\Message */ private $avatar; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Avatar[]|\Google\Protobuf\Internal\RepeatedField $avatar + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelAvatarGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelCheckUsername.php b/src/Proto/ChannelCheckUsername.php index 4fe7563..85dec6d 100644 --- a/src/Proto/ChannelCheckUsername.php +++ b/src/Proto/ChannelCheckUsername.php @@ -26,9 +26,20 @@ class ChannelCheckUsername extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelCheckUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelCheckUsernameResponse.php b/src/Proto/ChannelCheckUsernameResponse.php index 83e6b76..13823c0 100644 --- a/src/Proto/ChannelCheckUsernameResponse.php +++ b/src/Proto/ChannelCheckUsernameResponse.php @@ -22,9 +22,19 @@ class ChannelCheckUsernameResponse extends \Google\Protobuf\Internal\Message */ private $status = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelCheckUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelCheckUsernameResponse/Status.php b/src/Proto/ChannelCheckUsernameResponse/Status.php new file mode 100644 index 0000000..b5d53ab --- /dev/null +++ b/src/Proto/ChannelCheckUsernameResponse/Status.php @@ -0,0 +1,32 @@ +proto.ChannelCheckUsernameResponse.Status + */ +class Status +{ + /** + * Generated from protobuf enum INVALID = 0; + */ + const INVALID = 0; + /** + * Generated from protobuf enum TAKEN = 1; + */ + const TAKEN = 1; + /** + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * Generated from protobuf enum OCCUPYING_LIMIT_EXCEEDED = 3; + */ + const OCCUPYING_LIMIT_EXCEEDED = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\ChannelCheckUsernameResponse_Status::class); + diff --git a/src/Proto/ChannelCheckUsernameResponse_Status.php b/src/Proto/ChannelCheckUsernameResponse_Status.php index 2f5d74f..92d2fd1 100644 --- a/src/Proto/ChannelCheckUsernameResponse_Status.php +++ b/src/Proto/ChannelCheckUsernameResponse_Status.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ChannelCheckUsernameResponse\Status - */ -class ChannelCheckUsernameResponse_Status -{ +if (false) { /** - * Generated from protobuf enum INVALID = 0; + * This class is deprecated. Use Proto\ChannelCheckUsernameResponse\Status instead. + * @deprecated */ - const INVALID = 0; - /** - * Generated from protobuf enum TAKEN = 1; - */ - const TAKEN = 1; - /** - * Generated from protobuf enum AVAILABLE = 2; - */ - const AVAILABLE = 2; - /** - * Generated from protobuf enum OCCUPYING_LIMIT_EXCEEDED = 3; - */ - const OCCUPYING_LIMIT_EXCEEDED = 3; + class ChannelCheckUsernameResponse_Status {} } +class_exists(ChannelCheckUsernameResponse\Status::class); +@trigger_error('Proto\ChannelCheckUsernameResponse_Status is deprecated and will be removed in the next major release. Use Proto\ChannelCheckUsernameResponse\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelCreate.php b/src/Proto/ChannelCreate.php index 02831df..a61a426 100644 --- a/src/Proto/ChannelCreate.php +++ b/src/Proto/ChannelCreate.php @@ -26,9 +26,20 @@ class ChannelCreate extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $name + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelCreate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelCreateResponse.php b/src/Proto/ChannelCreateResponse.php index f0f9ab5..2c16ef4 100644 --- a/src/Proto/ChannelCreateResponse.php +++ b/src/Proto/ChannelCreateResponse.php @@ -26,9 +26,20 @@ class ChannelCreateResponse extends \Google\Protobuf\Internal\Message */ private $invite_link = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type string $invite_link + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelCreate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelDelete.php b/src/Proto/ChannelDelete.php index 8b3ff4b..d7e0128 100644 --- a/src/Proto/ChannelDelete.php +++ b/src/Proto/ChannelDelete.php @@ -22,9 +22,19 @@ class ChannelDelete extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelDeleteMessage.php b/src/Proto/ChannelDeleteMessage.php index eadc0b8..ee03c70 100644 --- a/src/Proto/ChannelDeleteMessage.php +++ b/src/Proto/ChannelDeleteMessage.php @@ -26,9 +26,20 @@ class ChannelDeleteMessage extends \Google\Protobuf\Internal\Message */ private $message_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelDeleteMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelDeleteMessageResponse.php b/src/Proto/ChannelDeleteMessageResponse.php index 63b659b..44c847c 100644 --- a/src/Proto/ChannelDeleteMessageResponse.php +++ b/src/Proto/ChannelDeleteMessageResponse.php @@ -30,9 +30,21 @@ class ChannelDeleteMessageResponse extends \Google\Protobuf\Internal\Message */ private $delete_version = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int|string $delete_version + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelDeleteMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelDeleteResponse.php b/src/Proto/ChannelDeleteResponse.php index d5c0be8..2e1122a 100644 --- a/src/Proto/ChannelDeleteResponse.php +++ b/src/Proto/ChannelDeleteResponse.php @@ -22,9 +22,19 @@ class ChannelDeleteResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelEdit.php b/src/Proto/ChannelEdit.php index 2c2435d..a263c8d 100644 --- a/src/Proto/ChannelEdit.php +++ b/src/Proto/ChannelEdit.php @@ -30,9 +30,21 @@ class ChannelEdit extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type string $name + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelEdit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelEditMessage.php b/src/Proto/ChannelEditMessage.php index 3b3da95..295fa92 100644 --- a/src/Proto/ChannelEditMessage.php +++ b/src/Proto/ChannelEditMessage.php @@ -30,9 +30,21 @@ class ChannelEditMessage extends \Google\Protobuf\Internal\Message */ private $message = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type string $message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelEditMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelEditMessageResponse.php b/src/Proto/ChannelEditMessageResponse.php index f29ec97..5fd5ffa 100644 --- a/src/Proto/ChannelEditMessageResponse.php +++ b/src/Proto/ChannelEditMessageResponse.php @@ -38,9 +38,23 @@ class ChannelEditMessageResponse extends \Google\Protobuf\Internal\Message */ private $message_type = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int|string $message_version + * @type string $message + * @type int $message_type + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelEditMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelEditResponse.php b/src/Proto/ChannelEditResponse.php index 1aba801..a8243ee 100644 --- a/src/Proto/ChannelEditResponse.php +++ b/src/Proto/ChannelEditResponse.php @@ -30,9 +30,21 @@ class ChannelEditResponse extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type string $name + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelEdit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelGetDraft.php b/src/Proto/ChannelGetDraft.php index 754a85e..1f0a390 100644 --- a/src/Proto/ChannelGetDraft.php +++ b/src/Proto/ChannelGetDraft.php @@ -22,9 +22,19 @@ class ChannelGetDraft extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelGetDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelGetDraftResponse.php b/src/Proto/ChannelGetDraftResponse.php index 7214616..9ee8a15 100644 --- a/src/Proto/ChannelGetDraftResponse.php +++ b/src/Proto/ChannelGetDraftResponse.php @@ -22,9 +22,19 @@ class ChannelGetDraftResponse extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelGetDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelGetMemberList.php b/src/Proto/ChannelGetMemberList.php index 0d8a9fc..46cbb83 100644 --- a/src/Proto/ChannelGetMemberList.php +++ b/src/Proto/ChannelGetMemberList.php @@ -30,9 +30,21 @@ class ChannelGetMemberList extends \Google\Protobuf\Internal\Message */ private $pagination = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int $filter_role + * @type \Proto\Pagination $pagination + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelGetMemberList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelGetMemberList/FilterRole.php b/src/Proto/ChannelGetMemberList/FilterRole.php new file mode 100644 index 0000000..a4110f0 --- /dev/null +++ b/src/Proto/ChannelGetMemberList/FilterRole.php @@ -0,0 +1,32 @@ +proto.ChannelGetMemberList.FilterRole + */ +class FilterRole +{ + /** + * Generated from protobuf enum ALL = 0; + */ + const ALL = 0; + /** + * Generated from protobuf enum MEMBER = 1; + */ + const MEMBER = 1; + /** + * Generated from protobuf enum MODERATOR = 2; + */ + const MODERATOR = 2; + /** + * Generated from protobuf enum ADMIN = 3; + */ + const ADMIN = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FilterRole::class, \Proto\ChannelGetMemberList_FilterRole::class); + diff --git a/src/Proto/ChannelGetMemberListResponse.php b/src/Proto/ChannelGetMemberListResponse.php index 5d4748b..a7f27d2 100644 --- a/src/Proto/ChannelGetMemberListResponse.php +++ b/src/Proto/ChannelGetMemberListResponse.php @@ -22,9 +22,19 @@ class ChannelGetMemberListResponse extends \Google\Protobuf\Internal\Message */ private $member; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\ChannelGetMemberListResponse\Member[]|\Google\Protobuf\Internal\RepeatedField $member + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelGetMemberList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getMember() /** * Generated from protobuf field repeated .proto.ChannelGetMemberListResponse.Member member = 2; - * @param \Proto\ChannelGetMemberListResponse_Member[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\ChannelGetMemberListResponse\Member[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMember($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ChannelGetMemberListResponse_Member::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ChannelGetMemberListResponse\Member::class); $this->member = $arr; return $this; diff --git a/src/Proto/ChannelGetMemberListResponse/Member.php b/src/Proto/ChannelGetMemberListResponse/Member.php new file mode 100644 index 0000000..06d5af7 --- /dev/null +++ b/src/Proto/ChannelGetMemberListResponse/Member.php @@ -0,0 +1,88 @@ +proto.ChannelGetMemberListResponse.Member + */ +class Member extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 userId = 1; + */ + private $userId = 0; + /** + * Generated from protobuf field .proto.ChannelRoom.Role role = 2; + */ + private $role = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $userId + * @type int $role + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\ChannelGetMemberList::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 userId = 1; + * @return int|string + */ + public function getUserId() + { + return $this->userId; + } + + /** + * Generated from protobuf field uint64 userId = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->userId = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.ChannelRoom.Role role = 2; + * @return int + */ + public function getRole() + { + return $this->role; + } + + /** + * Generated from protobuf field .proto.ChannelRoom.Role role = 2; + * @param int $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkEnum($var, \Proto\ChannelRoom_Role::class); + $this->role = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Member::class, \Proto\ChannelGetMemberListResponse_Member::class); + diff --git a/src/Proto/ChannelGetMemberListResponse_Member.php b/src/Proto/ChannelGetMemberListResponse_Member.php index 7289c73..b704ec8 100644 --- a/src/Proto/ChannelGetMemberListResponse_Member.php +++ b/src/Proto/ChannelGetMemberListResponse_Member.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ChannelGetMemberListResponse.Member - */ -class ChannelGetMemberListResponse_Member extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 userId = 1; - */ - private $userId = 0; - /** - * Generated from protobuf field .proto.ChannelRoom.Role role = 2; - */ - private $role = 0; - - public function __construct() { - \GPBMetadata\ChannelGetMemberList::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 userId = 1; - * @return int|string - */ - public function getUserId() - { - return $this->userId; - } - +if (false) { /** - * Generated from protobuf field uint64 userId = 1; - * @param int|string $var - * @return $this + * This class is deprecated. Use Proto\ChannelGetMemberListResponse\Member instead. + * @deprecated */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->userId = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.ChannelRoom.Role role = 2; - * @return int - */ - public function getRole() - { - return $this->role; - } - - /** - * Generated from protobuf field .proto.ChannelRoom.Role role = 2; - * @param int $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkEnum($var, \Proto\ChannelRoom_Role::class); - $this->role = $var; - - return $this; - } - + class ChannelGetMemberListResponse_Member {} } +class_exists(ChannelGetMemberListResponse\Member::class); +@trigger_error('Proto\ChannelGetMemberListResponse_Member is deprecated and will be removed in the next major release. Use Proto\ChannelGetMemberListResponse\Member instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelGetMemberList_FilterRole.php b/src/Proto/ChannelGetMemberList_FilterRole.php index e181b1e..7afcd05 100644 --- a/src/Proto/ChannelGetMemberList_FilterRole.php +++ b/src/Proto/ChannelGetMemberList_FilterRole.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ChannelGetMemberList\FilterRole - */ -class ChannelGetMemberList_FilterRole -{ +if (false) { /** - * Generated from protobuf enum ALL = 0; + * This class is deprecated. Use Proto\ChannelGetMemberList\FilterRole instead. + * @deprecated */ - const ALL = 0; - /** - * Generated from protobuf enum MEMBER = 1; - */ - const MEMBER = 1; - /** - * Generated from protobuf enum MODERATOR = 2; - */ - const MODERATOR = 2; - /** - * Generated from protobuf enum ADMIN = 3; - */ - const ADMIN = 3; + class ChannelGetMemberList_FilterRole {} } +class_exists(ChannelGetMemberList\FilterRole::class); +@trigger_error('Proto\ChannelGetMemberList_FilterRole is deprecated and will be removed in the next major release. Use Proto\ChannelGetMemberList\FilterRole instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelGetMessagesStats.php b/src/Proto/ChannelGetMessagesStats.php index fcae21e..84b99bd 100644 --- a/src/Proto/ChannelGetMessagesStats.php +++ b/src/Proto/ChannelGetMessagesStats.php @@ -26,9 +26,20 @@ class ChannelGetMessagesStats extends \Google\Protobuf\Internal\Message */ private $message_id; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelGetMessagesStats::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelGetMessagesStatsResponse.php b/src/Proto/ChannelGetMessagesStatsResponse.php index 94f3a65..bed80e8 100644 --- a/src/Proto/ChannelGetMessagesStatsResponse.php +++ b/src/Proto/ChannelGetMessagesStatsResponse.php @@ -22,9 +22,19 @@ class ChannelGetMessagesStatsResponse extends \Google\Protobuf\Internal\Message */ private $stats; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\ChannelGetMessagesStatsResponse\Stats[]|\Google\Protobuf\Internal\RepeatedField $stats + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelGetMessagesStats::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getStats() /** * Generated from protobuf field repeated .proto.ChannelGetMessagesStatsResponse.Stats stats = 2; - * @param \Proto\ChannelGetMessagesStatsResponse_Stats[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\ChannelGetMessagesStatsResponse\Stats[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStats($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ChannelGetMessagesStatsResponse_Stats::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ChannelGetMessagesStatsResponse\Stats::class); $this->stats = $arr; return $this; diff --git a/src/Proto/ChannelGetMessagesStatsResponse/Stats.php b/src/Proto/ChannelGetMessagesStatsResponse/Stats.php new file mode 100644 index 0000000..cfb0630 --- /dev/null +++ b/src/Proto/ChannelGetMessagesStatsResponse/Stats.php @@ -0,0 +1,142 @@ +proto.ChannelGetMessagesStatsResponse.Stats + */ +class Stats extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 message_id = 1; + */ + private $message_id = 0; + /** + * Generated from protobuf field string views_label = 2; + */ + private $views_label = ''; + /** + * Generated from protobuf field string thumbs_up_label = 3; + */ + private $thumbs_up_label = ''; + /** + * Generated from protobuf field string thumbs_down_label = 4; + */ + private $thumbs_down_label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $message_id + * @type string $views_label + * @type string $thumbs_up_label + * @type string $thumbs_down_label + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\ChannelGetMessagesStats::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 message_id = 1; + * @return int|string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * Generated from protobuf field uint64 message_id = 1; + * @param int|string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkUint64($var); + $this->message_id = $var; + + return $this; + } + + /** + * Generated from protobuf field string views_label = 2; + * @return string + */ + public function getViewsLabel() + { + return $this->views_label; + } + + /** + * Generated from protobuf field string views_label = 2; + * @param string $var + * @return $this + */ + public function setViewsLabel($var) + { + GPBUtil::checkString($var, True); + $this->views_label = $var; + + return $this; + } + + /** + * Generated from protobuf field string thumbs_up_label = 3; + * @return string + */ + public function getThumbsUpLabel() + { + return $this->thumbs_up_label; + } + + /** + * Generated from protobuf field string thumbs_up_label = 3; + * @param string $var + * @return $this + */ + public function setThumbsUpLabel($var) + { + GPBUtil::checkString($var, True); + $this->thumbs_up_label = $var; + + return $this; + } + + /** + * Generated from protobuf field string thumbs_down_label = 4; + * @return string + */ + public function getThumbsDownLabel() + { + return $this->thumbs_down_label; + } + + /** + * Generated from protobuf field string thumbs_down_label = 4; + * @param string $var + * @return $this + */ + public function setThumbsDownLabel($var) + { + GPBUtil::checkString($var, True); + $this->thumbs_down_label = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Stats::class, \Proto\ChannelGetMessagesStatsResponse_Stats::class); + diff --git a/src/Proto/ChannelGetMessagesStatsResponse_Stats.php b/src/Proto/ChannelGetMessagesStatsResponse_Stats.php index 9c5363f..ea60fb3 100644 --- a/src/Proto/ChannelGetMessagesStatsResponse_Stats.php +++ b/src/Proto/ChannelGetMessagesStatsResponse_Stats.php @@ -4,124 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ChannelGetMessagesStatsResponse.Stats - */ -class ChannelGetMessagesStatsResponse_Stats extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 message_id = 1; - */ - private $message_id = 0; - /** - * Generated from protobuf field string views_label = 2; - */ - private $views_label = ''; +if (false) { /** - * Generated from protobuf field string thumbs_up_label = 3; + * This class is deprecated. Use Proto\ChannelGetMessagesStatsResponse\Stats instead. + * @deprecated */ - private $thumbs_up_label = ''; - /** - * Generated from protobuf field string thumbs_down_label = 4; - */ - private $thumbs_down_label = ''; - - public function __construct() { - \GPBMetadata\ChannelGetMessagesStats::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 message_id = 1; - * @return int|string - */ - public function getMessageId() - { - return $this->message_id; - } - - /** - * Generated from protobuf field uint64 message_id = 1; - * @param int|string $var - * @return $this - */ - public function setMessageId($var) - { - GPBUtil::checkUint64($var); - $this->message_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string views_label = 2; - * @return string - */ - public function getViewsLabel() - { - return $this->views_label; - } - - /** - * Generated from protobuf field string views_label = 2; - * @param string $var - * @return $this - */ - public function setViewsLabel($var) - { - GPBUtil::checkString($var, True); - $this->views_label = $var; - - return $this; - } - - /** - * Generated from protobuf field string thumbs_up_label = 3; - * @return string - */ - public function getThumbsUpLabel() - { - return $this->thumbs_up_label; - } - - /** - * Generated from protobuf field string thumbs_up_label = 3; - * @param string $var - * @return $this - */ - public function setThumbsUpLabel($var) - { - GPBUtil::checkString($var, True); - $this->thumbs_up_label = $var; - - return $this; - } - - /** - * Generated from protobuf field string thumbs_down_label = 4; - * @return string - */ - public function getThumbsDownLabel() - { - return $this->thumbs_down_label; - } - - /** - * Generated from protobuf field string thumbs_down_label = 4; - * @param string $var - * @return $this - */ - public function setThumbsDownLabel($var) - { - GPBUtil::checkString($var, True); - $this->thumbs_down_label = $var; - - return $this; - } - + class ChannelGetMessagesStatsResponse_Stats {} } +class_exists(ChannelGetMessagesStatsResponse\Stats::class); +@trigger_error('Proto\ChannelGetMessagesStatsResponse_Stats is deprecated and will be removed in the next major release. Use Proto\ChannelGetMessagesStatsResponse\Stats instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelKickAdmin.php b/src/Proto/ChannelKickAdmin.php index 6979f1b..a519a9c 100644 --- a/src/Proto/ChannelKickAdmin.php +++ b/src/Proto/ChannelKickAdmin.php @@ -26,9 +26,20 @@ class ChannelKickAdmin extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelKickAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelKickAdminResponse.php b/src/Proto/ChannelKickAdminResponse.php index e56b443..29673e6 100644 --- a/src/Proto/ChannelKickAdminResponse.php +++ b/src/Proto/ChannelKickAdminResponse.php @@ -26,9 +26,20 @@ class ChannelKickAdminResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelKickAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelKickMember.php b/src/Proto/ChannelKickMember.php index bc171c8..1f96f60 100644 --- a/src/Proto/ChannelKickMember.php +++ b/src/Proto/ChannelKickMember.php @@ -26,9 +26,20 @@ class ChannelKickMember extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelKickMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelKickMemberResponse.php b/src/Proto/ChannelKickMemberResponse.php index 4259dda..2fb69b4 100644 --- a/src/Proto/ChannelKickMemberResponse.php +++ b/src/Proto/ChannelKickMemberResponse.php @@ -26,9 +26,20 @@ class ChannelKickMemberResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelKickMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelKickModerator.php b/src/Proto/ChannelKickModerator.php index 0ebda9c..9299fe5 100644 --- a/src/Proto/ChannelKickModerator.php +++ b/src/Proto/ChannelKickModerator.php @@ -26,9 +26,20 @@ class ChannelKickModerator extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelKickModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelKickModeratorResponse.php b/src/Proto/ChannelKickModeratorResponse.php index 674d00f..e493bb5 100644 --- a/src/Proto/ChannelKickModeratorResponse.php +++ b/src/Proto/ChannelKickModeratorResponse.php @@ -26,9 +26,20 @@ class ChannelKickModeratorResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelKickModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelLeft.php b/src/Proto/ChannelLeft.php index eba681b..b5ac284 100644 --- a/src/Proto/ChannelLeft.php +++ b/src/Proto/ChannelLeft.php @@ -22,9 +22,19 @@ class ChannelLeft extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelLeft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelLeftResponse.php b/src/Proto/ChannelLeftResponse.php index d75b134..c5595f5 100644 --- a/src/Proto/ChannelLeftResponse.php +++ b/src/Proto/ChannelLeftResponse.php @@ -26,9 +26,20 @@ class ChannelLeftResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelLeft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelPinMessage.php b/src/Proto/ChannelPinMessage.php index e0d6a6d..f8f3576 100644 --- a/src/Proto/ChannelPinMessage.php +++ b/src/Proto/ChannelPinMessage.php @@ -26,9 +26,20 @@ class ChannelPinMessage extends \Google\Protobuf\Internal\Message */ private $message_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelPinMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelPinMessageResponse.php b/src/Proto/ChannelPinMessageResponse.php index bcfa82a..15d33d7 100644 --- a/src/Proto/ChannelPinMessageResponse.php +++ b/src/Proto/ChannelPinMessageResponse.php @@ -26,9 +26,20 @@ class ChannelPinMessageResponse extends \Google\Protobuf\Internal\Message */ private $pinned_message = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomMessage $pinned_message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelPinMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelRemoveUsername.php b/src/Proto/ChannelRemoveUsername.php index b18bdb9..a72eda4 100644 --- a/src/Proto/ChannelRemoveUsername.php +++ b/src/Proto/ChannelRemoveUsername.php @@ -22,9 +22,19 @@ class ChannelRemoveUsername extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelRemoveUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelRemoveUsernameResponse.php b/src/Proto/ChannelRemoveUsernameResponse.php index 9d12755..af979fe 100644 --- a/src/Proto/ChannelRemoveUsernameResponse.php +++ b/src/Proto/ChannelRemoveUsernameResponse.php @@ -22,9 +22,19 @@ class ChannelRemoveUsernameResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelRemoveUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelRevokeLink.php b/src/Proto/ChannelRevokeLink.php index b09072f..f9962e4 100644 --- a/src/Proto/ChannelRevokeLink.php +++ b/src/Proto/ChannelRevokeLink.php @@ -22,9 +22,19 @@ class ChannelRevokeLink extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelRevokeLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelRevokeLinkResponse.php b/src/Proto/ChannelRevokeLinkResponse.php index 37fda25..2403c15 100644 --- a/src/Proto/ChannelRevokeLinkResponse.php +++ b/src/Proto/ChannelRevokeLinkResponse.php @@ -30,9 +30,21 @@ class ChannelRevokeLinkResponse extends \Google\Protobuf\Internal\Message */ private $invite_token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type string $invite_link + * @type string $invite_token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelRevokeLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelRoom.php b/src/Proto/ChannelRoom.php index 293c80b..b63526d 100644 --- a/src/Proto/ChannelRoom.php +++ b/src/Proto/ChannelRoom.php @@ -66,9 +66,30 @@ class ChannelRoom extends \Google\Protobuf\Internal\Message */ private $reaction_status = false; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * @type int $role + * @type int $participants_count + * @type string $participants_count_label + * @type string $description + * @type int $avatar_count + * @type \Proto\Avatar $avatar + * @type \Proto\ChannelRoom\PrivateExtra $private_extra + * @type \Proto\ChannelRoom\PublicExtra $public_extra + * @type bool $signature + * @type int|string $seen_id + * @type bool $verified + * @type bool $reaction_status + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** @@ -227,7 +248,7 @@ public function setAvatar($var) /** * Generated from protobuf field .proto.ChannelRoom.PrivateExtra private_extra = 8; - * @return \Proto\ChannelRoom_PrivateExtra + * @return \Proto\ChannelRoom\PrivateExtra */ public function getPrivateExtra() { @@ -236,7 +257,7 @@ public function getPrivateExtra() /** * Generated from protobuf field .proto.ChannelRoom.PrivateExtra private_extra = 8; - * @param \Proto\ChannelRoom_PrivateExtra $var + * @param \Proto\ChannelRoom\PrivateExtra $var * @return $this */ public function setPrivateExtra($var) @@ -249,7 +270,7 @@ public function setPrivateExtra($var) /** * Generated from protobuf field .proto.ChannelRoom.PublicExtra public_extra = 9; - * @return \Proto\ChannelRoom_PublicExtra + * @return \Proto\ChannelRoom\PublicExtra */ public function getPublicExtra() { @@ -258,7 +279,7 @@ public function getPublicExtra() /** * Generated from protobuf field .proto.ChannelRoom.PublicExtra public_extra = 9; - * @param \Proto\ChannelRoom_PublicExtra $var + * @param \Proto\ChannelRoom\PublicExtra $var * @return $this */ public function setPublicExtra($var) diff --git a/src/Proto/ChannelRoom/PrivateExtra.php b/src/Proto/ChannelRoom/PrivateExtra.php new file mode 100644 index 0000000..74627fe --- /dev/null +++ b/src/Proto/ChannelRoom/PrivateExtra.php @@ -0,0 +1,88 @@ +proto.ChannelRoom.PrivateExtra + */ +class PrivateExtra extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string invite_link = 1; + */ + private $invite_link = ''; + /** + * Generated from protobuf field string invite_token = 2; + */ + private $invite_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $invite_link + * @type string $invite_token + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string invite_link = 1; + * @return string + */ + public function getInviteLink() + { + return $this->invite_link; + } + + /** + * Generated from protobuf field string invite_link = 1; + * @param string $var + * @return $this + */ + public function setInviteLink($var) + { + GPBUtil::checkString($var, True); + $this->invite_link = $var; + + return $this; + } + + /** + * Generated from protobuf field string invite_token = 2; + * @return string + */ + public function getInviteToken() + { + return $this->invite_token; + } + + /** + * Generated from protobuf field string invite_token = 2; + * @param string $var + * @return $this + */ + public function setInviteToken($var) + { + GPBUtil::checkString($var, True); + $this->invite_token = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PrivateExtra::class, \Proto\ChannelRoom_PrivateExtra::class); + diff --git a/src/Proto/ChannelRoom/PublicExtra.php b/src/Proto/ChannelRoom/PublicExtra.php new file mode 100644 index 0000000..79213c8 --- /dev/null +++ b/src/Proto/ChannelRoom/PublicExtra.php @@ -0,0 +1,61 @@ +proto.ChannelRoom.PublicExtra + */ +class PublicExtra extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string username = 1; + */ + private $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string username = 1; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Generated from protobuf field string username = 1; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PublicExtra::class, \Proto\ChannelRoom_PublicExtra::class); + diff --git a/src/Proto/ChannelRoom/Role.php b/src/Proto/ChannelRoom/Role.php new file mode 100644 index 0000000..8292287 --- /dev/null +++ b/src/Proto/ChannelRoom/Role.php @@ -0,0 +1,32 @@ +proto.ChannelRoom.Role + */ +class Role +{ + /** + * Generated from protobuf enum MEMBER = 0; + */ + const MEMBER = 0; + /** + * Generated from protobuf enum MODERATOR = 1; + */ + const MODERATOR = 1; + /** + * Generated from protobuf enum ADMIN = 2; + */ + const ADMIN = 2; + /** + * Generated from protobuf enum OWNER = 3; + */ + const OWNER = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Role::class, \Proto\ChannelRoom_Role::class); + diff --git a/src/Proto/ChannelRoom/Type.php b/src/Proto/ChannelRoom/Type.php new file mode 100644 index 0000000..70560e4 --- /dev/null +++ b/src/Proto/ChannelRoom/Type.php @@ -0,0 +1,24 @@ +proto.ChannelRoom.Type + */ +class Type +{ + /** + * Generated from protobuf enum PRIVATE_ROOM = 0; + */ + const PRIVATE_ROOM = 0; + /** + * Generated from protobuf enum PUBLIC_ROOM = 1; + */ + const PUBLIC_ROOM = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\ChannelRoom_Type::class); + diff --git a/src/Proto/ChannelRoom_PrivateExtra.php b/src/Proto/ChannelRoom_PrivateExtra.php index 74084af..e4d0f33 100644 --- a/src/Proto/ChannelRoom_PrivateExtra.php +++ b/src/Proto/ChannelRoom_PrivateExtra.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ChannelRoom.PrivateExtra - */ -class ChannelRoom_PrivateExtra extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string invite_link = 1; - */ - private $invite_link = ''; - /** - * Generated from protobuf field string invite_token = 2; - */ - private $invite_token = ''; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field string invite_link = 1; - * @return string - */ - public function getInviteLink() - { - return $this->invite_link; - } - +if (false) { /** - * Generated from protobuf field string invite_link = 1; - * @param string $var - * @return $this + * This class is deprecated. Use Proto\ChannelRoom\PrivateExtra instead. + * @deprecated */ - public function setInviteLink($var) - { - GPBUtil::checkString($var, True); - $this->invite_link = $var; - - return $this; - } - - /** - * Generated from protobuf field string invite_token = 2; - * @return string - */ - public function getInviteToken() - { - return $this->invite_token; - } - - /** - * Generated from protobuf field string invite_token = 2; - * @param string $var - * @return $this - */ - public function setInviteToken($var) - { - GPBUtil::checkString($var, True); - $this->invite_token = $var; - - return $this; - } - + class ChannelRoom_PrivateExtra {} } +class_exists(ChannelRoom\PrivateExtra::class); +@trigger_error('Proto\ChannelRoom_PrivateExtra is deprecated and will be removed in the next major release. Use Proto\ChannelRoom\PrivateExtra instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelRoom_PublicExtra.php b/src/Proto/ChannelRoom_PublicExtra.php index bc378f0..ec49ebd 100644 --- a/src/Proto/ChannelRoom_PublicExtra.php +++ b/src/Proto/ChannelRoom_PublicExtra.php @@ -4,46 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ChannelRoom.PublicExtra - */ -class ChannelRoom_PublicExtra extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string username = 1; - */ - private $username = ''; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - +if (false) { /** - * Generated from protobuf field string username = 1; - * @return string + * This class is deprecated. Use Proto\ChannelRoom\PublicExtra instead. + * @deprecated */ - public function getUsername() - { - return $this->username; - } - - /** - * Generated from protobuf field string username = 1; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - + class ChannelRoom_PublicExtra {} } +class_exists(ChannelRoom\PublicExtra::class); +@trigger_error('Proto\ChannelRoom_PublicExtra is deprecated and will be removed in the next major release. Use Proto\ChannelRoom\PublicExtra instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelRoom_Role.php b/src/Proto/ChannelRoom_Role.php index 6065ef6..89d9c6f 100644 --- a/src/Proto/ChannelRoom_Role.php +++ b/src/Proto/ChannelRoom_Role.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ChannelRoom\Role - */ -class ChannelRoom_Role -{ +if (false) { /** - * Generated from protobuf enum MEMBER = 0; + * This class is deprecated. Use Proto\ChannelRoom\Role instead. + * @deprecated */ - const MEMBER = 0; - /** - * Generated from protobuf enum MODERATOR = 1; - */ - const MODERATOR = 1; - /** - * Generated from protobuf enum ADMIN = 2; - */ - const ADMIN = 2; - /** - * Generated from protobuf enum OWNER = 3; - */ - const OWNER = 3; + class ChannelRoom_Role {} } +class_exists(ChannelRoom\Role::class); +@trigger_error('Proto\ChannelRoom_Role is deprecated and will be removed in the next major release. Use Proto\ChannelRoom\Role instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelRoom_Type.php b/src/Proto/ChannelRoom_Type.php index 877ca0d..606e490 100644 --- a/src/Proto/ChannelRoom_Type.php +++ b/src/Proto/ChannelRoom_Type.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ChannelRoom\Type - */ -class ChannelRoom_Type -{ +if (false) { /** - * Generated from protobuf enum PRIVATE_ROOM = 0; + * This class is deprecated. Use Proto\ChannelRoom\Type instead. + * @deprecated */ - const PRIVATE_ROOM = 0; - /** - * Generated from protobuf enum PUBLIC_ROOM = 1; - */ - const PUBLIC_ROOM = 1; + class ChannelRoom_Type {} } +class_exists(ChannelRoom\Type::class); +@trigger_error('Proto\ChannelRoom_Type is deprecated and will be removed in the next major release. Use Proto\ChannelRoom\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/ChannelSendMessage.php b/src/Proto/ChannelSendMessage.php index 9c88dbb..0ed123f 100644 --- a/src/Proto/ChannelSendMessage.php +++ b/src/Proto/ChannelSendMessage.php @@ -54,9 +54,27 @@ class ChannelSendMessage extends \Google\Protobuf\Internal\Message */ private $random_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $message_type + * @type int|string $room_id + * @type string $message + * @type string $attachment + * @type \Proto\RoomMessageLocation $location + * @type \Proto\RoomMessageContact $contact + * @type int|string $reply_to + * @type \Proto\RoomMessageForwardFrom $forward_from + * @type int|string $random_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelSendMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelSendMessageResponse.php b/src/Proto/ChannelSendMessageResponse.php index 5d57001..bee6eaa 100644 --- a/src/Proto/ChannelSendMessageResponse.php +++ b/src/Proto/ChannelSendMessageResponse.php @@ -26,9 +26,20 @@ class ChannelSendMessageResponse extends \Google\Protobuf\Internal\Message */ private $room_message = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomMessage $room_message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelSendMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelSetAction.php b/src/Proto/ChannelSetAction.php index 705ea1c..1d1226b 100644 --- a/src/Proto/ChannelSetAction.php +++ b/src/Proto/ChannelSetAction.php @@ -30,9 +30,21 @@ class ChannelSetAction extends \Google\Protobuf\Internal\Message */ private $action_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int $action + * @type int $action_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelSetAction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelSetActionResponse.php b/src/Proto/ChannelSetActionResponse.php index 716bd1c..2b3d545 100644 --- a/src/Proto/ChannelSetActionResponse.php +++ b/src/Proto/ChannelSetActionResponse.php @@ -30,9 +30,21 @@ class ChannelSetActionResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int $action + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelSetAction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateDraft.php b/src/Proto/ChannelUpdateDraft.php index 7a23db8..62ced56 100644 --- a/src/Proto/ChannelUpdateDraft.php +++ b/src/Proto/ChannelUpdateDraft.php @@ -26,9 +26,20 @@ class ChannelUpdateDraft extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateDraftResponse.php b/src/Proto/ChannelUpdateDraftResponse.php index ddb7ca7..b902e96 100644 --- a/src/Proto/ChannelUpdateDraftResponse.php +++ b/src/Proto/ChannelUpdateDraftResponse.php @@ -26,9 +26,20 @@ class ChannelUpdateDraftResponse extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateReactionStatus.php b/src/Proto/ChannelUpdateReactionStatus.php index c2afeb6..4b61fad 100644 --- a/src/Proto/ChannelUpdateReactionStatus.php +++ b/src/Proto/ChannelUpdateReactionStatus.php @@ -26,9 +26,20 @@ class ChannelUpdateReactionStatus extends \Google\Protobuf\Internal\Message */ private $reaction_status = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type bool $reaction_status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateReactionStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateReactionStatusResponse.php b/src/Proto/ChannelUpdateReactionStatusResponse.php index bf4c024..2dbe9f0 100644 --- a/src/Proto/ChannelUpdateReactionStatusResponse.php +++ b/src/Proto/ChannelUpdateReactionStatusResponse.php @@ -26,9 +26,20 @@ class ChannelUpdateReactionStatusResponse extends \Google\Protobuf\Internal\Mess */ private $reaction_status = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type bool $reaction_status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateReactionStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateSignature.php b/src/Proto/ChannelUpdateSignature.php index bc0ccdc..4d8e7b8 100644 --- a/src/Proto/ChannelUpdateSignature.php +++ b/src/Proto/ChannelUpdateSignature.php @@ -26,9 +26,20 @@ class ChannelUpdateSignature extends \Google\Protobuf\Internal\Message */ private $signature = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type bool $signature + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateSignature::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateSignatureResponse.php b/src/Proto/ChannelUpdateSignatureResponse.php index 5fb1705..d11a7d7 100644 --- a/src/Proto/ChannelUpdateSignatureResponse.php +++ b/src/Proto/ChannelUpdateSignatureResponse.php @@ -26,9 +26,20 @@ class ChannelUpdateSignatureResponse extends \Google\Protobuf\Internal\Message */ private $signature = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type bool $signature + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateSignature::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateUsername.php b/src/Proto/ChannelUpdateUsername.php index 19633d4..8509c93 100644 --- a/src/Proto/ChannelUpdateUsername.php +++ b/src/Proto/ChannelUpdateUsername.php @@ -26,9 +26,20 @@ class ChannelUpdateUsername extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChannelUpdateUsernameResponse.php b/src/Proto/ChannelUpdateUsernameResponse.php index 8ca99f3..839618d 100644 --- a/src/Proto/ChannelUpdateUsernameResponse.php +++ b/src/Proto/ChannelUpdateUsernameResponse.php @@ -26,9 +26,20 @@ class ChannelUpdateUsernameResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $username + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChannelUpdateUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatClearMessage.php b/src/Proto/ChatClearMessage.php index 60ab245..baa2ea8 100644 --- a/src/Proto/ChatClearMessage.php +++ b/src/Proto/ChatClearMessage.php @@ -26,9 +26,20 @@ class ChatClearMessage extends \Google\Protobuf\Internal\Message */ private $clear_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $clear_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatClearMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatClearMessageResponse.php b/src/Proto/ChatClearMessageResponse.php index 563f5b0..16b3486 100644 --- a/src/Proto/ChatClearMessageResponse.php +++ b/src/Proto/ChatClearMessageResponse.php @@ -26,9 +26,20 @@ class ChatClearMessageResponse extends \Google\Protobuf\Internal\Message */ private $clear_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $clear_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatClearMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatConvertToGroup.php b/src/Proto/ChatConvertToGroup.php index c26d132..66c76a7 100644 --- a/src/Proto/ChatConvertToGroup.php +++ b/src/Proto/ChatConvertToGroup.php @@ -30,9 +30,21 @@ class ChatConvertToGroup extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type string $name + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatConvertToGroup::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatConvertToGroupResponse.php b/src/Proto/ChatConvertToGroupResponse.php index b0f0574..413467c 100644 --- a/src/Proto/ChatConvertToGroupResponse.php +++ b/src/Proto/ChatConvertToGroupResponse.php @@ -34,9 +34,22 @@ class ChatConvertToGroupResponse extends \Google\Protobuf\Internal\Message */ private $role = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type string $name + * @type string $description + * @type int $role + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatConvertToGroup::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatDelete.php b/src/Proto/ChatDelete.php index 6c17d1c..7a9d775 100644 --- a/src/Proto/ChatDelete.php +++ b/src/Proto/ChatDelete.php @@ -22,9 +22,19 @@ class ChatDelete extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatDeleteMessage.php b/src/Proto/ChatDeleteMessage.php index 0e99b32..d986f76 100644 --- a/src/Proto/ChatDeleteMessage.php +++ b/src/Proto/ChatDeleteMessage.php @@ -30,9 +30,21 @@ class ChatDeleteMessage extends \Google\Protobuf\Internal\Message */ private $both = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type bool $both + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatDeleteMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatDeleteMessageResponse.php b/src/Proto/ChatDeleteMessageResponse.php index 380a47b..2c8c9ce 100644 --- a/src/Proto/ChatDeleteMessageResponse.php +++ b/src/Proto/ChatDeleteMessageResponse.php @@ -30,9 +30,21 @@ class ChatDeleteMessageResponse extends \Google\Protobuf\Internal\Message */ private $delete_version = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int|string $delete_version + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatDeleteMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatDeleteResponse.php b/src/Proto/ChatDeleteResponse.php index 3e096a4..1d55317 100644 --- a/src/Proto/ChatDeleteResponse.php +++ b/src/Proto/ChatDeleteResponse.php @@ -22,9 +22,19 @@ class ChatDeleteResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatEditMessage.php b/src/Proto/ChatEditMessage.php index 5dce0be..3f48633 100644 --- a/src/Proto/ChatEditMessage.php +++ b/src/Proto/ChatEditMessage.php @@ -30,9 +30,21 @@ class ChatEditMessage extends \Google\Protobuf\Internal\Message */ private $message = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type string $message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatEditMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatEditMessageResponse.php b/src/Proto/ChatEditMessageResponse.php index 2e2bc56..e4ff22f 100644 --- a/src/Proto/ChatEditMessageResponse.php +++ b/src/Proto/ChatEditMessageResponse.php @@ -38,9 +38,23 @@ class ChatEditMessageResponse extends \Google\Protobuf\Internal\Message */ private $message_type = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int|string $message_version + * @type string $message + * @type int $message_type + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatEditMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatGetDraft.php b/src/Proto/ChatGetDraft.php index 532c8cb..40bc4ff 100644 --- a/src/Proto/ChatGetDraft.php +++ b/src/Proto/ChatGetDraft.php @@ -22,9 +22,19 @@ class ChatGetDraft extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatGetDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatGetDraftResponse.php b/src/Proto/ChatGetDraftResponse.php index ef8af5f..d7f92ee 100644 --- a/src/Proto/ChatGetDraftResponse.php +++ b/src/Proto/ChatGetDraftResponse.php @@ -22,9 +22,19 @@ class ChatGetDraftResponse extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatGetDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatGetRoom.php b/src/Proto/ChatGetRoom.php index 2c7d675..eeffde8 100644 --- a/src/Proto/ChatGetRoom.php +++ b/src/Proto/ChatGetRoom.php @@ -22,9 +22,19 @@ class ChatGetRoom extends \Google\Protobuf\Internal\Message */ private $peer_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $peer_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatGetRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatGetRoomResponse.php b/src/Proto/ChatGetRoomResponse.php index 07d1bf2..a2911bc 100644 --- a/src/Proto/ChatGetRoomResponse.php +++ b/src/Proto/ChatGetRoomResponse.php @@ -22,9 +22,19 @@ class ChatGetRoomResponse extends \Google\Protobuf\Internal\Message */ private $room = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Room $room + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatGetRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatRoom.php b/src/Proto/ChatRoom.php index c76111f..7bc7940 100644 --- a/src/Proto/ChatRoom.php +++ b/src/Proto/ChatRoom.php @@ -18,9 +18,18 @@ class ChatRoom extends \Google\Protobuf\Internal\Message */ private $peer = null; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\RegisteredUser $peer + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatSendMessage.php b/src/Proto/ChatSendMessage.php index 3449b2a..aab1394 100644 --- a/src/Proto/ChatSendMessage.php +++ b/src/Proto/ChatSendMessage.php @@ -54,9 +54,27 @@ class ChatSendMessage extends \Google\Protobuf\Internal\Message */ private $random_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $message_type + * @type int|string $room_id + * @type string $message + * @type string $attachment + * @type \Proto\RoomMessageLocation $location + * @type \Proto\RoomMessageContact $contact + * @type int|string $reply_to + * @type \Proto\RoomMessageForwardFrom $forward_from + * @type int|string $random_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatSendMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatSendMessageResponse.php b/src/Proto/ChatSendMessageResponse.php index ad3cd2b..94a7a3b 100644 --- a/src/Proto/ChatSendMessageResponse.php +++ b/src/Proto/ChatSendMessageResponse.php @@ -26,9 +26,20 @@ class ChatSendMessageResponse extends \Google\Protobuf\Internal\Message */ private $room_message = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomMessage $room_message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatSendMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatSetAction.php b/src/Proto/ChatSetAction.php index 74d0763..9fa0eba 100644 --- a/src/Proto/ChatSetAction.php +++ b/src/Proto/ChatSetAction.php @@ -30,9 +30,21 @@ class ChatSetAction extends \Google\Protobuf\Internal\Message */ private $action_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int $action + * @type int $action_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatSetAction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatSetActionResponse.php b/src/Proto/ChatSetActionResponse.php index 3a92fd6..d0d6250 100644 --- a/src/Proto/ChatSetActionResponse.php +++ b/src/Proto/ChatSetActionResponse.php @@ -30,9 +30,21 @@ class ChatSetActionResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int $action + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatSetAction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatUpdateDraft.php b/src/Proto/ChatUpdateDraft.php index a7b3ac5..e141361 100644 --- a/src/Proto/ChatUpdateDraft.php +++ b/src/Proto/ChatUpdateDraft.php @@ -26,9 +26,20 @@ class ChatUpdateDraft extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatUpdateDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatUpdateDraftResponse.php b/src/Proto/ChatUpdateDraftResponse.php index 325f001..705b3b0 100644 --- a/src/Proto/ChatUpdateDraftResponse.php +++ b/src/Proto/ChatUpdateDraftResponse.php @@ -26,9 +26,20 @@ class ChatUpdateDraftResponse extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatUpdateDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatUpdateStatus.php b/src/Proto/ChatUpdateStatus.php index f2a258a..223143b 100644 --- a/src/Proto/ChatUpdateStatus.php +++ b/src/Proto/ChatUpdateStatus.php @@ -30,9 +30,21 @@ class ChatUpdateStatus extends \Google\Protobuf\Internal\Message */ private $status = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type int $status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatUpdateStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ChatUpdateStatusResponse.php b/src/Proto/ChatUpdateStatusResponse.php index a4fffd3..d92e5b2 100644 --- a/src/Proto/ChatUpdateStatusResponse.php +++ b/src/Proto/ChatUpdateStatusResponse.php @@ -38,9 +38,23 @@ class ChatUpdateStatusResponse extends \Google\Protobuf\Internal\Message */ private $updater_author_hash = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int $status + * @type int|string $status_version + * @type string $updater_author_hash + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ChatUpdateStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientAction.php b/src/Proto/ClientAction.php index b2aecd4..4c0d4ee 100644 --- a/src/Proto/ClientAction.php +++ b/src/Proto/ClientAction.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\ClientAction + * Protobuf type proto.ClientAction */ class ClientAction { diff --git a/src/Proto/ClientCheckInviteLink.php b/src/Proto/ClientCheckInviteLink.php index 9ed01ef..585b942 100644 --- a/src/Proto/ClientCheckInviteLink.php +++ b/src/Proto/ClientCheckInviteLink.php @@ -22,9 +22,19 @@ class ClientCheckInviteLink extends \Google\Protobuf\Internal\Message */ private $invite_token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $invite_token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientCheckInviteLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientCheckInviteLinkResponse.php b/src/Proto/ClientCheckInviteLinkResponse.php index 978a2fd..339f646 100644 --- a/src/Proto/ClientCheckInviteLinkResponse.php +++ b/src/Proto/ClientCheckInviteLinkResponse.php @@ -22,9 +22,19 @@ class ClientCheckInviteLinkResponse extends \Google\Protobuf\Internal\Message */ private $room = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Room $room + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientCheckInviteLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientCondition.php b/src/Proto/ClientCondition.php index 09fd8eb..5c2f865 100644 --- a/src/Proto/ClientCondition.php +++ b/src/Proto/ClientCondition.php @@ -22,9 +22,19 @@ class ClientCondition extends \Google\Protobuf\Internal\Message */ private $rooms; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type \Proto\ClientCondition\Room[]|\Google\Protobuf\Internal\RepeatedField $rooms + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientCondition::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getRooms() /** * Generated from protobuf field repeated .proto.ClientCondition.Room rooms = 2; - * @param \Proto\ClientCondition_Room[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\ClientCondition\Room[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRooms($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientCondition_Room::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientCondition\Room::class); $this->rooms = $arr; return $this; diff --git a/src/Proto/ClientCondition/Room.php b/src/Proto/ClientCondition/Room.php new file mode 100644 index 0000000..08fb525 --- /dev/null +++ b/src/Proto/ClientCondition/Room.php @@ -0,0 +1,392 @@ +proto.ClientCondition.Room + */ +class Room extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 room_id = 2; + */ + private $room_id = 0; + /** + * Generated from protobuf field uint64 message_version = 3; + */ + private $message_version = 0; + /** + * Generated from protobuf field uint64 status_version = 4; + */ + private $status_version = 0; + /** + * Generated from protobuf field uint64 delete_version = 5; + */ + private $delete_version = 0; + /** + *DEPRECATED + * + * Generated from protobuf field repeated uint64 offline_deleted_deprecated = 6; + */ + private $offline_deleted_deprecated; + /** + * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + */ + private $offline_edited; + /** + * Generated from protobuf field repeated uint64 offline_seen = 8; + */ + private $offline_seen; + /** + * Generated from protobuf field uint64 clear_id = 9; + */ + private $clear_id = 0; + /** + * Generated from protobuf field uint64 cache_start_id = 10; + */ + private $cache_start_id = 0; + /** + * Generated from protobuf field uint64 cache_end_id = 11; + */ + private $cache_end_id = 0; + /** + * Generated from protobuf field .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + */ + private $offline_mute = 0; + /** + * Generated from protobuf field repeated uint64 offline_listened = 13; + */ + private $offline_listened; + /** + * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + */ + private $offline_deleted; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $room_id + * @type int|string $message_version + * @type int|string $status_version + * @type int|string $delete_version + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $offline_deleted_deprecated + * DEPRECATED + * @type \Proto\ClientCondition\Room\OfflineEdited[]|\Google\Protobuf\Internal\RepeatedField $offline_edited + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $offline_seen + * @type int|string $clear_id + * @type int|string $cache_start_id + * @type int|string $cache_end_id + * @type int $offline_mute + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $offline_listened + * @type \Proto\ClientCondition\Room\OfflineDeleted[]|\Google\Protobuf\Internal\RepeatedField $offline_deleted + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\ClientCondition::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 room_id = 2; + * @return int|string + */ + public function getRoomId() + { + return $this->room_id; + } + + /** + * Generated from protobuf field uint64 room_id = 2; + * @param int|string $var + * @return $this + */ + public function setRoomId($var) + { + GPBUtil::checkUint64($var); + $this->room_id = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 message_version = 3; + * @return int|string + */ + public function getMessageVersion() + { + return $this->message_version; + } + + /** + * Generated from protobuf field uint64 message_version = 3; + * @param int|string $var + * @return $this + */ + public function setMessageVersion($var) + { + GPBUtil::checkUint64($var); + $this->message_version = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 status_version = 4; + * @return int|string + */ + public function getStatusVersion() + { + return $this->status_version; + } + + /** + * Generated from protobuf field uint64 status_version = 4; + * @param int|string $var + * @return $this + */ + public function setStatusVersion($var) + { + GPBUtil::checkUint64($var); + $this->status_version = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 delete_version = 5; + * @return int|string + */ + public function getDeleteVersion() + { + return $this->delete_version; + } + + /** + * Generated from protobuf field uint64 delete_version = 5; + * @param int|string $var + * @return $this + */ + public function setDeleteVersion($var) + { + GPBUtil::checkUint64($var); + $this->delete_version = $var; + + return $this; + } + + /** + *DEPRECATED + * + * Generated from protobuf field repeated uint64 offline_deleted_deprecated = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOfflineDeletedDeprecated() + { + return $this->offline_deleted_deprecated; + } + + /** + *DEPRECATED + * + * Generated from protobuf field repeated uint64 offline_deleted_deprecated = 6; + * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOfflineDeletedDeprecated($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64); + $this->offline_deleted_deprecated = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOfflineEdited() + { + return $this->offline_edited; + } + + /** + * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; + * @param \Proto\ClientCondition\Room\OfflineEdited[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOfflineEdited($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientCondition\Room\OfflineEdited::class); + $this->offline_edited = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 offline_seen = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOfflineSeen() + { + return $this->offline_seen; + } + + /** + * Generated from protobuf field repeated uint64 offline_seen = 8; + * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOfflineSeen($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64); + $this->offline_seen = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint64 clear_id = 9; + * @return int|string + */ + public function getClearId() + { + return $this->clear_id; + } + + /** + * Generated from protobuf field uint64 clear_id = 9; + * @param int|string $var + * @return $this + */ + public function setClearId($var) + { + GPBUtil::checkUint64($var); + $this->clear_id = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 cache_start_id = 10; + * @return int|string + */ + public function getCacheStartId() + { + return $this->cache_start_id; + } + + /** + * Generated from protobuf field uint64 cache_start_id = 10; + * @param int|string $var + * @return $this + */ + public function setCacheStartId($var) + { + GPBUtil::checkUint64($var); + $this->cache_start_id = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 cache_end_id = 11; + * @return int|string + */ + public function getCacheEndId() + { + return $this->cache_end_id; + } + + /** + * Generated from protobuf field uint64 cache_end_id = 11; + * @param int|string $var + * @return $this + */ + public function setCacheEndId($var) + { + GPBUtil::checkUint64($var); + $this->cache_end_id = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @return int + */ + public function getOfflineMute() + { + return $this->offline_mute; + } + + /** + * Generated from protobuf field .proto.ClientCondition.Room.OfflineMute offline_mute = 12; + * @param int $var + * @return $this + */ + public function setOfflineMute($var) + { + GPBUtil::checkEnum($var, \Proto\ClientCondition_Room_OfflineMute::class); + $this->offline_mute = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 offline_listened = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOfflineListened() + { + return $this->offline_listened; + } + + /** + * Generated from protobuf field repeated uint64 offline_listened = 13; + * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOfflineListened($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64); + $this->offline_listened = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOfflineDeleted() + { + return $this->offline_deleted; + } + + /** + * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; + * @param \Proto\ClientCondition\Room\OfflineDeleted[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOfflineDeleted($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientCondition\Room\OfflineDeleted::class); + $this->offline_deleted = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Room::class, \Proto\ClientCondition_Room::class); + diff --git a/src/Proto/ClientCondition/Room/OfflineDeleted.php b/src/Proto/ClientCondition/Room/OfflineDeleted.php new file mode 100644 index 0000000..c41be27 --- /dev/null +++ b/src/Proto/ClientCondition/Room/OfflineDeleted.php @@ -0,0 +1,88 @@ +proto.ClientCondition.Room.OfflineDeleted + */ +class OfflineDeleted extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 message_id = 1; + */ + private $message_id = 0; + /** + * Generated from protobuf field bool both = 4; + */ + private $both = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $message_id + * @type bool $both + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\ClientCondition::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 message_id = 1; + * @return int|string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * Generated from protobuf field uint64 message_id = 1; + * @param int|string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkUint64($var); + $this->message_id = $var; + + return $this; + } + + /** + * Generated from protobuf field bool both = 4; + * @return bool + */ + public function getBoth() + { + return $this->both; + } + + /** + * Generated from protobuf field bool both = 4; + * @param bool $var + * @return $this + */ + public function setBoth($var) + { + GPBUtil::checkBool($var); + $this->both = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OfflineDeleted::class, \Proto\ClientCondition_Room_OfflineDeleted::class); + diff --git a/src/Proto/ClientCondition/Room/OfflineEdited.php b/src/Proto/ClientCondition/Room/OfflineEdited.php new file mode 100644 index 0000000..7dd5a0c --- /dev/null +++ b/src/Proto/ClientCondition/Room/OfflineEdited.php @@ -0,0 +1,88 @@ +proto.ClientCondition.Room.OfflineEdited + */ +class OfflineEdited extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 message_id = 1; + */ + private $message_id = 0; + /** + * Generated from protobuf field string message = 2; + */ + private $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $message_id + * @type string $message + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\ClientCondition::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 message_id = 1; + * @return int|string + */ + public function getMessageId() + { + return $this->message_id; + } + + /** + * Generated from protobuf field uint64 message_id = 1; + * @param int|string $var + * @return $this + */ + public function setMessageId($var) + { + GPBUtil::checkUint64($var); + $this->message_id = $var; + + return $this; + } + + /** + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OfflineEdited::class, \Proto\ClientCondition_Room_OfflineEdited::class); + diff --git a/src/Proto/ClientCondition/Room/OfflineMute.php b/src/Proto/ClientCondition/Room/OfflineMute.php new file mode 100644 index 0000000..15093b7 --- /dev/null +++ b/src/Proto/ClientCondition/Room/OfflineMute.php @@ -0,0 +1,28 @@ +proto.ClientCondition.Room.OfflineMute + */ +class OfflineMute +{ + /** + * Generated from protobuf enum UNCHANGED = 0; + */ + const UNCHANGED = 0; + /** + * Generated from protobuf enum MUTED = 1; + */ + const MUTED = 1; + /** + * Generated from protobuf enum UNMUTED = 2; + */ + const UNMUTED = 2; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OfflineMute::class, \Proto\ClientCondition_Room_OfflineMute::class); + diff --git a/src/Proto/ClientConditionResponse.php b/src/Proto/ClientConditionResponse.php index e0484a9..031eb68 100644 --- a/src/Proto/ClientConditionResponse.php +++ b/src/Proto/ClientConditionResponse.php @@ -18,9 +18,18 @@ class ClientConditionResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientCondition::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientCondition_Room.php b/src/Proto/ClientCondition_Room.php index e1d84e1..b474149 100644 --- a/src/Proto/ClientCondition_Room.php +++ b/src/Proto/ClientCondition_Room.php @@ -4,364 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ClientCondition.Room - */ -class ClientCondition_Room extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 room_id = 2; - */ - private $room_id = 0; - /** - * Generated from protobuf field uint64 message_version = 3; - */ - private $message_version = 0; - /** - * Generated from protobuf field uint64 status_version = 4; - */ - private $status_version = 0; - /** - * Generated from protobuf field uint64 delete_version = 5; - */ - private $delete_version = 0; - /** - *DEPRECATED - * - * Generated from protobuf field repeated uint64 offline_deleted_deprecated = 6; - */ - private $offline_deleted_deprecated; - /** - * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - */ - private $offline_edited; - /** - * Generated from protobuf field repeated uint64 offline_seen = 8; - */ - private $offline_seen; - /** - * Generated from protobuf field uint64 clear_id = 9; - */ - private $clear_id = 0; - /** - * Generated from protobuf field uint64 cache_start_id = 10; - */ - private $cache_start_id = 0; - /** - * Generated from protobuf field uint64 cache_end_id = 11; - */ - private $cache_end_id = 0; - /** - * Generated from protobuf field .proto.ClientCondition.Room.OfflineMute offline_mute = 12; - */ - private $offline_mute = 0; - /** - * Generated from protobuf field repeated uint64 offline_listened = 13; - */ - private $offline_listened; - /** - * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - */ - private $offline_deleted; - - public function __construct() { - \GPBMetadata\ClientCondition::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 room_id = 2; - * @return int|string - */ - public function getRoomId() - { - return $this->room_id; - } - - /** - * Generated from protobuf field uint64 room_id = 2; - * @param int|string $var - * @return $this - */ - public function setRoomId($var) - { - GPBUtil::checkUint64($var); - $this->room_id = $var; - - return $this; - } - - /** - * Generated from protobuf field uint64 message_version = 3; - * @return int|string - */ - public function getMessageVersion() - { - return $this->message_version; - } - - /** - * Generated from protobuf field uint64 message_version = 3; - * @param int|string $var - * @return $this - */ - public function setMessageVersion($var) - { - GPBUtil::checkUint64($var); - $this->message_version = $var; - - return $this; - } - - /** - * Generated from protobuf field uint64 status_version = 4; - * @return int|string - */ - public function getStatusVersion() - { - return $this->status_version; - } - - /** - * Generated from protobuf field uint64 status_version = 4; - * @param int|string $var - * @return $this - */ - public function setStatusVersion($var) - { - GPBUtil::checkUint64($var); - $this->status_version = $var; - - return $this; - } - - /** - * Generated from protobuf field uint64 delete_version = 5; - * @return int|string - */ - public function getDeleteVersion() - { - return $this->delete_version; - } - - /** - * Generated from protobuf field uint64 delete_version = 5; - * @param int|string $var - * @return $this - */ - public function setDeleteVersion($var) - { - GPBUtil::checkUint64($var); - $this->delete_version = $var; - - return $this; - } - - /** - *DEPRECATED - * - * Generated from protobuf field repeated uint64 offline_deleted_deprecated = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOfflineDeletedDeprecated() - { - return $this->offline_deleted_deprecated; - } - - /** - *DEPRECATED - * - * Generated from protobuf field repeated uint64 offline_deleted_deprecated = 6; - * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOfflineDeletedDeprecated($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64); - $this->offline_deleted_deprecated = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOfflineEdited() - { - return $this->offline_edited; - } - - /** - * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineEdited offline_edited = 7; - * @param \Proto\ClientCondition_Room_OfflineEdited[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOfflineEdited($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientCondition_Room_OfflineEdited::class); - $this->offline_edited = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated uint64 offline_seen = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOfflineSeen() - { - return $this->offline_seen; - } - +if (false) { /** - * Generated from protobuf field repeated uint64 offline_seen = 8; - * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * This class is deprecated. Use Proto\ClientCondition\Room instead. + * @deprecated */ - public function setOfflineSeen($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64); - $this->offline_seen = $arr; - - return $this; - } - - /** - * Generated from protobuf field uint64 clear_id = 9; - * @return int|string - */ - public function getClearId() - { - return $this->clear_id; - } - - /** - * Generated from protobuf field uint64 clear_id = 9; - * @param int|string $var - * @return $this - */ - public function setClearId($var) - { - GPBUtil::checkUint64($var); - $this->clear_id = $var; - - return $this; - } - - /** - * Generated from protobuf field uint64 cache_start_id = 10; - * @return int|string - */ - public function getCacheStartId() - { - return $this->cache_start_id; - } - - /** - * Generated from protobuf field uint64 cache_start_id = 10; - * @param int|string $var - * @return $this - */ - public function setCacheStartId($var) - { - GPBUtil::checkUint64($var); - $this->cache_start_id = $var; - - return $this; - } - - /** - * Generated from protobuf field uint64 cache_end_id = 11; - * @return int|string - */ - public function getCacheEndId() - { - return $this->cache_end_id; - } - - /** - * Generated from protobuf field uint64 cache_end_id = 11; - * @param int|string $var - * @return $this - */ - public function setCacheEndId($var) - { - GPBUtil::checkUint64($var); - $this->cache_end_id = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.ClientCondition.Room.OfflineMute offline_mute = 12; - * @return int - */ - public function getOfflineMute() - { - return $this->offline_mute; - } - - /** - * Generated from protobuf field .proto.ClientCondition.Room.OfflineMute offline_mute = 12; - * @param int $var - * @return $this - */ - public function setOfflineMute($var) - { - GPBUtil::checkEnum($var, \Proto\ClientCondition_Room_OfflineMute::class); - $this->offline_mute = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated uint64 offline_listened = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOfflineListened() - { - return $this->offline_listened; - } - - /** - * Generated from protobuf field repeated uint64 offline_listened = 13; - * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOfflineListened($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64); - $this->offline_listened = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOfflineDeleted() - { - return $this->offline_deleted; - } - - /** - * Generated from protobuf field repeated .proto.ClientCondition.Room.OfflineDeleted offline_deleted = 14; - * @param \Proto\ClientCondition_Room_OfflineDeleted[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOfflineDeleted($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientCondition_Room_OfflineDeleted::class); - $this->offline_deleted = $arr; - - return $this; - } - + class ClientCondition_Room {} } +class_exists(ClientCondition\Room::class); +@trigger_error('Proto\ClientCondition_Room is deprecated and will be removed in the next major release. Use Proto\ClientCondition\Room instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientCondition_Room_OfflineDeleted.php b/src/Proto/ClientCondition_Room_OfflineDeleted.php index f51518e..d3542d8 100644 --- a/src/Proto/ClientCondition_Room_OfflineDeleted.php +++ b/src/Proto/ClientCondition_Room_OfflineDeleted.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ClientCondition.Room.OfflineDeleted - */ -class ClientCondition_Room_OfflineDeleted extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 message_id = 1; - */ - private $message_id = 0; - /** - * Generated from protobuf field bool both = 4; - */ - private $both = false; - - public function __construct() { - \GPBMetadata\ClientCondition::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 message_id = 1; - * @return int|string - */ - public function getMessageId() - { - return $this->message_id; - } - +if (false) { /** - * Generated from protobuf field uint64 message_id = 1; - * @param int|string $var - * @return $this + * This class is deprecated. Use Proto\ClientCondition\Room\OfflineDeleted instead. + * @deprecated */ - public function setMessageId($var) - { - GPBUtil::checkUint64($var); - $this->message_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bool both = 4; - * @return bool - */ - public function getBoth() - { - return $this->both; - } - - /** - * Generated from protobuf field bool both = 4; - * @param bool $var - * @return $this - */ - public function setBoth($var) - { - GPBUtil::checkBool($var); - $this->both = $var; - - return $this; - } - + class ClientCondition_Room_OfflineDeleted {} } +class_exists(ClientCondition\Room\OfflineDeleted::class); +@trigger_error('Proto\ClientCondition_Room_OfflineDeleted is deprecated and will be removed in the next major release. Use Proto\ClientCondition\Room\OfflineDeleted instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientCondition_Room_OfflineEdited.php b/src/Proto/ClientCondition_Room_OfflineEdited.php index 443b231..20f1d32 100644 --- a/src/Proto/ClientCondition_Room_OfflineEdited.php +++ b/src/Proto/ClientCondition_Room_OfflineEdited.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ClientCondition.Room.OfflineEdited - */ -class ClientCondition_Room_OfflineEdited extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 message_id = 1; - */ - private $message_id = 0; - /** - * Generated from protobuf field string message = 2; - */ - private $message = ''; - - public function __construct() { - \GPBMetadata\ClientCondition::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 message_id = 1; - * @return int|string - */ - public function getMessageId() - { - return $this->message_id; - } - +if (false) { /** - * Generated from protobuf field uint64 message_id = 1; - * @param int|string $var - * @return $this + * This class is deprecated. Use Proto\ClientCondition\Room\OfflineEdited instead. + * @deprecated */ - public function setMessageId($var) - { - GPBUtil::checkUint64($var); - $this->message_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - + class ClientCondition_Room_OfflineEdited {} } +class_exists(ClientCondition\Room\OfflineEdited::class); +@trigger_error('Proto\ClientCondition_Room_OfflineEdited is deprecated and will be removed in the next major release. Use Proto\ClientCondition\Room\OfflineEdited instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientCondition_Room_OfflineMute.php b/src/Proto/ClientCondition_Room_OfflineMute.php index 6e812d3..9a178ce 100644 --- a/src/Proto/ClientCondition_Room_OfflineMute.php +++ b/src/Proto/ClientCondition_Room_OfflineMute.php @@ -4,22 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ClientCondition\Room\OfflineMute - */ -class ClientCondition_Room_OfflineMute -{ +if (false) { /** - * Generated from protobuf enum UNCHANGED = 0; + * This class is deprecated. Use Proto\ClientCondition\Room\OfflineMute instead. + * @deprecated */ - const UNCHANGED = 0; - /** - * Generated from protobuf enum MUTED = 1; - */ - const MUTED = 1; - /** - * Generated from protobuf enum UNMUTED = 2; - */ - const UNMUTED = 2; + class ClientCondition_Room_OfflineMute {} } +class_exists(ClientCondition\Room\OfflineMute::class); +@trigger_error('Proto\ClientCondition_Room_OfflineMute is deprecated and will be removed in the next major release. Use Proto\ClientCondition\Room\OfflineMute instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientCountRoomHistory.php b/src/Proto/ClientCountRoomHistory.php index 7655fc9..a710276 100644 --- a/src/Proto/ClientCountRoomHistory.php +++ b/src/Proto/ClientCountRoomHistory.php @@ -22,9 +22,19 @@ class ClientCountRoomHistory extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientCountRoomHistory::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientCountRoomHistoryResponse.php b/src/Proto/ClientCountRoomHistoryResponse.php index 6ed3e4a..86e4422 100644 --- a/src/Proto/ClientCountRoomHistoryResponse.php +++ b/src/Proto/ClientCountRoomHistoryResponse.php @@ -50,9 +50,26 @@ class ClientCountRoomHistoryResponse extends \Google\Protobuf\Internal\Message */ private $url = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $media + * @type int $image + * @type int $video + * @type int $audio + * @type int $voice + * @type int $gif + * @type int $file + * @type int $url + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientCountRoomHistory::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoom.php b/src/Proto/ClientGetRoom.php index 875ec72..285c597 100644 --- a/src/Proto/ClientGetRoom.php +++ b/src/Proto/ClientGetRoom.php @@ -22,9 +22,19 @@ class ClientGetRoom extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoomHistory.php b/src/Proto/ClientGetRoomHistory.php index 4210009..072cf80 100644 --- a/src/Proto/ClientGetRoomHistory.php +++ b/src/Proto/ClientGetRoomHistory.php @@ -34,9 +34,22 @@ class ClientGetRoomHistory extends \Google\Protobuf\Internal\Message */ private $limit = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $first_message_id + * @type int $direction + * @type int $limit + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoomHistory::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoomHistory/Direction.php b/src/Proto/ClientGetRoomHistory/Direction.php new file mode 100644 index 0000000..c2ff15e --- /dev/null +++ b/src/Proto/ClientGetRoomHistory/Direction.php @@ -0,0 +1,24 @@ +proto.ClientGetRoomHistory.Direction + */ +class Direction +{ + /** + * Generated from protobuf enum UP = 0; + */ + const UP = 0; + /** + * Generated from protobuf enum DOWN = 1; + */ + const DOWN = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Direction::class, \Proto\ClientGetRoomHistory_Direction::class); + diff --git a/src/Proto/ClientGetRoomHistoryResponse.php b/src/Proto/ClientGetRoomHistoryResponse.php index 2c29385..9e4a245 100644 --- a/src/Proto/ClientGetRoomHistoryResponse.php +++ b/src/Proto/ClientGetRoomHistoryResponse.php @@ -22,9 +22,19 @@ class ClientGetRoomHistoryResponse extends \Google\Protobuf\Internal\Message */ private $message; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\RoomMessage[]|\Google\Protobuf\Internal\RepeatedField $message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoomHistory::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoomHistory_Direction.php b/src/Proto/ClientGetRoomHistory_Direction.php index a615df7..0188c2d 100644 --- a/src/Proto/ClientGetRoomHistory_Direction.php +++ b/src/Proto/ClientGetRoomHistory_Direction.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ClientGetRoomHistory\Direction - */ -class ClientGetRoomHistory_Direction -{ +if (false) { /** - * Generated from protobuf enum UP = 0; + * This class is deprecated. Use Proto\ClientGetRoomHistory\Direction instead. + * @deprecated */ - const UP = 0; - /** - * Generated from protobuf enum DOWN = 1; - */ - const DOWN = 1; + class ClientGetRoomHistory_Direction {} } +class_exists(ClientGetRoomHistory\Direction::class); +@trigger_error('Proto\ClientGetRoomHistory_Direction is deprecated and will be removed in the next major release. Use Proto\ClientGetRoomHistory\Direction instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientGetRoomList.php b/src/Proto/ClientGetRoomList.php index 8c1a36e..64192dd 100644 --- a/src/Proto/ClientGetRoomList.php +++ b/src/Proto/ClientGetRoomList.php @@ -22,9 +22,19 @@ class ClientGetRoomList extends \Google\Protobuf\Internal\Message */ private $pagination = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type \Proto\Pagination $pagination + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoomList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoomListResponse.php b/src/Proto/ClientGetRoomListResponse.php index 913f358..964fa8f 100644 --- a/src/Proto/ClientGetRoomListResponse.php +++ b/src/Proto/ClientGetRoomListResponse.php @@ -22,9 +22,19 @@ class ClientGetRoomListResponse extends \Google\Protobuf\Internal\Message */ private $rooms; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Room[]|\Google\Protobuf\Internal\RepeatedField $rooms + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoomList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoomMessage.php b/src/Proto/ClientGetRoomMessage.php index 7754633..e0107a6 100644 --- a/src/Proto/ClientGetRoomMessage.php +++ b/src/Proto/ClientGetRoomMessage.php @@ -26,9 +26,20 @@ class ClientGetRoomMessage extends \Google\Protobuf\Internal\Message */ private $message_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoomMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoomMessageResponse.php b/src/Proto/ClientGetRoomMessageResponse.php index 61dbaf4..7c71c17 100644 --- a/src/Proto/ClientGetRoomMessageResponse.php +++ b/src/Proto/ClientGetRoomMessageResponse.php @@ -22,9 +22,19 @@ class ClientGetRoomMessageResponse extends \Google\Protobuf\Internal\Message */ private $message = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\RoomMessage $message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoomMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientGetRoomResponse.php b/src/Proto/ClientGetRoomResponse.php index 10fed9a..9f37364 100644 --- a/src/Proto/ClientGetRoomResponse.php +++ b/src/Proto/ClientGetRoomResponse.php @@ -22,9 +22,19 @@ class ClientGetRoomResponse extends \Google\Protobuf\Internal\Message */ private $room = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Room $room + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientGetRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientJoinByInviteLink.php b/src/Proto/ClientJoinByInviteLink.php index 1a44207..d7bfb61 100644 --- a/src/Proto/ClientJoinByInviteLink.php +++ b/src/Proto/ClientJoinByInviteLink.php @@ -22,9 +22,19 @@ class ClientJoinByInviteLink extends \Google\Protobuf\Internal\Message */ private $invite_token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $invite_token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientJoinByInviteLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientJoinByInviteLinkResponse.php b/src/Proto/ClientJoinByInviteLinkResponse.php index 4679b65..9ed6cfb 100644 --- a/src/Proto/ClientJoinByInviteLinkResponse.php +++ b/src/Proto/ClientJoinByInviteLinkResponse.php @@ -18,9 +18,18 @@ class ClientJoinByInviteLinkResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientJoinByInviteLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientJoinByUsername.php b/src/Proto/ClientJoinByUsername.php index ba79ca8..3531d53 100644 --- a/src/Proto/ClientJoinByUsername.php +++ b/src/Proto/ClientJoinByUsername.php @@ -22,9 +22,19 @@ class ClientJoinByUsername extends \Google\Protobuf\Internal\Message */ private $username = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientJoinByUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientJoinByUsernameResponse.php b/src/Proto/ClientJoinByUsernameResponse.php index b91ea6a..78c9ba3 100644 --- a/src/Proto/ClientJoinByUsernameResponse.php +++ b/src/Proto/ClientJoinByUsernameResponse.php @@ -18,9 +18,18 @@ class ClientJoinByUsernameResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientJoinByUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientMuteRoom.php b/src/Proto/ClientMuteRoom.php index 82329ea..ffa7931 100644 --- a/src/Proto/ClientMuteRoom.php +++ b/src/Proto/ClientMuteRoom.php @@ -26,9 +26,20 @@ class ClientMuteRoom extends \Google\Protobuf\Internal\Message */ private $room_mute = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int $room_mute + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientMuteRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientMuteRoomResponse.php b/src/Proto/ClientMuteRoomResponse.php index 0c9c359..6989730 100644 --- a/src/Proto/ClientMuteRoomResponse.php +++ b/src/Proto/ClientMuteRoomResponse.php @@ -26,9 +26,20 @@ class ClientMuteRoomResponse extends \Google\Protobuf\Internal\Message */ private $room_mute = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int $room_mute + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientMuteRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientPinRoom.php b/src/Proto/ClientPinRoom.php index 707e804..5dceda6 100644 --- a/src/Proto/ClientPinRoom.php +++ b/src/Proto/ClientPinRoom.php @@ -26,9 +26,20 @@ class ClientPinRoom extends \Google\Protobuf\Internal\Message */ private $pin = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type bool $pin + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientPinRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientPinRoomResponse.php b/src/Proto/ClientPinRoomResponse.php index db5b03f..00374e0 100644 --- a/src/Proto/ClientPinRoomResponse.php +++ b/src/Proto/ClientPinRoomResponse.php @@ -26,9 +26,20 @@ class ClientPinRoomResponse extends \Google\Protobuf\Internal\Message */ private $pin_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $pin_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientPinRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientRegisterDevice.php b/src/Proto/ClientRegisterDevice.php index b7ea405..c6adb80 100644 --- a/src/Proto/ClientRegisterDevice.php +++ b/src/Proto/ClientRegisterDevice.php @@ -22,9 +22,19 @@ class ClientRegisterDevice extends \Google\Protobuf\Internal\Message */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientRegisterDevice::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientRegisterDeviceResponse.php b/src/Proto/ClientRegisterDeviceResponse.php index 043b03a..434cf1c 100644 --- a/src/Proto/ClientRegisterDeviceResponse.php +++ b/src/Proto/ClientRegisterDeviceResponse.php @@ -18,9 +18,18 @@ class ClientRegisterDeviceResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientRegisterDevice::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientResolveUsername.php b/src/Proto/ClientResolveUsername.php index 7da0035..74c2b73 100644 --- a/src/Proto/ClientResolveUsername.php +++ b/src/Proto/ClientResolveUsername.php @@ -22,9 +22,19 @@ class ClientResolveUsername extends \Google\Protobuf\Internal\Message */ private $username = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientResolveUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientResolveUsernameResponse.php b/src/Proto/ClientResolveUsernameResponse.php index c2ebca0..c0df0dc 100644 --- a/src/Proto/ClientResolveUsernameResponse.php +++ b/src/Proto/ClientResolveUsernameResponse.php @@ -30,9 +30,21 @@ class ClientResolveUsernameResponse extends \Google\Protobuf\Internal\Message */ private $room = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $type + * @type \Proto\RegisteredUser $user + * @type \Proto\Room $room + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientResolveUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientResolveUsernameResponse/Type.php b/src/Proto/ClientResolveUsernameResponse/Type.php new file mode 100644 index 0000000..8cde823 --- /dev/null +++ b/src/Proto/ClientResolveUsernameResponse/Type.php @@ -0,0 +1,24 @@ +proto.ClientResolveUsernameResponse.Type + */ +class Type +{ + /** + * Generated from protobuf enum USER = 0; + */ + const USER = 0; + /** + * Generated from protobuf enum ROOM = 1; + */ + const ROOM = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\ClientResolveUsernameResponse_Type::class); + diff --git a/src/Proto/ClientResolveUsernameResponse_Type.php b/src/Proto/ClientResolveUsernameResponse_Type.php index 53bd76c..cdd1a2b 100644 --- a/src/Proto/ClientResolveUsernameResponse_Type.php +++ b/src/Proto/ClientResolveUsernameResponse_Type.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ClientResolveUsernameResponse\Type - */ -class ClientResolveUsernameResponse_Type -{ +if (false) { /** - * Generated from protobuf enum USER = 0; + * This class is deprecated. Use Proto\ClientResolveUsernameResponse\Type instead. + * @deprecated */ - const USER = 0; - /** - * Generated from protobuf enum ROOM = 1; - */ - const ROOM = 1; + class ClientResolveUsernameResponse_Type {} } +class_exists(ClientResolveUsernameResponse\Type::class); +@trigger_error('Proto\ClientResolveUsernameResponse_Type is deprecated and will be removed in the next major release. Use Proto\ClientResolveUsernameResponse\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientRoomReport.php b/src/Proto/ClientRoomReport.php index 13bc347..f3a28ae 100644 --- a/src/Proto/ClientRoomReport.php +++ b/src/Proto/ClientRoomReport.php @@ -34,9 +34,22 @@ class ClientRoomReport extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type int $reason + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientRoomReport::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientRoomReport/Reason.php b/src/Proto/ClientRoomReport/Reason.php new file mode 100644 index 0000000..75ba162 --- /dev/null +++ b/src/Proto/ClientRoomReport/Reason.php @@ -0,0 +1,36 @@ +proto.ClientRoomReport.Reason + */ +class Reason +{ + /** + * Generated from protobuf enum OTHER = 0; + */ + const OTHER = 0; + /** + * Generated from protobuf enum SPAM = 1; + */ + const SPAM = 1; + /** + * Generated from protobuf enum PORNOGRAPHY = 2; + */ + const PORNOGRAPHY = 2; + /** + * Generated from protobuf enum VIOLENCE = 3; + */ + const VIOLENCE = 3; + /** + * Generated from protobuf enum ABUSE = 4; + */ + const ABUSE = 4; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Reason::class, \Proto\ClientRoomReport_Reason::class); + diff --git a/src/Proto/ClientRoomReportResponse.php b/src/Proto/ClientRoomReportResponse.php index 92a5ab6..1a7916b 100644 --- a/src/Proto/ClientRoomReportResponse.php +++ b/src/Proto/ClientRoomReportResponse.php @@ -18,9 +18,18 @@ class ClientRoomReportResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientRoomReport::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientRoomReport_Reason.php b/src/Proto/ClientRoomReport_Reason.php index c43b19f..a0e0ff9 100644 --- a/src/Proto/ClientRoomReport_Reason.php +++ b/src/Proto/ClientRoomReport_Reason.php @@ -4,30 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ClientRoomReport\Reason - */ -class ClientRoomReport_Reason -{ +if (false) { /** - * Generated from protobuf enum OTHER = 0; + * This class is deprecated. Use Proto\ClientRoomReport\Reason instead. + * @deprecated */ - const OTHER = 0; - /** - * Generated from protobuf enum SPAM = 1; - */ - const SPAM = 1; - /** - * Generated from protobuf enum PORNOGRAPHY = 2; - */ - const PORNOGRAPHY = 2; - /** - * Generated from protobuf enum VIOLENCE = 3; - */ - const VIOLENCE = 3; - /** - * Generated from protobuf enum ABUSE = 4; - */ - const ABUSE = 4; + class ClientRoomReport_Reason {} } +class_exists(ClientRoomReport\Reason::class); +@trigger_error('Proto\ClientRoomReport_Reason is deprecated and will be removed in the next major release. Use Proto\ClientRoomReport\Reason instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientSearchRoomHistory.php b/src/Proto/ClientSearchRoomHistory.php index 09d7312..c8a7f3d 100644 --- a/src/Proto/ClientSearchRoomHistory.php +++ b/src/Proto/ClientSearchRoomHistory.php @@ -36,9 +36,23 @@ class ClientSearchRoomHistory extends \Google\Protobuf\Internal\Message */ private $offset_message_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int $offset + * Deprecated + * @type int $filter + * @type int|string $offset_message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientSearchRoomHistory::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientSearchRoomHistory/Filter.php b/src/Proto/ClientSearchRoomHistory/Filter.php new file mode 100644 index 0000000..ef7984c --- /dev/null +++ b/src/Proto/ClientSearchRoomHistory/Filter.php @@ -0,0 +1,44 @@ +proto.ClientSearchRoomHistory.Filter + */ +class Filter +{ + /** + * Generated from protobuf enum IMAGE = 0; + */ + const IMAGE = 0; + /** + * Generated from protobuf enum VIDEO = 1; + */ + const VIDEO = 1; + /** + * Generated from protobuf enum AUDIO = 2; + */ + const AUDIO = 2; + /** + * Generated from protobuf enum VOICE = 3; + */ + const VOICE = 3; + /** + * Generated from protobuf enum GIF = 4; + */ + const GIF = 4; + /** + * Generated from protobuf enum FILE = 5; + */ + const FILE = 5; + /** + * Generated from protobuf enum URL = 6; + */ + const URL = 6; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Filter::class, \Proto\ClientSearchRoomHistory_Filter::class); + diff --git a/src/Proto/ClientSearchRoomHistoryResponse.php b/src/Proto/ClientSearchRoomHistoryResponse.php index 6d3b425..7b87e02 100644 --- a/src/Proto/ClientSearchRoomHistoryResponse.php +++ b/src/Proto/ClientSearchRoomHistoryResponse.php @@ -30,9 +30,21 @@ class ClientSearchRoomHistoryResponse extends \Google\Protobuf\Internal\Message */ private $result; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $totalCount + * @type int $notDeletedCount + * @type \Proto\RoomMessage[]|\Google\Protobuf\Internal\RepeatedField $result + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientSearchRoomHistory::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientSearchRoomHistory_Filter.php b/src/Proto/ClientSearchRoomHistory_Filter.php index 5f56b58..93686c8 100644 --- a/src/Proto/ClientSearchRoomHistory_Filter.php +++ b/src/Proto/ClientSearchRoomHistory_Filter.php @@ -4,38 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ClientSearchRoomHistory\Filter - */ -class ClientSearchRoomHistory_Filter -{ +if (false) { /** - * Generated from protobuf enum IMAGE = 0; + * This class is deprecated. Use Proto\ClientSearchRoomHistory\Filter instead. + * @deprecated */ - const IMAGE = 0; - /** - * Generated from protobuf enum VIDEO = 1; - */ - const VIDEO = 1; - /** - * Generated from protobuf enum AUDIO = 2; - */ - const AUDIO = 2; - /** - * Generated from protobuf enum VOICE = 3; - */ - const VOICE = 3; - /** - * Generated from protobuf enum GIF = 4; - */ - const GIF = 4; - /** - * Generated from protobuf enum FILE = 5; - */ - const FILE = 5; - /** - * Generated from protobuf enum URL = 6; - */ - const URL = 6; + class ClientSearchRoomHistory_Filter {} } +class_exists(ClientSearchRoomHistory\Filter::class); +@trigger_error('Proto\ClientSearchRoomHistory_Filter is deprecated and will be removed in the next major release. Use Proto\ClientSearchRoomHistory\Filter instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientSearchUsername.php b/src/Proto/ClientSearchUsername.php index 968a3c7..5fdd753 100644 --- a/src/Proto/ClientSearchUsername.php +++ b/src/Proto/ClientSearchUsername.php @@ -22,9 +22,19 @@ class ClientSearchUsername extends \Google\Protobuf\Internal\Message */ private $query = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $query + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientSearchUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientSearchUsernameResponse.php b/src/Proto/ClientSearchUsernameResponse.php index 55c2525..b937278 100644 --- a/src/Proto/ClientSearchUsernameResponse.php +++ b/src/Proto/ClientSearchUsernameResponse.php @@ -22,9 +22,19 @@ class ClientSearchUsernameResponse extends \Google\Protobuf\Internal\Message */ private $result; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\ClientSearchUsernameResponse\Result[]|\Google\Protobuf\Internal\RepeatedField $result + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientSearchUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getResult() /** * Generated from protobuf field repeated .proto.ClientSearchUsernameResponse.Result result = 2; - * @param \Proto\ClientSearchUsernameResponse_Result[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\ClientSearchUsernameResponse\Result[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResult($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientSearchUsernameResponse_Result::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\ClientSearchUsernameResponse\Result::class); $this->result = $arr; return $this; diff --git a/src/Proto/ClientSearchUsernameResponse/Result.php b/src/Proto/ClientSearchUsernameResponse/Result.php new file mode 100644 index 0000000..9698eff --- /dev/null +++ b/src/Proto/ClientSearchUsernameResponse/Result.php @@ -0,0 +1,142 @@ +proto.ClientSearchUsernameResponse.Result + */ +class Result extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .proto.ClientSearchUsernameResponse.Result.Type type = 1; + */ + private $type = 0; + /** + * Generated from protobuf field bool exact_match = 2; + */ + private $exact_match = false; + /** + * Generated from protobuf field .proto.RegisteredUser user = 3; + */ + private $user = null; + /** + * Generated from protobuf field .proto.Room room = 4; + */ + private $room = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * @type bool $exact_match + * @type \Proto\RegisteredUser $user + * @type \Proto\Room $room + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\ClientSearchUsername::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Generated from protobuf field .proto.ClientSearchUsernameResponse.Result.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Proto\ClientSearchUsernameResponse_Result_Type::class); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field bool exact_match = 2; + * @return bool + */ + public function getExactMatch() + { + return $this->exact_match; + } + + /** + * Generated from protobuf field bool exact_match = 2; + * @param bool $var + * @return $this + */ + public function setExactMatch($var) + { + GPBUtil::checkBool($var); + $this->exact_match = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.RegisteredUser user = 3; + * @return \Proto\RegisteredUser + */ + public function getUser() + { + return $this->user; + } + + /** + * Generated from protobuf field .proto.RegisteredUser user = 3; + * @param \Proto\RegisteredUser $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, \Proto\RegisteredUser::class); + $this->user = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.Room room = 4; + * @return \Proto\Room + */ + public function getRoom() + { + return $this->room; + } + + /** + * Generated from protobuf field .proto.Room room = 4; + * @param \Proto\Room $var + * @return $this + */ + public function setRoom($var) + { + GPBUtil::checkMessage($var, \Proto\Room::class); + $this->room = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Result::class, \Proto\ClientSearchUsernameResponse_Result::class); + diff --git a/src/Proto/ClientSearchUsernameResponse/Result/Type.php b/src/Proto/ClientSearchUsernameResponse/Result/Type.php new file mode 100644 index 0000000..bb1316e --- /dev/null +++ b/src/Proto/ClientSearchUsernameResponse/Result/Type.php @@ -0,0 +1,24 @@ +proto.ClientSearchUsernameResponse.Result.Type + */ +class Type +{ + /** + * Generated from protobuf enum USER = 0; + */ + const USER = 0; + /** + * Generated from protobuf enum ROOM = 1; + */ + const ROOM = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\ClientSearchUsernameResponse_Result_Type::class); + diff --git a/src/Proto/ClientSearchUsernameResponse_Result.php b/src/Proto/ClientSearchUsernameResponse_Result.php index a2fd34c..66b49d0 100644 --- a/src/Proto/ClientSearchUsernameResponse_Result.php +++ b/src/Proto/ClientSearchUsernameResponse_Result.php @@ -4,124 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.ClientSearchUsernameResponse.Result - */ -class ClientSearchUsernameResponse_Result extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .proto.ClientSearchUsernameResponse.Result.Type type = 1; - */ - private $type = 0; - /** - * Generated from protobuf field bool exact_match = 2; - */ - private $exact_match = false; +if (false) { /** - * Generated from protobuf field .proto.RegisteredUser user = 3; + * This class is deprecated. Use Proto\ClientSearchUsernameResponse\Result instead. + * @deprecated */ - private $user = null; - /** - * Generated from protobuf field .proto.Room room = 4; - */ - private $room = null; - - public function __construct() { - \GPBMetadata\ClientSearchUsername::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field .proto.ClientSearchUsernameResponse.Result.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Generated from protobuf field .proto.ClientSearchUsernameResponse.Result.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Proto\ClientSearchUsernameResponse_Result_Type::class); - $this->type = $var; - - return $this; - } - - /** - * Generated from protobuf field bool exact_match = 2; - * @return bool - */ - public function getExactMatch() - { - return $this->exact_match; - } - - /** - * Generated from protobuf field bool exact_match = 2; - * @param bool $var - * @return $this - */ - public function setExactMatch($var) - { - GPBUtil::checkBool($var); - $this->exact_match = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.RegisteredUser user = 3; - * @return \Proto\RegisteredUser - */ - public function getUser() - { - return $this->user; - } - - /** - * Generated from protobuf field .proto.RegisteredUser user = 3; - * @param \Proto\RegisteredUser $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Proto\RegisteredUser::class); - $this->user = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.Room room = 4; - * @return \Proto\Room - */ - public function getRoom() - { - return $this->room; - } - - /** - * Generated from protobuf field .proto.Room room = 4; - * @param \Proto\Room $var - * @return $this - */ - public function setRoom($var) - { - GPBUtil::checkMessage($var, \Proto\Room::class); - $this->room = $var; - - return $this; - } - + class ClientSearchUsernameResponse_Result {} } +class_exists(ClientSearchUsernameResponse\Result::class); +@trigger_error('Proto\ClientSearchUsernameResponse_Result is deprecated and will be removed in the next major release. Use Proto\ClientSearchUsernameResponse\Result instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientSearchUsernameResponse_Result_Type.php b/src/Proto/ClientSearchUsernameResponse_Result_Type.php index 445d132..9eb7ca3 100644 --- a/src/Proto/ClientSearchUsernameResponse_Result_Type.php +++ b/src/Proto/ClientSearchUsernameResponse_Result_Type.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ClientSearchUsernameResponse\Result\Type - */ -class ClientSearchUsernameResponse_Result_Type -{ +if (false) { /** - * Generated from protobuf enum USER = 0; + * This class is deprecated. Use Proto\ClientSearchUsernameResponse\Result\Type instead. + * @deprecated */ - const USER = 0; - /** - * Generated from protobuf enum ROOM = 1; - */ - const ROOM = 1; + class ClientSearchUsernameResponse_Result_Type {} } +class_exists(ClientSearchUsernameResponse\Result\Type::class); +@trigger_error('Proto\ClientSearchUsernameResponse_Result_Type is deprecated and will be removed in the next major release. Use Proto\ClientSearchUsernameResponse\Result\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/ClientSubscribeToRoom.php b/src/Proto/ClientSubscribeToRoom.php index 661d6e0..e40ebf7 100644 --- a/src/Proto/ClientSubscribeToRoom.php +++ b/src/Proto/ClientSubscribeToRoom.php @@ -22,9 +22,19 @@ class ClientSubscribeToRoom extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientSubscribeToRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientSubscribeToRoomResponse.php b/src/Proto/ClientSubscribeToRoomResponse.php index efc6d51..c7e5987 100644 --- a/src/Proto/ClientSubscribeToRoomResponse.php +++ b/src/Proto/ClientSubscribeToRoomResponse.php @@ -18,9 +18,18 @@ class ClientSubscribeToRoomResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientSubscribeToRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientUnsubscribeFromRoom.php b/src/Proto/ClientUnsubscribeFromRoom.php index bbc5e6e..cb10a25 100644 --- a/src/Proto/ClientUnsubscribeFromRoom.php +++ b/src/Proto/ClientUnsubscribeFromRoom.php @@ -22,9 +22,19 @@ class ClientUnsubscribeFromRoom extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientUnsubscribeFromRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ClientUnsubscribeFromRoomResponse.php b/src/Proto/ClientUnsubscribeFromRoomResponse.php index 9eb5e63..0a8d54c 100644 --- a/src/Proto/ClientUnsubscribeFromRoomResponse.php +++ b/src/Proto/ClientUnsubscribeFromRoomResponse.php @@ -18,9 +18,18 @@ class ClientUnsubscribeFromRoomResponse extends \Google\Protobuf\Internal\Messag */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ClientUnsubscribeFromRoom::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ConnectionSecuringResponse.php b/src/Proto/ConnectionSecuringResponse.php index d90ee16..5164c5b 100644 --- a/src/Proto/ConnectionSecuringResponse.php +++ b/src/Proto/ConnectionSecuringResponse.php @@ -38,9 +38,23 @@ class ConnectionSecuringResponse extends \Google\Protobuf\Internal\Message */ private $secondary_chunk_size = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $public_key + * @type int $symmetric_key_length + * @type int $heartbeat_interval + * @type string $primary_node_name + * @type int $secondary_chunk_size + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ConnectionSecuring::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ConnectionSymmetricKey.php b/src/Proto/ConnectionSymmetricKey.php index e45b997..33e2ad0 100644 --- a/src/Proto/ConnectionSymmetricKey.php +++ b/src/Proto/ConnectionSymmetricKey.php @@ -26,9 +26,20 @@ class ConnectionSymmetricKey extends \Google\Protobuf\Internal\Message */ private $version = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $symmetric_key + * @type int $version + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ConnectionSecuring::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ConnectionSymmetricKeyResponse.php b/src/Proto/ConnectionSymmetricKeyResponse.php index c41b128..7c05bda 100644 --- a/src/Proto/ConnectionSymmetricKeyResponse.php +++ b/src/Proto/ConnectionSymmetricKeyResponse.php @@ -34,9 +34,22 @@ class ConnectionSymmetricKeyResponse extends \Google\Protobuf\Internal\Message */ private $security_issue = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $status + * @type string $symmetric_method + * @type int $symmetric_iv_size + * @type bool $security_issue + * } + */ + public function __construct($data = NULL) { \GPBMetadata\ConnectionSecuring::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/ConnectionSymmetricKeyResponse/Status.php b/src/Proto/ConnectionSymmetricKeyResponse/Status.php new file mode 100644 index 0000000..653ff1f --- /dev/null +++ b/src/Proto/ConnectionSymmetricKeyResponse/Status.php @@ -0,0 +1,24 @@ +proto.ConnectionSymmetricKeyResponse.Status + */ +class Status +{ + /** + * Generated from protobuf enum REJECTED = 0; + */ + const REJECTED = 0; + /** + * Generated from protobuf enum ACCEPTED = 1; + */ + const ACCEPTED = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\ConnectionSymmetricKeyResponse_Status::class); + diff --git a/src/Proto/ConnectionSymmetricKeyResponse_Status.php b/src/Proto/ConnectionSymmetricKeyResponse_Status.php index 6fa92a9..2f719a6 100644 --- a/src/Proto/ConnectionSymmetricKeyResponse_Status.php +++ b/src/Proto/ConnectionSymmetricKeyResponse_Status.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\ConnectionSymmetricKeyResponse\Status - */ -class ConnectionSymmetricKeyResponse_Status -{ +if (false) { /** - * Generated from protobuf enum REJECTED = 0; + * This class is deprecated. Use Proto\ConnectionSymmetricKeyResponse\Status instead. + * @deprecated */ - const REJECTED = 0; - /** - * Generated from protobuf enum ACCEPTED = 1; - */ - const ACCEPTED = 1; + class ConnectionSymmetricKeyResponse_Status {} } +class_exists(ConnectionSymmetricKeyResponse\Status::class); +@trigger_error('Proto\ConnectionSymmetricKeyResponse_Status is deprecated and will be removed in the next major release. Use Proto\ConnectionSymmetricKeyResponse\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/Device.php b/src/Proto/Device.php index 12239b3..cc94ae5 100644 --- a/src/Proto/Device.php +++ b/src/Proto/Device.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\Device + * Protobuf type proto.Device */ class Device { diff --git a/src/Proto/ErrorResponse.php b/src/Proto/ErrorResponse.php index db80b92..3ee97f3 100644 --- a/src/Proto/ErrorResponse.php +++ b/src/Proto/ErrorResponse.php @@ -34,9 +34,22 @@ class ErrorResponse extends \Google\Protobuf\Internal\Message */ private $message = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $major_code + * @type int $minor_code + * @type int $wait + * @type string $message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\Error::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/File.php b/src/Proto/File.php index bd37e51..0178341 100644 --- a/src/Proto/File.php +++ b/src/Proto/File.php @@ -62,9 +62,29 @@ class File extends \Google\Protobuf\Internal\Message */ private $public_url = ''; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $token + * @type string $name + * @type int|string $size + * @type \Proto\Thumbnail $large_thumbnail + * @type \Proto\Thumbnail $small_thumbnail + * @type \Proto\Thumbnail $waveform_thumbnail + * @type int $width + * @type int $height + * @type float $duration + * @type string $cache_id + * @type string $mime + * @type string $public_url + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/FileDownload.php b/src/Proto/FileDownload.php index 642b3b1..fcb9274 100644 --- a/src/Proto/FileDownload.php +++ b/src/Proto/FileDownload.php @@ -34,9 +34,22 @@ class FileDownload extends \Google\Protobuf\Internal\Message */ private $selector = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * @type int|string $offset + * @type int $max_limit + * @type int $selector + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileDownload::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileDownload/Selector.php b/src/Proto/FileDownload/Selector.php new file mode 100644 index 0000000..1090810 --- /dev/null +++ b/src/Proto/FileDownload/Selector.php @@ -0,0 +1,32 @@ +proto.FileDownload.Selector + */ +class Selector +{ + /** + * Generated from protobuf enum FILE = 0; + */ + const FILE = 0; + /** + * Generated from protobuf enum SMALL_THUMBNAIL = 1; + */ + const SMALL_THUMBNAIL = 1; + /** + * Generated from protobuf enum LARGE_THUMBNAIL = 2; + */ + const LARGE_THUMBNAIL = 2; + /** + * Generated from protobuf enum WAVEFORM_THUMBNAIL = 3; + */ + const WAVEFORM_THUMBNAIL = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Selector::class, \Proto\FileDownload_Selector::class); + diff --git a/src/Proto/FileDownloadResponse.php b/src/Proto/FileDownloadResponse.php index 6e0c2bb..08a688c 100644 --- a/src/Proto/FileDownloadResponse.php +++ b/src/Proto/FileDownloadResponse.php @@ -22,9 +22,19 @@ class FileDownloadResponse extends \Google\Protobuf\Internal\Message */ private $bytes = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $bytes + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileDownload::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileDownload_Selector.php b/src/Proto/FileDownload_Selector.php index f45ffbe..5877320 100644 --- a/src/Proto/FileDownload_Selector.php +++ b/src/Proto/FileDownload_Selector.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\FileDownload\Selector - */ -class FileDownload_Selector -{ +if (false) { /** - * Generated from protobuf enum FILE = 0; + * This class is deprecated. Use Proto\FileDownload\Selector instead. + * @deprecated */ - const FILE = 0; - /** - * Generated from protobuf enum SMALL_THUMBNAIL = 1; - */ - const SMALL_THUMBNAIL = 1; - /** - * Generated from protobuf enum LARGE_THUMBNAIL = 2; - */ - const LARGE_THUMBNAIL = 2; - /** - * Generated from protobuf enum WAVEFORM_THUMBNAIL = 3; - */ - const WAVEFORM_THUMBNAIL = 3; + class FileDownload_Selector {} } +class_exists(FileDownload\Selector::class); +@trigger_error('Proto\FileDownload_Selector is deprecated and will be removed in the next major release. Use Proto\FileDownload\Selector instead', E_USER_DEPRECATED); diff --git a/src/Proto/FileInfo.php b/src/Proto/FileInfo.php index 1030ad2..b904d8c 100644 --- a/src/Proto/FileInfo.php +++ b/src/Proto/FileInfo.php @@ -22,9 +22,19 @@ class FileInfo extends \Google\Protobuf\Internal\Message */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileInfo::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileInfoResponse.php b/src/Proto/FileInfoResponse.php index 2778df1..504bd6c 100644 --- a/src/Proto/FileInfoResponse.php +++ b/src/Proto/FileInfoResponse.php @@ -22,9 +22,19 @@ class FileInfoResponse extends \Google\Protobuf\Internal\Message */ private $file = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\File $file + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileInfo::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUpload.php b/src/Proto/FileUpload.php index a508769..fe8eca7 100644 --- a/src/Proto/FileUpload.php +++ b/src/Proto/FileUpload.php @@ -30,9 +30,21 @@ class FileUpload extends \Google\Protobuf\Internal\Message */ private $bytes = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * @type int|string $offset + * @type string $bytes + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUpload::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadInit.php b/src/Proto/FileUploadInit.php index ae39c27..8ccc13a 100644 --- a/src/Proto/FileUploadInit.php +++ b/src/Proto/FileUploadInit.php @@ -38,9 +38,23 @@ class FileUploadInit extends \Google\Protobuf\Internal\Message */ private $file_name = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $first_bytes + * @type string $last_bytes + * @type int|string $size + * @type string $file_hash + * @type string $file_name + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUploadInit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadInitResponse.php b/src/Proto/FileUploadInitResponse.php index be4afd5..762566f 100644 --- a/src/Proto/FileUploadInitResponse.php +++ b/src/Proto/FileUploadInitResponse.php @@ -34,9 +34,22 @@ class FileUploadInitResponse extends \Google\Protobuf\Internal\Message */ private $limit = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $token + * @type float $progress + * @type int|string $offset + * @type int $limit + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUploadInit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadOption.php b/src/Proto/FileUploadOption.php index da28027..57762ae 100644 --- a/src/Proto/FileUploadOption.php +++ b/src/Proto/FileUploadOption.php @@ -22,9 +22,19 @@ class FileUploadOption extends \Google\Protobuf\Internal\Message */ private $size = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $size + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUploadOption::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadOptionResponse.php b/src/Proto/FileUploadOptionResponse.php index 3990613..eaeea12 100644 --- a/src/Proto/FileUploadOptionResponse.php +++ b/src/Proto/FileUploadOptionResponse.php @@ -30,9 +30,21 @@ class FileUploadOptionResponse extends \Google\Protobuf\Internal\Message */ private $max_connection = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $first_bytes_limit + * @type int $last_bytes_limit + * @type int $max_connection + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUploadOption::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadResponse.php b/src/Proto/FileUploadResponse.php index d1b6722..a03d221 100644 --- a/src/Proto/FileUploadResponse.php +++ b/src/Proto/FileUploadResponse.php @@ -30,9 +30,21 @@ class FileUploadResponse extends \Google\Protobuf\Internal\Message */ private $next_limit = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type float $progress + * @type int|string $next_offset + * @type int $next_limit + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUpload::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadStatus.php b/src/Proto/FileUploadStatus.php index 12eb07e..a780900 100644 --- a/src/Proto/FileUploadStatus.php +++ b/src/Proto/FileUploadStatus.php @@ -22,9 +22,19 @@ class FileUploadStatus extends \Google\Protobuf\Internal\Message */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUploadStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadStatusResponse.php b/src/Proto/FileUploadStatusResponse.php index f1d68ab..fd97484 100644 --- a/src/Proto/FileUploadStatusResponse.php +++ b/src/Proto/FileUploadStatusResponse.php @@ -30,9 +30,21 @@ class FileUploadStatusResponse extends \Google\Protobuf\Internal\Message */ private $recheck_delay_ms = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $status + * @type float $progress + * @type int $recheck_delay_ms + * } + */ + public function __construct($data = NULL) { \GPBMetadata\FileUploadStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/FileUploadStatusResponse/Status.php b/src/Proto/FileUploadStatusResponse/Status.php new file mode 100644 index 0000000..436a0ae --- /dev/null +++ b/src/Proto/FileUploadStatusResponse/Status.php @@ -0,0 +1,32 @@ +proto.FileUploadStatusResponse.Status + */ +class Status +{ + /** + * Generated from protobuf enum UPLOADING = 0; + */ + const UPLOADING = 0; + /** + * Generated from protobuf enum PROCESSING = 1; + */ + const PROCESSING = 1; + /** + * Generated from protobuf enum PROCESSED = 2; + */ + const PROCESSED = 2; + /** + * Generated from protobuf enum CORRUPTED = 3; + */ + const CORRUPTED = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\FileUploadStatusResponse_Status::class); + diff --git a/src/Proto/FileUploadStatusResponse_Status.php b/src/Proto/FileUploadStatusResponse_Status.php index 064a355..07ab283 100644 --- a/src/Proto/FileUploadStatusResponse_Status.php +++ b/src/Proto/FileUploadStatusResponse_Status.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\FileUploadStatusResponse\Status - */ -class FileUploadStatusResponse_Status -{ +if (false) { /** - * Generated from protobuf enum UPLOADING = 0; + * This class is deprecated. Use Proto\FileUploadStatusResponse\Status instead. + * @deprecated */ - const UPLOADING = 0; - /** - * Generated from protobuf enum PROCESSING = 1; - */ - const PROCESSING = 1; - /** - * Generated from protobuf enum PROCESSED = 2; - */ - const PROCESSED = 2; - /** - * Generated from protobuf enum CORRUPTED = 3; - */ - const CORRUPTED = 3; + class FileUploadStatusResponse_Status {} } +class_exists(FileUploadStatusResponse\Status::class); +@trigger_error('Proto\FileUploadStatusResponse_Status is deprecated and will be removed in the next major release. Use Proto\FileUploadStatusResponse\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/Gender.php b/src/Proto/Gender.php index 8a26728..4c4a534 100644 --- a/src/Proto/Gender.php +++ b/src/Proto/Gender.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\Gender + * Protobuf type proto.Gender */ class Gender { diff --git a/src/Proto/GeoGetComment.php b/src/Proto/GeoGetComment.php index 72143db..d631f02 100644 --- a/src/Proto/GeoGetComment.php +++ b/src/Proto/GeoGetComment.php @@ -22,9 +22,19 @@ class GeoGetComment extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetComment::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoGetCommentResponse.php b/src/Proto/GeoGetCommentResponse.php index fe29955..3fed011 100644 --- a/src/Proto/GeoGetCommentResponse.php +++ b/src/Proto/GeoGetCommentResponse.php @@ -22,9 +22,19 @@ class GeoGetCommentResponse extends \Google\Protobuf\Internal\Message */ private $comment = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $comment + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetComment::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoGetConfiguration.php b/src/Proto/GeoGetConfiguration.php index 33eccf6..ab087ad 100644 --- a/src/Proto/GeoGetConfiguration.php +++ b/src/Proto/GeoGetConfiguration.php @@ -18,9 +18,18 @@ class GeoGetConfiguration extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetConfiguration::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoGetConfigurationResponse.php b/src/Proto/GeoGetConfigurationResponse.php index 6f05a69..6c2ddcc 100644 --- a/src/Proto/GeoGetConfigurationResponse.php +++ b/src/Proto/GeoGetConfigurationResponse.php @@ -26,9 +26,20 @@ class GeoGetConfigurationResponse extends \Google\Protobuf\Internal\Message */ private $cache_id = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\GeoGetConfigurationResponse\TileServer[]|\Google\Protobuf\Internal\RepeatedField $tile_server + * @type string $cache_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetConfiguration::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -64,12 +75,12 @@ public function getTileServer() /** * Generated from protobuf field repeated .proto.GeoGetConfigurationResponse.TileServer tile_server = 2; - * @param \Proto\GeoGetConfigurationResponse_TileServer[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\GeoGetConfigurationResponse\TileServer[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTileServer($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GeoGetConfigurationResponse_TileServer::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GeoGetConfigurationResponse\TileServer::class); $this->tile_server = $arr; return $this; diff --git a/src/Proto/GeoGetConfigurationResponse/TileServer.php b/src/Proto/GeoGetConfigurationResponse/TileServer.php new file mode 100644 index 0000000..084d126 --- /dev/null +++ b/src/Proto/GeoGetConfigurationResponse/TileServer.php @@ -0,0 +1,61 @@ +proto.GeoGetConfigurationResponse.TileServer + */ +class TileServer extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string base_url = 1; + */ + private $base_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $base_url + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\GeoGetConfiguration::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string base_url = 1; + * @return string + */ + public function getBaseUrl() + { + return $this->base_url; + } + + /** + * Generated from protobuf field string base_url = 1; + * @param string $var + * @return $this + */ + public function setBaseUrl($var) + { + GPBUtil::checkString($var, True); + $this->base_url = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TileServer::class, \Proto\GeoGetConfigurationResponse_TileServer::class); + diff --git a/src/Proto/GeoGetConfigurationResponse_TileServer.php b/src/Proto/GeoGetConfigurationResponse_TileServer.php index e247db8..4f80aac 100644 --- a/src/Proto/GeoGetConfigurationResponse_TileServer.php +++ b/src/Proto/GeoGetConfigurationResponse_TileServer.php @@ -4,46 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.GeoGetConfigurationResponse.TileServer - */ -class GeoGetConfigurationResponse_TileServer extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string base_url = 1; - */ - private $base_url = ''; - - public function __construct() { - \GPBMetadata\GeoGetConfiguration::initOnce(); - parent::__construct(); - } - +if (false) { /** - * Generated from protobuf field string base_url = 1; - * @return string + * This class is deprecated. Use Proto\GeoGetConfigurationResponse\TileServer instead. + * @deprecated */ - public function getBaseUrl() - { - return $this->base_url; - } - - /** - * Generated from protobuf field string base_url = 1; - * @param string $var - * @return $this - */ - public function setBaseUrl($var) - { - GPBUtil::checkString($var, True); - $this->base_url = $var; - - return $this; - } - + class GeoGetConfigurationResponse_TileServer {} } +class_exists(GeoGetConfigurationResponse\TileServer::class); +@trigger_error('Proto\GeoGetConfigurationResponse_TileServer is deprecated and will be removed in the next major release. Use Proto\GeoGetConfigurationResponse\TileServer instead', E_USER_DEPRECATED); diff --git a/src/Proto/GeoGetNearbyCoordinate.php b/src/Proto/GeoGetNearbyCoordinate.php index b41f344..88281e8 100644 --- a/src/Proto/GeoGetNearbyCoordinate.php +++ b/src/Proto/GeoGetNearbyCoordinate.php @@ -26,9 +26,20 @@ class GeoGetNearbyCoordinate extends \Google\Protobuf\Internal\Message */ private $lon = 0.0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type float $lat + * @type float $lon + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetNearbyCoordinate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoGetNearbyCoordinateResponse.php b/src/Proto/GeoGetNearbyCoordinateResponse.php index 147baa9..6401fd7 100644 --- a/src/Proto/GeoGetNearbyCoordinateResponse.php +++ b/src/Proto/GeoGetNearbyCoordinateResponse.php @@ -22,9 +22,19 @@ class GeoGetNearbyCoordinateResponse extends \Google\Protobuf\Internal\Message */ private $result; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\GeoGetNearbyCoordinateResponse\Result[]|\Google\Protobuf\Internal\RepeatedField $result + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetNearbyCoordinate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getResult() /** * Generated from protobuf field repeated .proto.GeoGetNearbyCoordinateResponse.Result result = 2; - * @param \Proto\GeoGetNearbyCoordinateResponse_Result[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\GeoGetNearbyCoordinateResponse\Result[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResult($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GeoGetNearbyCoordinateResponse_Result::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GeoGetNearbyCoordinateResponse\Result::class); $this->result = $arr; return $this; diff --git a/src/Proto/GeoGetNearbyCoordinateResponse/Result.php b/src/Proto/GeoGetNearbyCoordinateResponse/Result.php new file mode 100644 index 0000000..0ce3fbc --- /dev/null +++ b/src/Proto/GeoGetNearbyCoordinateResponse/Result.php @@ -0,0 +1,142 @@ +proto.GeoGetNearbyCoordinateResponse.Result + */ +class Result extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 user_id = 1; + */ + private $user_id = 0; + /** + * Generated from protobuf field bool has_comment = 2; + */ + private $has_comment = false; + /** + * Generated from protobuf field double lat = 3; + */ + private $lat = 0.0; + /** + * Generated from protobuf field double lon = 4; + */ + private $lon = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $user_id + * @type bool $has_comment + * @type float $lat + * @type float $lon + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\GeoGetNearbyCoordinate::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @return int|string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->user_id = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_comment = 2; + * @return bool + */ + public function getHasComment() + { + return $this->has_comment; + } + + /** + * Generated from protobuf field bool has_comment = 2; + * @param bool $var + * @return $this + */ + public function setHasComment($var) + { + GPBUtil::checkBool($var); + $this->has_comment = $var; + + return $this; + } + + /** + * Generated from protobuf field double lat = 3; + * @return float + */ + public function getLat() + { + return $this->lat; + } + + /** + * Generated from protobuf field double lat = 3; + * @param float $var + * @return $this + */ + public function setLat($var) + { + GPBUtil::checkDouble($var); + $this->lat = $var; + + return $this; + } + + /** + * Generated from protobuf field double lon = 4; + * @return float + */ + public function getLon() + { + return $this->lon; + } + + /** + * Generated from protobuf field double lon = 4; + * @param float $var + * @return $this + */ + public function setLon($var) + { + GPBUtil::checkDouble($var); + $this->lon = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Result::class, \Proto\GeoGetNearbyCoordinateResponse_Result::class); + diff --git a/src/Proto/GeoGetNearbyCoordinateResponse_Result.php b/src/Proto/GeoGetNearbyCoordinateResponse_Result.php index 5e87767..77ebf32 100644 --- a/src/Proto/GeoGetNearbyCoordinateResponse_Result.php +++ b/src/Proto/GeoGetNearbyCoordinateResponse_Result.php @@ -4,124 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.GeoGetNearbyCoordinateResponse.Result - */ -class GeoGetNearbyCoordinateResponse_Result extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 user_id = 1; - */ - private $user_id = 0; - /** - * Generated from protobuf field bool has_comment = 2; - */ - private $has_comment = false; +if (false) { /** - * Generated from protobuf field double lat = 3; + * This class is deprecated. Use Proto\GeoGetNearbyCoordinateResponse\Result instead. + * @deprecated */ - private $lat = 0.0; - /** - * Generated from protobuf field double lon = 4; - */ - private $lon = 0.0; - - public function __construct() { - \GPBMetadata\GeoGetNearbyCoordinate::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @return int|string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @param int|string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->user_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bool has_comment = 2; - * @return bool - */ - public function getHasComment() - { - return $this->has_comment; - } - - /** - * Generated from protobuf field bool has_comment = 2; - * @param bool $var - * @return $this - */ - public function setHasComment($var) - { - GPBUtil::checkBool($var); - $this->has_comment = $var; - - return $this; - } - - /** - * Generated from protobuf field double lat = 3; - * @return float - */ - public function getLat() - { - return $this->lat; - } - - /** - * Generated from protobuf field double lat = 3; - * @param float $var - * @return $this - */ - public function setLat($var) - { - GPBUtil::checkDouble($var); - $this->lat = $var; - - return $this; - } - - /** - * Generated from protobuf field double lon = 4; - * @return float - */ - public function getLon() - { - return $this->lon; - } - - /** - * Generated from protobuf field double lon = 4; - * @param float $var - * @return $this - */ - public function setLon($var) - { - GPBUtil::checkDouble($var); - $this->lon = $var; - - return $this; - } - + class GeoGetNearbyCoordinateResponse_Result {} } +class_exists(GeoGetNearbyCoordinateResponse\Result::class); +@trigger_error('Proto\GeoGetNearbyCoordinateResponse_Result is deprecated and will be removed in the next major release. Use Proto\GeoGetNearbyCoordinateResponse\Result instead', E_USER_DEPRECATED); diff --git a/src/Proto/GeoGetNearbyDistance.php b/src/Proto/GeoGetNearbyDistance.php index e40773c..91c4338 100644 --- a/src/Proto/GeoGetNearbyDistance.php +++ b/src/Proto/GeoGetNearbyDistance.php @@ -26,9 +26,20 @@ class GeoGetNearbyDistance extends \Google\Protobuf\Internal\Message */ private $lon = 0.0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type float $lat + * @type float $lon + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetNearbyDistance::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoGetNearbyDistanceResponse.php b/src/Proto/GeoGetNearbyDistanceResponse.php index d32135e..770327c 100644 --- a/src/Proto/GeoGetNearbyDistanceResponse.php +++ b/src/Proto/GeoGetNearbyDistanceResponse.php @@ -22,9 +22,19 @@ class GeoGetNearbyDistanceResponse extends \Google\Protobuf\Internal\Message */ private $result; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\GeoGetNearbyDistanceResponse\Result[]|\Google\Protobuf\Internal\RepeatedField $result + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetNearbyDistance::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getResult() /** * Generated from protobuf field repeated .proto.GeoGetNearbyDistanceResponse.Result result = 2; - * @param \Proto\GeoGetNearbyDistanceResponse_Result[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\GeoGetNearbyDistanceResponse\Result[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResult($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GeoGetNearbyDistanceResponse_Result::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GeoGetNearbyDistanceResponse\Result::class); $this->result = $arr; return $this; diff --git a/src/Proto/GeoGetNearbyDistanceResponse/Result.php b/src/Proto/GeoGetNearbyDistanceResponse/Result.php new file mode 100644 index 0000000..f09c0f1 --- /dev/null +++ b/src/Proto/GeoGetNearbyDistanceResponse/Result.php @@ -0,0 +1,115 @@ +proto.GeoGetNearbyDistanceResponse.Result + */ +class Result extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 user_id = 1; + */ + private $user_id = 0; + /** + * Generated from protobuf field bool has_comment = 2; + */ + private $has_comment = false; + /** + * Generated from protobuf field uint32 distance = 3; + */ + private $distance = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $user_id + * @type bool $has_comment + * @type int $distance + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\GeoGetNearbyDistance::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @return int|string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->user_id = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_comment = 2; + * @return bool + */ + public function getHasComment() + { + return $this->has_comment; + } + + /** + * Generated from protobuf field bool has_comment = 2; + * @param bool $var + * @return $this + */ + public function setHasComment($var) + { + GPBUtil::checkBool($var); + $this->has_comment = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 distance = 3; + * @return int + */ + public function getDistance() + { + return $this->distance; + } + + /** + * Generated from protobuf field uint32 distance = 3; + * @param int $var + * @return $this + */ + public function setDistance($var) + { + GPBUtil::checkUint32($var); + $this->distance = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Result::class, \Proto\GeoGetNearbyDistanceResponse_Result::class); + diff --git a/src/Proto/GeoGetNearbyDistanceResponse_Result.php b/src/Proto/GeoGetNearbyDistanceResponse_Result.php index 5043471..2e5c142 100644 --- a/src/Proto/GeoGetNearbyDistanceResponse_Result.php +++ b/src/Proto/GeoGetNearbyDistanceResponse_Result.php @@ -4,98 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.GeoGetNearbyDistanceResponse.Result - */ -class GeoGetNearbyDistanceResponse_Result extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 user_id = 1; - */ - private $user_id = 0; - /** - * Generated from protobuf field bool has_comment = 2; - */ - private $has_comment = false; - /** - * Generated from protobuf field uint32 distance = 3; - */ - private $distance = 0; - - public function __construct() { - \GPBMetadata\GeoGetNearbyDistance::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @return int|string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @param int|string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->user_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bool has_comment = 2; - * @return bool - */ - public function getHasComment() - { - return $this->has_comment; - } - - /** - * Generated from protobuf field bool has_comment = 2; - * @param bool $var - * @return $this - */ - public function setHasComment($var) - { - GPBUtil::checkBool($var); - $this->has_comment = $var; - - return $this; - } - +if (false) { /** - * Generated from protobuf field uint32 distance = 3; - * @return int + * This class is deprecated. Use Proto\GeoGetNearbyDistanceResponse\Result instead. + * @deprecated */ - public function getDistance() - { - return $this->distance; - } - - /** - * Generated from protobuf field uint32 distance = 3; - * @param int $var - * @return $this - */ - public function setDistance($var) - { - GPBUtil::checkUint32($var); - $this->distance = $var; - - return $this; - } - + class GeoGetNearbyDistanceResponse_Result {} } +class_exists(GeoGetNearbyDistanceResponse\Result::class); +@trigger_error('Proto\GeoGetNearbyDistanceResponse_Result is deprecated and will be removed in the next major release. Use Proto\GeoGetNearbyDistanceResponse\Result instead', E_USER_DEPRECATED); diff --git a/src/Proto/GeoGetRegisterStatus.php b/src/Proto/GeoGetRegisterStatus.php index dc00c0a..4a6e0a2 100644 --- a/src/Proto/GeoGetRegisterStatus.php +++ b/src/Proto/GeoGetRegisterStatus.php @@ -18,9 +18,18 @@ class GeoGetRegisterStatus extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetRegisterStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoGetRegisterStatusResponse.php b/src/Proto/GeoGetRegisterStatusResponse.php index 099948d..255d007 100644 --- a/src/Proto/GeoGetRegisterStatusResponse.php +++ b/src/Proto/GeoGetRegisterStatusResponse.php @@ -22,9 +22,19 @@ class GeoGetRegisterStatusResponse extends \Google\Protobuf\Internal\Message */ private $enable = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type bool $enable + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoGetRegisterStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoRegister.php b/src/Proto/GeoRegister.php index b4fe872..db30626 100644 --- a/src/Proto/GeoRegister.php +++ b/src/Proto/GeoRegister.php @@ -22,9 +22,19 @@ class GeoRegister extends \Google\Protobuf\Internal\Message */ private $enable = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type bool $enable + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoRegister::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoRegisterResponse.php b/src/Proto/GeoRegisterResponse.php index ce1bb7c..96da008 100644 --- a/src/Proto/GeoRegisterResponse.php +++ b/src/Proto/GeoRegisterResponse.php @@ -22,9 +22,19 @@ class GeoRegisterResponse extends \Google\Protobuf\Internal\Message */ private $enable = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type bool $enable + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoRegister::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoUpdateComment.php b/src/Proto/GeoUpdateComment.php index 3ec85af..3f921aa 100644 --- a/src/Proto/GeoUpdateComment.php +++ b/src/Proto/GeoUpdateComment.php @@ -22,9 +22,19 @@ class GeoUpdateComment extends \Google\Protobuf\Internal\Message */ private $comment = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $comment + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoUpdateComment::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoUpdateCommentResponse.php b/src/Proto/GeoUpdateCommentResponse.php index 6ef825c..7db9ab2 100644 --- a/src/Proto/GeoUpdateCommentResponse.php +++ b/src/Proto/GeoUpdateCommentResponse.php @@ -22,9 +22,19 @@ class GeoUpdateCommentResponse extends \Google\Protobuf\Internal\Message */ private $comment = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $comment + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoUpdateComment::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoUpdatePosition.php b/src/Proto/GeoUpdatePosition.php index 21703ef..b6adf70 100644 --- a/src/Proto/GeoUpdatePosition.php +++ b/src/Proto/GeoUpdatePosition.php @@ -26,9 +26,20 @@ class GeoUpdatePosition extends \Google\Protobuf\Internal\Message */ private $lon = 0.0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type float $lat + * @type float $lon + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoUpdatePosition::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GeoUpdatePositionResponse.php b/src/Proto/GeoUpdatePositionResponse.php index 151ed4c..b7ad8dc 100644 --- a/src/Proto/GeoUpdatePositionResponse.php +++ b/src/Proto/GeoUpdatePositionResponse.php @@ -18,9 +18,18 @@ class GeoUpdatePositionResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GeoUpdatePosition::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAddAdmin.php b/src/Proto/GroupAddAdmin.php index 8796148..f837fa3 100644 --- a/src/Proto/GroupAddAdmin.php +++ b/src/Proto/GroupAddAdmin.php @@ -26,9 +26,20 @@ class GroupAddAdmin extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAddAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAddAdminResponse.php b/src/Proto/GroupAddAdminResponse.php index eb0523e..d8b103c 100644 --- a/src/Proto/GroupAddAdminResponse.php +++ b/src/Proto/GroupAddAdminResponse.php @@ -26,9 +26,20 @@ class GroupAddAdminResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAddAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAddMember.php b/src/Proto/GroupAddMember.php index 756d55f..976a2c4 100644 --- a/src/Proto/GroupAddMember.php +++ b/src/Proto/GroupAddMember.php @@ -26,9 +26,20 @@ class GroupAddMember extends \Google\Protobuf\Internal\Message */ private $member = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type \Proto\GroupAddMember\Member $member + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAddMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -77,7 +88,7 @@ public function setRoomId($var) /** * Generated from protobuf field .proto.GroupAddMember.Member member = 3; - * @return \Proto\GroupAddMember_Member + * @return \Proto\GroupAddMember\Member */ public function getMember() { @@ -86,7 +97,7 @@ public function getMember() /** * Generated from protobuf field .proto.GroupAddMember.Member member = 3; - * @param \Proto\GroupAddMember_Member $var + * @param \Proto\GroupAddMember\Member $var * @return $this */ public function setMember($var) diff --git a/src/Proto/GroupAddMember/Member.php b/src/Proto/GroupAddMember/Member.php new file mode 100644 index 0000000..e6130f7 --- /dev/null +++ b/src/Proto/GroupAddMember/Member.php @@ -0,0 +1,88 @@ +proto.GroupAddMember.Member + */ +class Member extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 user_id = 1; + */ + private $user_id = 0; + /** + * Generated from protobuf field uint64 start_message_id = 2; + */ + private $start_message_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $user_id + * @type int|string $start_message_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\GroupAddMember::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @return int|string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->user_id = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 start_message_id = 2; + * @return int|string + */ + public function getStartMessageId() + { + return $this->start_message_id; + } + + /** + * Generated from protobuf field uint64 start_message_id = 2; + * @param int|string $var + * @return $this + */ + public function setStartMessageId($var) + { + GPBUtil::checkUint64($var); + $this->start_message_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Member::class, \Proto\GroupAddMember_Member::class); + diff --git a/src/Proto/GroupAddMemberResponse.php b/src/Proto/GroupAddMemberResponse.php index 93076ec..db35a55 100644 --- a/src/Proto/GroupAddMemberResponse.php +++ b/src/Proto/GroupAddMemberResponse.php @@ -30,9 +30,21 @@ class GroupAddMemberResponse extends \Google\Protobuf\Internal\Message */ private $role = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $user_id + * @type int $role + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAddMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAddMember_Member.php b/src/Proto/GroupAddMember_Member.php index ed4d6ba..96d1672 100644 --- a/src/Proto/GroupAddMember_Member.php +++ b/src/Proto/GroupAddMember_Member.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.GroupAddMember.Member - */ -class GroupAddMember_Member extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 user_id = 1; - */ - private $user_id = 0; - /** - * Generated from protobuf field uint64 start_message_id = 2; - */ - private $start_message_id = 0; - - public function __construct() { - \GPBMetadata\GroupAddMember::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @return int|string - */ - public function getUserId() - { - return $this->user_id; - } - +if (false) { /** - * Generated from protobuf field uint64 user_id = 1; - * @param int|string $var - * @return $this + * This class is deprecated. Use Proto\GroupAddMember\Member instead. + * @deprecated */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->user_id = $var; - - return $this; - } - - /** - * Generated from protobuf field uint64 start_message_id = 2; - * @return int|string - */ - public function getStartMessageId() - { - return $this->start_message_id; - } - - /** - * Generated from protobuf field uint64 start_message_id = 2; - * @param int|string $var - * @return $this - */ - public function setStartMessageId($var) - { - GPBUtil::checkUint64($var); - $this->start_message_id = $var; - - return $this; - } - + class GroupAddMember_Member {} } +class_exists(GroupAddMember\Member::class); +@trigger_error('Proto\GroupAddMember_Member is deprecated and will be removed in the next major release. Use Proto\GroupAddMember\Member instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupAddModerator.php b/src/Proto/GroupAddModerator.php index 07d8c19..4a05fdf 100644 --- a/src/Proto/GroupAddModerator.php +++ b/src/Proto/GroupAddModerator.php @@ -26,9 +26,20 @@ class GroupAddModerator extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAddModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAddModeratorResponse.php b/src/Proto/GroupAddModeratorResponse.php index b142807..789477c 100644 --- a/src/Proto/GroupAddModeratorResponse.php +++ b/src/Proto/GroupAddModeratorResponse.php @@ -26,9 +26,20 @@ class GroupAddModeratorResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAddModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAvatarAdd.php b/src/Proto/GroupAvatarAdd.php index cf680ef..a13a11d 100644 --- a/src/Proto/GroupAvatarAdd.php +++ b/src/Proto/GroupAvatarAdd.php @@ -26,9 +26,20 @@ class GroupAvatarAdd extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $attachment + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAvatarAdd::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAvatarAddResponse.php b/src/Proto/GroupAvatarAddResponse.php index 7575fc5..7f06030 100644 --- a/src/Proto/GroupAvatarAddResponse.php +++ b/src/Proto/GroupAvatarAddResponse.php @@ -26,9 +26,20 @@ class GroupAvatarAddResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Avatar $avatar + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAvatarAdd::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAvatarDelete.php b/src/Proto/GroupAvatarDelete.php index 6c481bc..f14708e 100644 --- a/src/Proto/GroupAvatarDelete.php +++ b/src/Proto/GroupAvatarDelete.php @@ -26,9 +26,20 @@ class GroupAvatarDelete extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $id + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAvatarDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAvatarDeleteResponse.php b/src/Proto/GroupAvatarDeleteResponse.php index ae474cd..07d3599 100644 --- a/src/Proto/GroupAvatarDeleteResponse.php +++ b/src/Proto/GroupAvatarDeleteResponse.php @@ -26,9 +26,20 @@ class GroupAvatarDeleteResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $id + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAvatarDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAvatarGetList.php b/src/Proto/GroupAvatarGetList.php index e528d17..a9b54f7 100644 --- a/src/Proto/GroupAvatarGetList.php +++ b/src/Proto/GroupAvatarGetList.php @@ -22,9 +22,19 @@ class GroupAvatarGetList extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAvatarGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupAvatarGetListResponse.php b/src/Proto/GroupAvatarGetListResponse.php index 2bb739e..9585c3a 100644 --- a/src/Proto/GroupAvatarGetListResponse.php +++ b/src/Proto/GroupAvatarGetListResponse.php @@ -22,9 +22,19 @@ class GroupAvatarGetListResponse extends \Google\Protobuf\Internal\Message */ private $avatar; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Avatar[]|\Google\Protobuf\Internal\RepeatedField $avatar + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupAvatarGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupCheckUsername.php b/src/Proto/GroupCheckUsername.php index c9633b0..0978578 100644 --- a/src/Proto/GroupCheckUsername.php +++ b/src/Proto/GroupCheckUsername.php @@ -26,9 +26,20 @@ class GroupCheckUsername extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupCheckUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupCheckUsernameResponse.php b/src/Proto/GroupCheckUsernameResponse.php index f9c1491..4653f95 100644 --- a/src/Proto/GroupCheckUsernameResponse.php +++ b/src/Proto/GroupCheckUsernameResponse.php @@ -22,9 +22,19 @@ class GroupCheckUsernameResponse extends \Google\Protobuf\Internal\Message */ private $status = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupCheckUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupCheckUsernameResponse/Status.php b/src/Proto/GroupCheckUsernameResponse/Status.php new file mode 100644 index 0000000..17698a3 --- /dev/null +++ b/src/Proto/GroupCheckUsernameResponse/Status.php @@ -0,0 +1,32 @@ +proto.GroupCheckUsernameResponse.Status + */ +class Status +{ + /** + * Generated from protobuf enum INVALID = 0; + */ + const INVALID = 0; + /** + * Generated from protobuf enum TAKEN = 1; + */ + const TAKEN = 1; + /** + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * Generated from protobuf enum OCCUPYING_LIMIT_EXCEEDED = 3; + */ + const OCCUPYING_LIMIT_EXCEEDED = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\GroupCheckUsernameResponse_Status::class); + diff --git a/src/Proto/GroupCheckUsernameResponse_Status.php b/src/Proto/GroupCheckUsernameResponse_Status.php index 8646148..78e1f49 100644 --- a/src/Proto/GroupCheckUsernameResponse_Status.php +++ b/src/Proto/GroupCheckUsernameResponse_Status.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\GroupCheckUsernameResponse\Status - */ -class GroupCheckUsernameResponse_Status -{ +if (false) { /** - * Generated from protobuf enum INVALID = 0; + * This class is deprecated. Use Proto\GroupCheckUsernameResponse\Status instead. + * @deprecated */ - const INVALID = 0; - /** - * Generated from protobuf enum TAKEN = 1; - */ - const TAKEN = 1; - /** - * Generated from protobuf enum AVAILABLE = 2; - */ - const AVAILABLE = 2; - /** - * Generated from protobuf enum OCCUPYING_LIMIT_EXCEEDED = 3; - */ - const OCCUPYING_LIMIT_EXCEEDED = 3; + class GroupCheckUsernameResponse_Status {} } +class_exists(GroupCheckUsernameResponse\Status::class); +@trigger_error('Proto\GroupCheckUsernameResponse_Status is deprecated and will be removed in the next major release. Use Proto\GroupCheckUsernameResponse\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupClearMessage.php b/src/Proto/GroupClearMessage.php index 4209ef4..88b0e3b 100644 --- a/src/Proto/GroupClearMessage.php +++ b/src/Proto/GroupClearMessage.php @@ -26,9 +26,20 @@ class GroupClearMessage extends \Google\Protobuf\Internal\Message */ private $clear_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $clear_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupClearMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupClearMessageResponse.php b/src/Proto/GroupClearMessageResponse.php index d6ca9e5..d630ea2 100644 --- a/src/Proto/GroupClearMessageResponse.php +++ b/src/Proto/GroupClearMessageResponse.php @@ -26,9 +26,20 @@ class GroupClearMessageResponse extends \Google\Protobuf\Internal\Message */ private $clear_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $clear_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupClearMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupCreate.php b/src/Proto/GroupCreate.php index 2a5c6d8..8ca572d 100644 --- a/src/Proto/GroupCreate.php +++ b/src/Proto/GroupCreate.php @@ -26,9 +26,20 @@ class GroupCreate extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $name + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupCreate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupCreateResponse.php b/src/Proto/GroupCreateResponse.php index 3ab30a7..5fb2046 100644 --- a/src/Proto/GroupCreateResponse.php +++ b/src/Proto/GroupCreateResponse.php @@ -26,9 +26,20 @@ class GroupCreateResponse extends \Google\Protobuf\Internal\Message */ private $invite_link = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type string $invite_link + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupCreate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupDelete.php b/src/Proto/GroupDelete.php index 488d411..d4933a9 100644 --- a/src/Proto/GroupDelete.php +++ b/src/Proto/GroupDelete.php @@ -22,9 +22,19 @@ class GroupDelete extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupDeleteMessage.php b/src/Proto/GroupDeleteMessage.php index a0ee6f5..284f0c3 100644 --- a/src/Proto/GroupDeleteMessage.php +++ b/src/Proto/GroupDeleteMessage.php @@ -26,9 +26,20 @@ class GroupDeleteMessage extends \Google\Protobuf\Internal\Message */ private $message_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupDeleteMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupDeleteMessageResponse.php b/src/Proto/GroupDeleteMessageResponse.php index 06af30a..ea9c4d0 100644 --- a/src/Proto/GroupDeleteMessageResponse.php +++ b/src/Proto/GroupDeleteMessageResponse.php @@ -30,9 +30,21 @@ class GroupDeleteMessageResponse extends \Google\Protobuf\Internal\Message */ private $delete_version = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int|string $delete_version + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupDeleteMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupDeleteResponse.php b/src/Proto/GroupDeleteResponse.php index ea81e85..a7bd05d 100644 --- a/src/Proto/GroupDeleteResponse.php +++ b/src/Proto/GroupDeleteResponse.php @@ -22,9 +22,19 @@ class GroupDeleteResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupEdit.php b/src/Proto/GroupEdit.php index d1e2626..2a2d90f 100644 --- a/src/Proto/GroupEdit.php +++ b/src/Proto/GroupEdit.php @@ -30,9 +30,21 @@ class GroupEdit extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type string $name + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupEdit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupEditMessage.php b/src/Proto/GroupEditMessage.php index a8727d8..a9aa420 100644 --- a/src/Proto/GroupEditMessage.php +++ b/src/Proto/GroupEditMessage.php @@ -30,9 +30,21 @@ class GroupEditMessage extends \Google\Protobuf\Internal\Message */ private $message = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type string $message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupEditMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupEditMessageResponse.php b/src/Proto/GroupEditMessageResponse.php index 6ad8d47..e05e61f 100644 --- a/src/Proto/GroupEditMessageResponse.php +++ b/src/Proto/GroupEditMessageResponse.php @@ -38,9 +38,23 @@ class GroupEditMessageResponse extends \Google\Protobuf\Internal\Message */ private $message_type = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int|string $message_version + * @type string $message + * @type int $message_type + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupEditMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupEditResponse.php b/src/Proto/GroupEditResponse.php index 433b9c3..cb5b990 100644 --- a/src/Proto/GroupEditResponse.php +++ b/src/Proto/GroupEditResponse.php @@ -30,9 +30,21 @@ class GroupEditResponse extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type string $name + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupEdit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupGetDraft.php b/src/Proto/GroupGetDraft.php index cfd0baa..fbc6a28 100644 --- a/src/Proto/GroupGetDraft.php +++ b/src/Proto/GroupGetDraft.php @@ -22,9 +22,19 @@ class GroupGetDraft extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupGetDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupGetDraftResponse.php b/src/Proto/GroupGetDraftResponse.php index ea25428..6287cd3 100644 --- a/src/Proto/GroupGetDraftResponse.php +++ b/src/Proto/GroupGetDraftResponse.php @@ -22,9 +22,19 @@ class GroupGetDraftResponse extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupGetDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupGetMemberList.php b/src/Proto/GroupGetMemberList.php index 5c1b9d7..ff60706 100644 --- a/src/Proto/GroupGetMemberList.php +++ b/src/Proto/GroupGetMemberList.php @@ -30,9 +30,21 @@ class GroupGetMemberList extends \Google\Protobuf\Internal\Message */ private $pagination = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int $filter_role + * @type \Proto\Pagination $pagination + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupGetMemberList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupGetMemberList/FilterRole.php b/src/Proto/GroupGetMemberList/FilterRole.php new file mode 100644 index 0000000..060b7e7 --- /dev/null +++ b/src/Proto/GroupGetMemberList/FilterRole.php @@ -0,0 +1,32 @@ +proto.GroupGetMemberList.FilterRole + */ +class FilterRole +{ + /** + * Generated from protobuf enum ALL = 0; + */ + const ALL = 0; + /** + * Generated from protobuf enum MEMBER = 1; + */ + const MEMBER = 1; + /** + * Generated from protobuf enum MODERATOR = 2; + */ + const MODERATOR = 2; + /** + * Generated from protobuf enum ADMIN = 3; + */ + const ADMIN = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FilterRole::class, \Proto\GroupGetMemberList_FilterRole::class); + diff --git a/src/Proto/GroupGetMemberListResponse.php b/src/Proto/GroupGetMemberListResponse.php index 456a055..618f2f1 100644 --- a/src/Proto/GroupGetMemberListResponse.php +++ b/src/Proto/GroupGetMemberListResponse.php @@ -22,9 +22,19 @@ class GroupGetMemberListResponse extends \Google\Protobuf\Internal\Message */ private $member; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\GroupGetMemberListResponse\Member[]|\Google\Protobuf\Internal\RepeatedField $member + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupGetMemberList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getMember() /** * Generated from protobuf field repeated .proto.GroupGetMemberListResponse.Member member = 2; - * @param \Proto\GroupGetMemberListResponse_Member[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\GroupGetMemberListResponse\Member[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMember($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GroupGetMemberListResponse_Member::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\GroupGetMemberListResponse\Member::class); $this->member = $arr; return $this; diff --git a/src/Proto/GroupGetMemberListResponse/Member.php b/src/Proto/GroupGetMemberListResponse/Member.php new file mode 100644 index 0000000..7b9bf02 --- /dev/null +++ b/src/Proto/GroupGetMemberListResponse/Member.php @@ -0,0 +1,88 @@ +proto.GroupGetMemberListResponse.Member + */ +class Member extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 userId = 1; + */ + private $userId = 0; + /** + * Generated from protobuf field .proto.GroupRoom.Role role = 2; + */ + private $role = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $userId + * @type int $role + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\GroupGetMemberList::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 userId = 1; + * @return int|string + */ + public function getUserId() + { + return $this->userId; + } + + /** + * Generated from protobuf field uint64 userId = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->userId = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.GroupRoom.Role role = 2; + * @return int + */ + public function getRole() + { + return $this->role; + } + + /** + * Generated from protobuf field .proto.GroupRoom.Role role = 2; + * @param int $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkEnum($var, \Proto\GroupRoom_Role::class); + $this->role = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Member::class, \Proto\GroupGetMemberListResponse_Member::class); + diff --git a/src/Proto/GroupGetMemberListResponse_Member.php b/src/Proto/GroupGetMemberListResponse_Member.php index 75f5851..3b23163 100644 --- a/src/Proto/GroupGetMemberListResponse_Member.php +++ b/src/Proto/GroupGetMemberListResponse_Member.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.GroupGetMemberListResponse.Member - */ -class GroupGetMemberListResponse_Member extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 userId = 1; - */ - private $userId = 0; - /** - * Generated from protobuf field .proto.GroupRoom.Role role = 2; - */ - private $role = 0; - - public function __construct() { - \GPBMetadata\GroupGetMemberList::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 userId = 1; - * @return int|string - */ - public function getUserId() - { - return $this->userId; - } - +if (false) { /** - * Generated from protobuf field uint64 userId = 1; - * @param int|string $var - * @return $this + * This class is deprecated. Use Proto\GroupGetMemberListResponse\Member instead. + * @deprecated */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->userId = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.GroupRoom.Role role = 2; - * @return int - */ - public function getRole() - { - return $this->role; - } - - /** - * Generated from protobuf field .proto.GroupRoom.Role role = 2; - * @param int $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkEnum($var, \Proto\GroupRoom_Role::class); - $this->role = $var; - - return $this; - } - + class GroupGetMemberListResponse_Member {} } +class_exists(GroupGetMemberListResponse\Member::class); +@trigger_error('Proto\GroupGetMemberListResponse_Member is deprecated and will be removed in the next major release. Use Proto\GroupGetMemberListResponse\Member instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupGetMemberList_FilterRole.php b/src/Proto/GroupGetMemberList_FilterRole.php index 0c9fc7b..b0a806a 100644 --- a/src/Proto/GroupGetMemberList_FilterRole.php +++ b/src/Proto/GroupGetMemberList_FilterRole.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\GroupGetMemberList\FilterRole - */ -class GroupGetMemberList_FilterRole -{ +if (false) { /** - * Generated from protobuf enum ALL = 0; + * This class is deprecated. Use Proto\GroupGetMemberList\FilterRole instead. + * @deprecated */ - const ALL = 0; - /** - * Generated from protobuf enum MEMBER = 1; - */ - const MEMBER = 1; - /** - * Generated from protobuf enum MODERATOR = 2; - */ - const MODERATOR = 2; - /** - * Generated from protobuf enum ADMIN = 3; - */ - const ADMIN = 3; + class GroupGetMemberList_FilterRole {} } +class_exists(GroupGetMemberList\FilterRole::class); +@trigger_error('Proto\GroupGetMemberList_FilterRole is deprecated and will be removed in the next major release. Use Proto\GroupGetMemberList\FilterRole instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupKickAdmin.php b/src/Proto/GroupKickAdmin.php index ab6bf2b..b3c315a 100644 --- a/src/Proto/GroupKickAdmin.php +++ b/src/Proto/GroupKickAdmin.php @@ -26,9 +26,20 @@ class GroupKickAdmin extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupKickAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupKickAdminResponse.php b/src/Proto/GroupKickAdminResponse.php index b504329..881be62 100644 --- a/src/Proto/GroupKickAdminResponse.php +++ b/src/Proto/GroupKickAdminResponse.php @@ -26,9 +26,20 @@ class GroupKickAdminResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupKickAdmin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupKickMember.php b/src/Proto/GroupKickMember.php index ebae1a7..4994e2d 100644 --- a/src/Proto/GroupKickMember.php +++ b/src/Proto/GroupKickMember.php @@ -26,9 +26,20 @@ class GroupKickMember extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupKickMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupKickMemberResponse.php b/src/Proto/GroupKickMemberResponse.php index 5548c93..9e13757 100644 --- a/src/Proto/GroupKickMemberResponse.php +++ b/src/Proto/GroupKickMemberResponse.php @@ -26,9 +26,20 @@ class GroupKickMemberResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupKickMember::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupKickModerator.php b/src/Proto/GroupKickModerator.php index 9c040e6..f947a1b 100644 --- a/src/Proto/GroupKickModerator.php +++ b/src/Proto/GroupKickModerator.php @@ -26,9 +26,20 @@ class GroupKickModerator extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupKickModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupKickModeratorResponse.php b/src/Proto/GroupKickModeratorResponse.php index 0f5c9db..247b782 100644 --- a/src/Proto/GroupKickModeratorResponse.php +++ b/src/Proto/GroupKickModeratorResponse.php @@ -26,9 +26,20 @@ class GroupKickModeratorResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupKickModerator::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupLeft.php b/src/Proto/GroupLeft.php index 8f25063..f0b5cd5 100644 --- a/src/Proto/GroupLeft.php +++ b/src/Proto/GroupLeft.php @@ -22,9 +22,19 @@ class GroupLeft extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupLeft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupLeftResponse.php b/src/Proto/GroupLeftResponse.php index 98a6e8f..5d73034 100644 --- a/src/Proto/GroupLeftResponse.php +++ b/src/Proto/GroupLeftResponse.php @@ -26,9 +26,20 @@ class GroupLeftResponse extends \Google\Protobuf\Internal\Message */ private $member_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $member_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupLeft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupPinMessage.php b/src/Proto/GroupPinMessage.php index eccc7b0..af74c57 100644 --- a/src/Proto/GroupPinMessage.php +++ b/src/Proto/GroupPinMessage.php @@ -26,9 +26,20 @@ class GroupPinMessage extends \Google\Protobuf\Internal\Message */ private $message_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupPinMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupPinMessageResponse.php b/src/Proto/GroupPinMessageResponse.php index 5d49cdb..e41d847 100644 --- a/src/Proto/GroupPinMessageResponse.php +++ b/src/Proto/GroupPinMessageResponse.php @@ -26,9 +26,20 @@ class GroupPinMessageResponse extends \Google\Protobuf\Internal\Message */ private $pinned_message = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomMessage $pinned_message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupPinMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupRemoveUsername.php b/src/Proto/GroupRemoveUsername.php index 5178fd1..78217cd 100644 --- a/src/Proto/GroupRemoveUsername.php +++ b/src/Proto/GroupRemoveUsername.php @@ -22,9 +22,19 @@ class GroupRemoveUsername extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupRemoveUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupRemoveUsernameResponse.php b/src/Proto/GroupRemoveUsernameResponse.php index ca40322..8a3010b 100644 --- a/src/Proto/GroupRemoveUsernameResponse.php +++ b/src/Proto/GroupRemoveUsernameResponse.php @@ -22,9 +22,19 @@ class GroupRemoveUsernameResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupRemoveUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupRevokeLink.php b/src/Proto/GroupRevokeLink.php index 60d85cf..3308250 100644 --- a/src/Proto/GroupRevokeLink.php +++ b/src/Proto/GroupRevokeLink.php @@ -22,9 +22,19 @@ class GroupRevokeLink extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupRevokeLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupRevokeLinkResponse.php b/src/Proto/GroupRevokeLinkResponse.php index a57bcaa..0f3aa0b 100644 --- a/src/Proto/GroupRevokeLinkResponse.php +++ b/src/Proto/GroupRevokeLinkResponse.php @@ -30,9 +30,21 @@ class GroupRevokeLinkResponse extends \Google\Protobuf\Internal\Message */ private $invite_token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type string $invite_link + * @type string $invite_token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupRevokeLink::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupRoom.php b/src/Proto/GroupRoom.php index 6b463b4..5e333fd 100644 --- a/src/Proto/GroupRoom.php +++ b/src/Proto/GroupRoom.php @@ -58,9 +58,28 @@ class GroupRoom extends \Google\Protobuf\Internal\Message */ private $public_extra = null; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * @type int $role + * @type int $participants_count + * @type string $participants_count_label + * @type int $participants_count_limit + * @type string $participants_count_limit_label + * @type string $description + * @type int $avatar_count + * @type \Proto\Avatar $avatar + * @type \Proto\GroupRoom\PrivateExtra $private_extra + * @type \Proto\GroupRoom\PublicExtra $public_extra + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** @@ -263,7 +282,7 @@ public function setAvatar($var) /** * Generated from protobuf field .proto.GroupRoom.PrivateExtra private_extra = 10; - * @return \Proto\GroupRoom_PrivateExtra + * @return \Proto\GroupRoom\PrivateExtra */ public function getPrivateExtra() { @@ -272,7 +291,7 @@ public function getPrivateExtra() /** * Generated from protobuf field .proto.GroupRoom.PrivateExtra private_extra = 10; - * @param \Proto\GroupRoom_PrivateExtra $var + * @param \Proto\GroupRoom\PrivateExtra $var * @return $this */ public function setPrivateExtra($var) @@ -285,7 +304,7 @@ public function setPrivateExtra($var) /** * Generated from protobuf field .proto.GroupRoom.PublicExtra public_extra = 11; - * @return \Proto\GroupRoom_PublicExtra + * @return \Proto\GroupRoom\PublicExtra */ public function getPublicExtra() { @@ -294,7 +313,7 @@ public function getPublicExtra() /** * Generated from protobuf field .proto.GroupRoom.PublicExtra public_extra = 11; - * @param \Proto\GroupRoom_PublicExtra $var + * @param \Proto\GroupRoom\PublicExtra $var * @return $this */ public function setPublicExtra($var) diff --git a/src/Proto/GroupRoom/PrivateExtra.php b/src/Proto/GroupRoom/PrivateExtra.php new file mode 100644 index 0000000..a71face --- /dev/null +++ b/src/Proto/GroupRoom/PrivateExtra.php @@ -0,0 +1,88 @@ +proto.GroupRoom.PrivateExtra + */ +class PrivateExtra extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string invite_link = 1; + */ + private $invite_link = ''; + /** + * Generated from protobuf field string invite_token = 2; + */ + private $invite_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $invite_link + * @type string $invite_token + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string invite_link = 1; + * @return string + */ + public function getInviteLink() + { + return $this->invite_link; + } + + /** + * Generated from protobuf field string invite_link = 1; + * @param string $var + * @return $this + */ + public function setInviteLink($var) + { + GPBUtil::checkString($var, True); + $this->invite_link = $var; + + return $this; + } + + /** + * Generated from protobuf field string invite_token = 2; + * @return string + */ + public function getInviteToken() + { + return $this->invite_token; + } + + /** + * Generated from protobuf field string invite_token = 2; + * @param string $var + * @return $this + */ + public function setInviteToken($var) + { + GPBUtil::checkString($var, True); + $this->invite_token = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PrivateExtra::class, \Proto\GroupRoom_PrivateExtra::class); + diff --git a/src/Proto/GroupRoom/PublicExtra.php b/src/Proto/GroupRoom/PublicExtra.php new file mode 100644 index 0000000..c999c35 --- /dev/null +++ b/src/Proto/GroupRoom/PublicExtra.php @@ -0,0 +1,61 @@ +proto.GroupRoom.PublicExtra + */ +class PublicExtra extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string username = 1; + */ + private $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string username = 1; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Generated from protobuf field string username = 1; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PublicExtra::class, \Proto\GroupRoom_PublicExtra::class); + diff --git a/src/Proto/GroupRoom/Role.php b/src/Proto/GroupRoom/Role.php new file mode 100644 index 0000000..dab3499 --- /dev/null +++ b/src/Proto/GroupRoom/Role.php @@ -0,0 +1,32 @@ +proto.GroupRoom.Role + */ +class Role +{ + /** + * Generated from protobuf enum MEMBER = 0; + */ + const MEMBER = 0; + /** + * Generated from protobuf enum MODERATOR = 1; + */ + const MODERATOR = 1; + /** + * Generated from protobuf enum ADMIN = 2; + */ + const ADMIN = 2; + /** + * Generated from protobuf enum OWNER = 3; + */ + const OWNER = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Role::class, \Proto\GroupRoom_Role::class); + diff --git a/src/Proto/GroupRoom/Type.php b/src/Proto/GroupRoom/Type.php new file mode 100644 index 0000000..421c406 --- /dev/null +++ b/src/Proto/GroupRoom/Type.php @@ -0,0 +1,24 @@ +proto.GroupRoom.Type + */ +class Type +{ + /** + * Generated from protobuf enum PRIVATE_ROOM = 0; + */ + const PRIVATE_ROOM = 0; + /** + * Generated from protobuf enum PUBLIC_ROOM = 1; + */ + const PUBLIC_ROOM = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\GroupRoom_Type::class); + diff --git a/src/Proto/GroupRoom_PrivateExtra.php b/src/Proto/GroupRoom_PrivateExtra.php index db64ae6..95ae02c 100644 --- a/src/Proto/GroupRoom_PrivateExtra.php +++ b/src/Proto/GroupRoom_PrivateExtra.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.GroupRoom.PrivateExtra - */ -class GroupRoom_PrivateExtra extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string invite_link = 1; - */ - private $invite_link = ''; - /** - * Generated from protobuf field string invite_token = 2; - */ - private $invite_token = ''; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field string invite_link = 1; - * @return string - */ - public function getInviteLink() - { - return $this->invite_link; - } - +if (false) { /** - * Generated from protobuf field string invite_link = 1; - * @param string $var - * @return $this + * This class is deprecated. Use Proto\GroupRoom\PrivateExtra instead. + * @deprecated */ - public function setInviteLink($var) - { - GPBUtil::checkString($var, True); - $this->invite_link = $var; - - return $this; - } - - /** - * Generated from protobuf field string invite_token = 2; - * @return string - */ - public function getInviteToken() - { - return $this->invite_token; - } - - /** - * Generated from protobuf field string invite_token = 2; - * @param string $var - * @return $this - */ - public function setInviteToken($var) - { - GPBUtil::checkString($var, True); - $this->invite_token = $var; - - return $this; - } - + class GroupRoom_PrivateExtra {} } +class_exists(GroupRoom\PrivateExtra::class); +@trigger_error('Proto\GroupRoom_PrivateExtra is deprecated and will be removed in the next major release. Use Proto\GroupRoom\PrivateExtra instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupRoom_PublicExtra.php b/src/Proto/GroupRoom_PublicExtra.php index 2e6a7ca..45633f6 100644 --- a/src/Proto/GroupRoom_PublicExtra.php +++ b/src/Proto/GroupRoom_PublicExtra.php @@ -4,46 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.GroupRoom.PublicExtra - */ -class GroupRoom_PublicExtra extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string username = 1; - */ - private $username = ''; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - +if (false) { /** - * Generated from protobuf field string username = 1; - * @return string + * This class is deprecated. Use Proto\GroupRoom\PublicExtra instead. + * @deprecated */ - public function getUsername() - { - return $this->username; - } - - /** - * Generated from protobuf field string username = 1; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - + class GroupRoom_PublicExtra {} } +class_exists(GroupRoom\PublicExtra::class); +@trigger_error('Proto\GroupRoom_PublicExtra is deprecated and will be removed in the next major release. Use Proto\GroupRoom\PublicExtra instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupRoom_Role.php b/src/Proto/GroupRoom_Role.php index 109db0b..4fdb552 100644 --- a/src/Proto/GroupRoom_Role.php +++ b/src/Proto/GroupRoom_Role.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\GroupRoom\Role - */ -class GroupRoom_Role -{ +if (false) { /** - * Generated from protobuf enum MEMBER = 0; + * This class is deprecated. Use Proto\GroupRoom\Role instead. + * @deprecated */ - const MEMBER = 0; - /** - * Generated from protobuf enum MODERATOR = 1; - */ - const MODERATOR = 1; - /** - * Generated from protobuf enum ADMIN = 2; - */ - const ADMIN = 2; - /** - * Generated from protobuf enum OWNER = 3; - */ - const OWNER = 3; + class GroupRoom_Role {} } +class_exists(GroupRoom\Role::class); +@trigger_error('Proto\GroupRoom_Role is deprecated and will be removed in the next major release. Use Proto\GroupRoom\Role instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupRoom_Type.php b/src/Proto/GroupRoom_Type.php index f66824a..e83295a 100644 --- a/src/Proto/GroupRoom_Type.php +++ b/src/Proto/GroupRoom_Type.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\GroupRoom\Type - */ -class GroupRoom_Type -{ +if (false) { /** - * Generated from protobuf enum PRIVATE_ROOM = 0; + * This class is deprecated. Use Proto\GroupRoom\Type instead. + * @deprecated */ - const PRIVATE_ROOM = 0; - /** - * Generated from protobuf enum PUBLIC_ROOM = 1; - */ - const PUBLIC_ROOM = 1; + class GroupRoom_Type {} } +class_exists(GroupRoom\Type::class); +@trigger_error('Proto\GroupRoom_Type is deprecated and will be removed in the next major release. Use Proto\GroupRoom\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/GroupSendMessage.php b/src/Proto/GroupSendMessage.php index 1af3df3..3fa4afd 100644 --- a/src/Proto/GroupSendMessage.php +++ b/src/Proto/GroupSendMessage.php @@ -54,9 +54,27 @@ class GroupSendMessage extends \Google\Protobuf\Internal\Message */ private $random_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $message_type + * @type int|string $room_id + * @type string $message + * @type string $attachment + * @type \Proto\RoomMessageLocation $location + * @type \Proto\RoomMessageContact $contact + * @type int|string $reply_to + * @type \Proto\RoomMessageForwardFrom $forward_from + * @type int|string $random_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupSendMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupSendMessageResponse.php b/src/Proto/GroupSendMessageResponse.php index 380c192..0a776f2 100644 --- a/src/Proto/GroupSendMessageResponse.php +++ b/src/Proto/GroupSendMessageResponse.php @@ -26,9 +26,20 @@ class GroupSendMessageResponse extends \Google\Protobuf\Internal\Message */ private $room_message = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomMessage $room_message + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupSendMessage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupSetAction.php b/src/Proto/GroupSetAction.php index 7c813df..2dfc737 100644 --- a/src/Proto/GroupSetAction.php +++ b/src/Proto/GroupSetAction.php @@ -30,9 +30,21 @@ class GroupSetAction extends \Google\Protobuf\Internal\Message */ private $action_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int $action + * @type int $action_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupSetAction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupSetActionResponse.php b/src/Proto/GroupSetActionResponse.php index b30e70f..cbba246 100644 --- a/src/Proto/GroupSetActionResponse.php +++ b/src/Proto/GroupSetActionResponse.php @@ -30,9 +30,21 @@ class GroupSetActionResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int $action + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupSetAction::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupUpdateDraft.php b/src/Proto/GroupUpdateDraft.php index 56bc791..2cce481 100644 --- a/src/Proto/GroupUpdateDraft.php +++ b/src/Proto/GroupUpdateDraft.php @@ -26,9 +26,20 @@ class GroupUpdateDraft extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupUpdateDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupUpdateDraftResponse.php b/src/Proto/GroupUpdateDraftResponse.php index 55d0ab4..caa5b5c 100644 --- a/src/Proto/GroupUpdateDraftResponse.php +++ b/src/Proto/GroupUpdateDraftResponse.php @@ -26,9 +26,20 @@ class GroupUpdateDraftResponse extends \Google\Protobuf\Internal\Message */ private $draft = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type \Proto\RoomDraft $draft + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupUpdateDraft::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupUpdateStatus.php b/src/Proto/GroupUpdateStatus.php index bedaa09..400dcc1 100644 --- a/src/Proto/GroupUpdateStatus.php +++ b/src/Proto/GroupUpdateStatus.php @@ -30,9 +30,21 @@ class GroupUpdateStatus extends \Google\Protobuf\Internal\Message */ private $status = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $room_id + * @type int|string $message_id + * @type int $status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupUpdateStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupUpdateStatusResponse.php b/src/Proto/GroupUpdateStatusResponse.php index 1853393..f79154e 100644 --- a/src/Proto/GroupUpdateStatusResponse.php +++ b/src/Proto/GroupUpdateStatusResponse.php @@ -38,9 +38,23 @@ class GroupUpdateStatusResponse extends \Google\Protobuf\Internal\Message */ private $updater_author_hash = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $room_id + * @type int|string $message_id + * @type int $status + * @type int|string $status_version + * @type string $updater_author_hash + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupUpdateStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupUpdateUsername.php b/src/Proto/GroupUpdateUsername.php index 76edc85..25fe811 100644 --- a/src/Proto/GroupUpdateUsername.php +++ b/src/Proto/GroupUpdateUsername.php @@ -26,9 +26,20 @@ class GroupUpdateUsername extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupUpdateUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/GroupUpdateUsernameResponse.php b/src/Proto/GroupUpdateUsernameResponse.php index 754f798..b660b85 100644 --- a/src/Proto/GroupUpdateUsernameResponse.php +++ b/src/Proto/GroupUpdateUsernameResponse.php @@ -26,9 +26,20 @@ class GroupUpdateUsernameResponse extends \Google\Protobuf\Internal\Message */ private $room_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $username + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\GroupUpdateUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/Heartbeat.php b/src/Proto/Heartbeat.php index 46a45e4..fefe186 100644 --- a/src/Proto/Heartbeat.php +++ b/src/Proto/Heartbeat.php @@ -18,9 +18,18 @@ class Heartbeat extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\Heartbeat::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/HeartbeatResponse.php b/src/Proto/HeartbeatResponse.php index 531d7fb..653469f 100644 --- a/src/Proto/HeartbeatResponse.php +++ b/src/Proto/HeartbeatResponse.php @@ -18,9 +18,18 @@ class HeartbeatResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\Heartbeat::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoCountry.php b/src/Proto/InfoCountry.php index 8718586..6481d1b 100644 --- a/src/Proto/InfoCountry.php +++ b/src/Proto/InfoCountry.php @@ -22,9 +22,19 @@ class InfoCountry extends \Google\Protobuf\Internal\Message */ private $iso_code = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $iso_code + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoCountry::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoCountryResponse.php b/src/Proto/InfoCountryResponse.php index afd1b87..53e11ab 100644 --- a/src/Proto/InfoCountryResponse.php +++ b/src/Proto/InfoCountryResponse.php @@ -34,9 +34,22 @@ class InfoCountryResponse extends \Google\Protobuf\Internal\Message */ private $regex = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $calling_code + * @type string $name + * @type string $pattern + * @type string $regex + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoCountry::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoLocation.php b/src/Proto/InfoLocation.php index 5d00d38..60bacb8 100644 --- a/src/Proto/InfoLocation.php +++ b/src/Proto/InfoLocation.php @@ -18,9 +18,18 @@ class InfoLocation extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoLocation::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoLocationResponse.php b/src/Proto/InfoLocationResponse.php index e24f282..86db684 100644 --- a/src/Proto/InfoLocationResponse.php +++ b/src/Proto/InfoLocationResponse.php @@ -38,9 +38,23 @@ class InfoLocationResponse extends \Google\Protobuf\Internal\Message */ private $regex = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $iso_code + * @type int $calling_code + * @type string $name + * @type string $pattern + * @type string $regex + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoLocation::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoPage.php b/src/Proto/InfoPage.php index bcea21d..ce4ddb5 100644 --- a/src/Proto/InfoPage.php +++ b/src/Proto/InfoPage.php @@ -22,9 +22,19 @@ class InfoPage extends \Google\Protobuf\Internal\Message */ private $id = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoPage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoPageResponse.php b/src/Proto/InfoPageResponse.php index ee94992..d0862b3 100644 --- a/src/Proto/InfoPageResponse.php +++ b/src/Proto/InfoPageResponse.php @@ -22,9 +22,19 @@ class InfoPageResponse extends \Google\Protobuf\Internal\Message */ private $body = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $body + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoPage::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoTime.php b/src/Proto/InfoTime.php index ad48736..9332d5a 100644 --- a/src/Proto/InfoTime.php +++ b/src/Proto/InfoTime.php @@ -18,9 +18,18 @@ class InfoTime extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoTime::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoTimeResponse.php b/src/Proto/InfoTimeResponse.php index b68d530..56b6e49 100644 --- a/src/Proto/InfoTimeResponse.php +++ b/src/Proto/InfoTimeResponse.php @@ -22,9 +22,19 @@ class InfoTimeResponse extends \Google\Protobuf\Internal\Message */ private $timestamp = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $timestamp + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoTime::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoWallpaper.php b/src/Proto/InfoWallpaper.php index c9d4309..b2b021b 100644 --- a/src/Proto/InfoWallpaper.php +++ b/src/Proto/InfoWallpaper.php @@ -22,9 +22,19 @@ class InfoWallpaper extends \Google\Protobuf\Internal\Message */ private $fit = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $fit + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoWallpaper::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoWallpaper/Fit.php b/src/Proto/InfoWallpaper/Fit.php new file mode 100644 index 0000000..59330c0 --- /dev/null +++ b/src/Proto/InfoWallpaper/Fit.php @@ -0,0 +1,28 @@ +proto.InfoWallpaper.Fit + */ +class Fit +{ + /** + * Generated from protobuf enum PHONE = 0; + */ + const PHONE = 0; + /** + * Generated from protobuf enum TABLET = 1; + */ + const TABLET = 1; + /** + * Generated from protobuf enum DESKTOP = 2; + */ + const DESKTOP = 2; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Fit::class, \Proto\InfoWallpaper_Fit::class); + diff --git a/src/Proto/InfoWallpaperResponse.php b/src/Proto/InfoWallpaperResponse.php index ea87a59..9490974 100644 --- a/src/Proto/InfoWallpaperResponse.php +++ b/src/Proto/InfoWallpaperResponse.php @@ -22,9 +22,19 @@ class InfoWallpaperResponse extends \Google\Protobuf\Internal\Message */ private $wallpaper; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Wallpaper[]|\Google\Protobuf\Internal\RepeatedField $wallpaper + * } + */ + public function __construct($data = NULL) { \GPBMetadata\InfoWallpaper::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/InfoWallpaper_Fit.php b/src/Proto/InfoWallpaper_Fit.php index 0eb9e14..2b7e557 100644 --- a/src/Proto/InfoWallpaper_Fit.php +++ b/src/Proto/InfoWallpaper_Fit.php @@ -4,22 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\InfoWallpaper\Fit - */ -class InfoWallpaper_Fit -{ +if (false) { /** - * Generated from protobuf enum PHONE = 0; + * This class is deprecated. Use Proto\InfoWallpaper\Fit instead. + * @deprecated */ - const PHONE = 0; - /** - * Generated from protobuf enum TABLET = 1; - */ - const TABLET = 1; - /** - * Generated from protobuf enum DESKTOP = 2; - */ - const DESKTOP = 2; + class InfoWallpaper_Fit {} } +class_exists(InfoWallpaper\Fit::class); +@trigger_error('Proto\InfoWallpaper_Fit is deprecated and will be removed in the next major release. Use Proto\InfoWallpaper\Fit instead', E_USER_DEPRECATED); diff --git a/src/Proto/Language.php b/src/Proto/Language.php index 732cd5f..b21e94a 100644 --- a/src/Proto/Language.php +++ b/src/Proto/Language.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\Language + * Protobuf type proto.Language */ class Language { diff --git a/src/Proto/Pagination.php b/src/Proto/Pagination.php index 2d9c485..b654757 100644 --- a/src/Proto/Pagination.php +++ b/src/Proto/Pagination.php @@ -22,9 +22,19 @@ class Pagination extends \Google\Protobuf\Internal\Message */ private $limit = 0; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $offset + * @type int $limit + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/Platform.php b/src/Proto/Platform.php index d89825d..e8f4e52 100644 --- a/src/Proto/Platform.php +++ b/src/Proto/Platform.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\Platform + * Protobuf type proto.Platform */ class Platform { diff --git a/src/Proto/PrivacyLevel.php b/src/Proto/PrivacyLevel.php index db7631e..a9b9a8d 100644 --- a/src/Proto/PrivacyLevel.php +++ b/src/Proto/PrivacyLevel.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\PrivacyLevel + * Protobuf type proto.PrivacyLevel */ class PrivacyLevel { diff --git a/src/Proto/PrivacyType.php b/src/Proto/PrivacyType.php index 66c5049..45be361 100644 --- a/src/Proto/PrivacyType.php +++ b/src/Proto/PrivacyType.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\PrivacyType + * Protobuf type proto.PrivacyType */ class PrivacyType { diff --git a/src/Proto/PushLoginTokenResponse.php b/src/Proto/PushLoginTokenResponse.php index 82c309b..54c9aa3 100644 --- a/src/Proto/PushLoginTokenResponse.php +++ b/src/Proto/PushLoginTokenResponse.php @@ -34,9 +34,22 @@ class PushLoginTokenResponse extends \Google\Protobuf\Internal\Message */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $username + * @type int|string $user_id + * @type string $author_hash + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\PushLoginToken::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/PushRateSignalingResponse.php b/src/Proto/PushRateSignalingResponse.php index b8002eb..fe37d57 100644 --- a/src/Proto/PushRateSignalingResponse.php +++ b/src/Proto/PushRateSignalingResponse.php @@ -22,9 +22,19 @@ class PushRateSignalingResponse extends \Google\Protobuf\Internal\Message */ private $id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\PushRateSignaling::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/PushTwoStepVerificationResponse.php b/src/Proto/PushTwoStepVerificationResponse.php index f0655ad..bc3cee4 100644 --- a/src/Proto/PushTwoStepVerificationResponse.php +++ b/src/Proto/PushTwoStepVerificationResponse.php @@ -30,9 +30,21 @@ class PushTwoStepVerificationResponse extends \Google\Protobuf\Internal\Message */ private $author_hash = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $username + * @type int|string $user_id + * @type string $author_hash + * } + */ + public function __construct($data = NULL) { \GPBMetadata\PushTwoStepVerification::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/PushUserInfoExpiredResponse.php b/src/Proto/PushUserInfoExpiredResponse.php index 4a2ee4a..ac281bd 100644 --- a/src/Proto/PushUserInfoExpiredResponse.php +++ b/src/Proto/PushUserInfoExpiredResponse.php @@ -22,9 +22,19 @@ class PushUserInfoExpiredResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\PushUserInfoExpired::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeAddContact.php b/src/Proto/QrCodeAddContact.php index e444100..a0aec0d 100644 --- a/src/Proto/QrCodeAddContact.php +++ b/src/Proto/QrCodeAddContact.php @@ -30,9 +30,21 @@ class QrCodeAddContact extends \Google\Protobuf\Internal\Message */ private $last_name = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $phone + * @type string $first_name + * @type string $last_name + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeAddContact::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeAddContactResponse.php b/src/Proto/QrCodeAddContactResponse.php index 5d292ad..4ab9ddf 100644 --- a/src/Proto/QrCodeAddContactResponse.php +++ b/src/Proto/QrCodeAddContactResponse.php @@ -22,9 +22,19 @@ class QrCodeAddContactResponse extends \Google\Protobuf\Internal\Message */ private $qr_code_image = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $qr_code_image + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeAddContact::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeAddMe.php b/src/Proto/QrCodeAddMe.php index 226db7b..db61cb8 100644 --- a/src/Proto/QrCodeAddMe.php +++ b/src/Proto/QrCodeAddMe.php @@ -18,9 +18,18 @@ class QrCodeAddMe extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeAddMe::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeAddMeResponse.php b/src/Proto/QrCodeAddMeResponse.php index 28264b9..7260ee4 100644 --- a/src/Proto/QrCodeAddMeResponse.php +++ b/src/Proto/QrCodeAddMeResponse.php @@ -22,9 +22,19 @@ class QrCodeAddMeResponse extends \Google\Protobuf\Internal\Message */ private $qr_code_image = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $qr_code_image + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeAddMe::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeJoin.php b/src/Proto/QrCodeJoin.php index 844736b..e9196c2 100644 --- a/src/Proto/QrCodeJoin.php +++ b/src/Proto/QrCodeJoin.php @@ -22,9 +22,19 @@ class QrCodeJoin extends \Google\Protobuf\Internal\Message */ private $invite_token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $invite_token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeJoin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeJoinResponse.php b/src/Proto/QrCodeJoinResponse.php index 81864ce..69eb586 100644 --- a/src/Proto/QrCodeJoinResponse.php +++ b/src/Proto/QrCodeJoinResponse.php @@ -22,9 +22,19 @@ class QrCodeJoinResponse extends \Google\Protobuf\Internal\Message */ private $qr_code_image = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $qr_code_image + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeJoin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeNewDevice.php b/src/Proto/QrCodeNewDevice.php index 993a7fe..a3cd395 100644 --- a/src/Proto/QrCodeNewDevice.php +++ b/src/Proto/QrCodeNewDevice.php @@ -50,9 +50,26 @@ class QrCodeNewDevice extends \Google\Protobuf\Internal\Message */ private $device_name = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $app_name + * @type int $app_id + * @type int $app_build_version + * @type string $app_version + * @type int $platform + * @type string $platform_version + * @type int $device + * @type string $device_name + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeNewDevice::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeNewDeviceResponse.php b/src/Proto/QrCodeNewDeviceResponse.php index d5b3562..63a164c 100644 --- a/src/Proto/QrCodeNewDeviceResponse.php +++ b/src/Proto/QrCodeNewDeviceResponse.php @@ -26,9 +26,20 @@ class QrCodeNewDeviceResponse extends \Google\Protobuf\Internal\Message */ private $expire_time = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $qr_code_image + * @type int $expire_time + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeNewDevice::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeResolve.php b/src/Proto/QrCodeResolve.php index 6650711..c85c087 100644 --- a/src/Proto/QrCodeResolve.php +++ b/src/Proto/QrCodeResolve.php @@ -26,9 +26,20 @@ class QrCodeResolve extends \Google\Protobuf\Internal\Message */ private $message_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * @type int|string $message_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeResolve::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/QrCodeResolveResponse.php b/src/Proto/QrCodeResolveResponse.php index c79991f..c84401e 100644 --- a/src/Proto/QrCodeResolveResponse.php +++ b/src/Proto/QrCodeResolveResponse.php @@ -22,9 +22,19 @@ class QrCodeResolveResponse extends \Google\Protobuf\Internal\Message */ private $qr_code_image = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $qr_code_image + * } + */ + public function __construct($data = NULL) { \GPBMetadata\QrCodeResolve::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/RegisteredUser.php b/src/Proto/RegisteredUser.php index 9935590..389562b 100644 --- a/src/Proto/RegisteredUser.php +++ b/src/Proto/RegisteredUser.php @@ -82,9 +82,34 @@ class RegisteredUser extends \Google\Protobuf\Internal\Message */ private $verified = false; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $id + * @type string $username + * @type int|string $phone + * @type string $first_name + * @type string $last_name + * @type string $display_name + * @type string $initials + * @type string $color + * @type int $status + * @type int $last_seen + * @type int $avatar_count + * @type \Proto\Avatar $avatar + * @type bool $mutual + * @type bool $deleted + * @type string $cache_id + * @type string $bio + * @type bool $verified + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/RegisteredUser/Status.php b/src/Proto/RegisteredUser/Status.php new file mode 100644 index 0000000..561baf6 --- /dev/null +++ b/src/Proto/RegisteredUser/Status.php @@ -0,0 +1,48 @@ +proto.RegisteredUser.Status + */ +class Status +{ + /** + * Generated from protobuf enum LONG_TIME_AGO = 0; + */ + const LONG_TIME_AGO = 0; + /** + * Generated from protobuf enum LAST_MONTH = 1; + */ + const LAST_MONTH = 1; + /** + * Generated from protobuf enum LAST_WEEK = 2; + */ + const LAST_WEEK = 2; + /** + * Generated from protobuf enum ONLINE = 3; + */ + const ONLINE = 3; + /** + * Generated from protobuf enum EXACTLY = 4; + */ + const EXACTLY = 4; + /** + * Generated from protobuf enum RECENTLY = 5; + */ + const RECENTLY = 5; + /** + * Generated from protobuf enum SUPPORT = 6; + */ + const SUPPORT = 6; + /** + * Generated from protobuf enum SERVICE_NOTIFICATIONS = 7; + */ + const SERVICE_NOTIFICATIONS = 7; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\RegisteredUser_Status::class); + diff --git a/src/Proto/RegisteredUser_Status.php b/src/Proto/RegisteredUser_Status.php index b6c50fe..fba0dfd 100644 --- a/src/Proto/RegisteredUser_Status.php +++ b/src/Proto/RegisteredUser_Status.php @@ -4,42 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\RegisteredUser\Status - */ -class RegisteredUser_Status -{ +if (false) { /** - * Generated from protobuf enum LONG_TIME_AGO = 0; + * This class is deprecated. Use Proto\RegisteredUser\Status instead. + * @deprecated */ - const LONG_TIME_AGO = 0; - /** - * Generated from protobuf enum LAST_MONTH = 1; - */ - const LAST_MONTH = 1; - /** - * Generated from protobuf enum LAST_WEEK = 2; - */ - const LAST_WEEK = 2; - /** - * Generated from protobuf enum ONLINE = 3; - */ - const ONLINE = 3; - /** - * Generated from protobuf enum EXACTLY = 4; - */ - const EXACTLY = 4; - /** - * Generated from protobuf enum RECENTLY = 5; - */ - const RECENTLY = 5; - /** - * Generated from protobuf enum SUPPORT = 6; - */ - const SUPPORT = 6; - /** - * Generated from protobuf enum SERVICE_NOTIFICATIONS = 7; - */ - const SERVICE_NOTIFICATIONS = 7; + class RegisteredUser_Status {} } +class_exists(RegisteredUser\Status::class); +@trigger_error('Proto\RegisteredUser_Status is deprecated and will be removed in the next major release. Use Proto\RegisteredUser\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/Request.php b/src/Proto/Request.php index 7bd6008..145f596 100644 --- a/src/Proto/Request.php +++ b/src/Proto/Request.php @@ -18,9 +18,18 @@ class Request extends \Google\Protobuf\Internal\Message */ private $id = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\Request::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/Response.php b/src/Proto/Response.php index 9a93ab6..9c964f3 100644 --- a/src/Proto/Response.php +++ b/src/Proto/Response.php @@ -22,9 +22,19 @@ class Response extends \Google\Protobuf\Internal\Message */ private $timestamp = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * @type int $timestamp + * } + */ + public function __construct($data = NULL) { \GPBMetadata\Response::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/Room.php b/src/Proto/Room.php index f2c538d..4f220b6 100644 --- a/src/Proto/Room.php +++ b/src/Proto/Room.php @@ -82,9 +82,34 @@ class Room extends \Google\Protobuf\Internal\Message */ private $channel_room_extra = null; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $id + * @type int $type + * @type string $title + * @type string $initials + * @type string $color + * @type int $unread_count + * @type \Proto\RoomMessage $last_message + * @type bool $read_only + * @type bool $is_participant + * @type \Proto\RoomDraft $draft + * @type \Proto\RoomMessage $first_unread_message + * @type int $room_mute + * @type int|string $pin_id + * @type \Proto\RoomMessage $pinned_message + * @type \Proto\ChatRoom $chat_room_extra + * @type \Proto\GroupRoom $group_room_extra + * @type \Proto\ChannelRoom $channel_room_extra + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/Room/Type.php b/src/Proto/Room/Type.php new file mode 100644 index 0000000..3e3e9bc --- /dev/null +++ b/src/Proto/Room/Type.php @@ -0,0 +1,28 @@ +proto.Room.Type + */ +class Type +{ + /** + * Generated from protobuf enum CHAT = 0; + */ + const CHAT = 0; + /** + * Generated from protobuf enum GROUP = 1; + */ + const GROUP = 1; + /** + * Generated from protobuf enum CHANNEL = 2; + */ + const CHANNEL = 2; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\Room_Type::class); + diff --git a/src/Proto/RoomDraft.php b/src/Proto/RoomDraft.php index e271175..959474e 100644 --- a/src/Proto/RoomDraft.php +++ b/src/Proto/RoomDraft.php @@ -22,9 +22,19 @@ class RoomDraft extends \Google\Protobuf\Internal\Message */ private $reply_to = 0; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * @type int|string $reply_to + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/RoomMessage.php b/src/Proto/RoomMessage.php index 36dcb9a..3e1bf38 100644 --- a/src/Proto/RoomMessage.php +++ b/src/Proto/RoomMessage.php @@ -98,9 +98,38 @@ class RoomMessage extends \Google\Protobuf\Internal\Message */ private $channel_extra = null; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $message_id + * @type int|string $message_version + * @type int $status + * @type int|string $status_version + * @type int $message_type + * @type string $message + * @type \Proto\File $attachment + * @type \Proto\RoomMessage\Author $author + * @type \Proto\RoomMessageLocation $location + * @type \Proto\RoomMessageLog $log + * @type \Proto\RoomMessageContact $contact + * @type bool $edited + * @type int $create_time + * @type int $update_time + * @type bool $deleted + * @type \Proto\RoomMessage $forward_from + * @type \Proto\RoomMessage $reply_to + * @type int|string $previous_message_id + * @type int|string $random_id + * @type int $extra_type + * @type \Proto\RoomMessage\ChannelExtra $channel_extra + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** @@ -259,7 +288,7 @@ public function setAttachment($var) /** * Generated from protobuf field .proto.RoomMessage.Author author = 8; - * @return \Proto\RoomMessage_Author + * @return \Proto\RoomMessage\Author */ public function getAuthor() { @@ -268,7 +297,7 @@ public function getAuthor() /** * Generated from protobuf field .proto.RoomMessage.Author author = 8; - * @param \Proto\RoomMessage_Author $var + * @param \Proto\RoomMessage\Author $var * @return $this */ public function setAuthor($var) @@ -545,7 +574,7 @@ public function setExtraType($var) /** * Generated from protobuf field .proto.RoomMessage.ChannelExtra channel_extra = 20; - * @return \Proto\RoomMessage_ChannelExtra + * @return \Proto\RoomMessage\ChannelExtra */ public function getChannelExtra() { @@ -554,7 +583,7 @@ public function getChannelExtra() /** * Generated from protobuf field .proto.RoomMessage.ChannelExtra channel_extra = 20; - * @param \Proto\RoomMessage_ChannelExtra $var + * @param \Proto\RoomMessage\ChannelExtra $var * @return $this */ public function setChannelExtra($var) diff --git a/src/Proto/RoomMessage/Author.php b/src/Proto/RoomMessage/Author.php new file mode 100644 index 0000000..6e5c480 --- /dev/null +++ b/src/Proto/RoomMessage/Author.php @@ -0,0 +1,115 @@ +proto.RoomMessage.Author + */ +class Author extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string hash = 1; + */ + private $hash = ''; + /** + * Generated from protobuf field .proto.RoomMessage.Author.User user = 2; + */ + private $user = null; + /** + * Generated from protobuf field .proto.RoomMessage.Author.Room room = 3; + */ + private $room = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $hash + * @type \Proto\RoomMessage\Author\User $user + * @type \Proto\RoomMessage\Author\Room $room + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string hash = 1; + * @return string + */ + public function getHash() + { + return $this->hash; + } + + /** + * Generated from protobuf field string hash = 1; + * @param string $var + * @return $this + */ + public function setHash($var) + { + GPBUtil::checkString($var, True); + $this->hash = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.RoomMessage.Author.User user = 2; + * @return \Proto\RoomMessage\Author\User + */ + public function getUser() + { + return $this->user; + } + + /** + * Generated from protobuf field .proto.RoomMessage.Author.User user = 2; + * @param \Proto\RoomMessage\Author\User $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, \Proto\RoomMessage_Author_User::class); + $this->user = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.RoomMessage.Author.Room room = 3; + * @return \Proto\RoomMessage\Author\Room + */ + public function getRoom() + { + return $this->room; + } + + /** + * Generated from protobuf field .proto.RoomMessage.Author.Room room = 3; + * @param \Proto\RoomMessage\Author\Room $var + * @return $this + */ + public function setRoom($var) + { + GPBUtil::checkMessage($var, \Proto\RoomMessage_Author_Room::class); + $this->room = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Author::class, \Proto\RoomMessage_Author::class); + diff --git a/src/Proto/RoomMessage/Author/Room.php b/src/Proto/RoomMessage/Author/Room.php new file mode 100644 index 0000000..bd2df73 --- /dev/null +++ b/src/Proto/RoomMessage/Author/Room.php @@ -0,0 +1,61 @@ +proto.RoomMessage.Author.Room + */ +class Room extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 room_id = 1; + */ + private $room_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $room_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 room_id = 1; + * @return int|string + */ + public function getRoomId() + { + return $this->room_id; + } + + /** + * Generated from protobuf field uint64 room_id = 1; + * @param int|string $var + * @return $this + */ + public function setRoomId($var) + { + GPBUtil::checkUint64($var); + $this->room_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Room::class, \Proto\RoomMessage_Author_Room::class); + diff --git a/src/Proto/RoomMessage/Author/User.php b/src/Proto/RoomMessage/Author/User.php new file mode 100644 index 0000000..e3415ed --- /dev/null +++ b/src/Proto/RoomMessage/Author/User.php @@ -0,0 +1,88 @@ +proto.RoomMessage.Author.User + */ +class User extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 user_id = 1; + */ + private $user_id = 0; + /** + * Generated from protobuf field string cache_id = 2; + */ + private $cache_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $user_id + * @type string $cache_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @return int|string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->user_id = $var; + + return $this; + } + + /** + * Generated from protobuf field string cache_id = 2; + * @return string + */ + public function getCacheId() + { + return $this->cache_id; + } + + /** + * Generated from protobuf field string cache_id = 2; + * @param string $var + * @return $this + */ + public function setCacheId($var) + { + GPBUtil::checkString($var, True); + $this->cache_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(User::class, \Proto\RoomMessage_Author_User::class); + diff --git a/src/Proto/RoomMessage/ChannelExtra.php b/src/Proto/RoomMessage/ChannelExtra.php new file mode 100644 index 0000000..48d707f --- /dev/null +++ b/src/Proto/RoomMessage/ChannelExtra.php @@ -0,0 +1,142 @@ +proto.RoomMessage.ChannelExtra + */ +class ChannelExtra extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string signature = 1; + */ + private $signature = ''; + /** + * Generated from protobuf field string views_label = 2; + */ + private $views_label = ''; + /** + * Generated from protobuf field string thumbs_up_label = 3; + */ + private $thumbs_up_label = ''; + /** + * Generated from protobuf field string thumbs_down_label = 4; + */ + private $thumbs_down_label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $signature + * @type string $views_label + * @type string $thumbs_up_label + * @type string $thumbs_down_label + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string signature = 1; + * @return string + */ + public function getSignature() + { + return $this->signature; + } + + /** + * Generated from protobuf field string signature = 1; + * @param string $var + * @return $this + */ + public function setSignature($var) + { + GPBUtil::checkString($var, True); + $this->signature = $var; + + return $this; + } + + /** + * Generated from protobuf field string views_label = 2; + * @return string + */ + public function getViewsLabel() + { + return $this->views_label; + } + + /** + * Generated from protobuf field string views_label = 2; + * @param string $var + * @return $this + */ + public function setViewsLabel($var) + { + GPBUtil::checkString($var, True); + $this->views_label = $var; + + return $this; + } + + /** + * Generated from protobuf field string thumbs_up_label = 3; + * @return string + */ + public function getThumbsUpLabel() + { + return $this->thumbs_up_label; + } + + /** + * Generated from protobuf field string thumbs_up_label = 3; + * @param string $var + * @return $this + */ + public function setThumbsUpLabel($var) + { + GPBUtil::checkString($var, True); + $this->thumbs_up_label = $var; + + return $this; + } + + /** + * Generated from protobuf field string thumbs_down_label = 4; + * @return string + */ + public function getThumbsDownLabel() + { + return $this->thumbs_down_label; + } + + /** + * Generated from protobuf field string thumbs_down_label = 4; + * @param string $var + * @return $this + */ + public function setThumbsDownLabel($var) + { + GPBUtil::checkString($var, True); + $this->thumbs_down_label = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChannelExtra::class, \Proto\RoomMessage_ChannelExtra::class); + diff --git a/src/Proto/RoomMessage/ExtraType.php b/src/Proto/RoomMessage/ExtraType.php new file mode 100644 index 0000000..d9e9656 --- /dev/null +++ b/src/Proto/RoomMessage/ExtraType.php @@ -0,0 +1,24 @@ +proto.RoomMessage.ExtraType + */ +class ExtraType +{ + /** + * Generated from protobuf enum NO_EXTRA = 0; + */ + const NO_EXTRA = 0; + /** + * Generated from protobuf enum CHANNEL_EXTRA = 1; + */ + const CHANNEL_EXTRA = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ExtraType::class, \Proto\RoomMessage_ExtraType::class); + diff --git a/src/Proto/RoomMessageContact.php b/src/Proto/RoomMessageContact.php index dc8fce1..03ef533 100644 --- a/src/Proto/RoomMessageContact.php +++ b/src/Proto/RoomMessageContact.php @@ -34,9 +34,22 @@ class RoomMessageContact extends \Google\Protobuf\Internal\Message */ private $email; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $first_name + * @type string $last_name + * @type string $nickname + * @type string[]|\Google\Protobuf\Internal\RepeatedField $phone + * @type string[]|\Google\Protobuf\Internal\RepeatedField $email + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/RoomMessageForwardFrom.php b/src/Proto/RoomMessageForwardFrom.php index f6719d2..49fb87e 100644 --- a/src/Proto/RoomMessageForwardFrom.php +++ b/src/Proto/RoomMessageForwardFrom.php @@ -22,9 +22,19 @@ class RoomMessageForwardFrom extends \Google\Protobuf\Internal\Message */ private $message_id = 0; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $room_id + * @type int|string $message_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/RoomMessageLocation.php b/src/Proto/RoomMessageLocation.php index 2021306..1ecc01b 100644 --- a/src/Proto/RoomMessageLocation.php +++ b/src/Proto/RoomMessageLocation.php @@ -22,9 +22,19 @@ class RoomMessageLocation extends \Google\Protobuf\Internal\Message */ private $lon = 0.0; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $lat + * @type float $lon + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/RoomMessageLog.php b/src/Proto/RoomMessageLog.php index ac42ac8..1035bf6 100644 --- a/src/Proto/RoomMessageLog.php +++ b/src/Proto/RoomMessageLog.php @@ -26,9 +26,20 @@ class RoomMessageLog extends \Google\Protobuf\Internal\Message */ private $target_user = null; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * @type int $extra_type + * @type \Proto\RoomMessageLog\TargetUser $target_user + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** @@ -77,7 +88,7 @@ public function setExtraType($var) /** * Generated from protobuf field .proto.RoomMessageLog.TargetUser target_user = 3; - * @return \Proto\RoomMessageLog_TargetUser + * @return \Proto\RoomMessageLog\TargetUser */ public function getTargetUser() { @@ -86,7 +97,7 @@ public function getTargetUser() /** * Generated from protobuf field .proto.RoomMessageLog.TargetUser target_user = 3; - * @param \Proto\RoomMessageLog_TargetUser $var + * @param \Proto\RoomMessageLog\TargetUser $var * @return $this */ public function setTargetUser($var) diff --git a/src/Proto/RoomMessageLog/ExtraType.php b/src/Proto/RoomMessageLog/ExtraType.php new file mode 100644 index 0000000..e5eb412 --- /dev/null +++ b/src/Proto/RoomMessageLog/ExtraType.php @@ -0,0 +1,24 @@ +proto.RoomMessageLog.ExtraType + */ +class ExtraType +{ + /** + * Generated from protobuf enum NO_EXTRA = 0; + */ + const NO_EXTRA = 0; + /** + * Generated from protobuf enum TARGET_USER = 1; + */ + const TARGET_USER = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ExtraType::class, \Proto\RoomMessageLog_ExtraType::class); + diff --git a/src/Proto/RoomMessageLog/TargetUser.php b/src/Proto/RoomMessageLog/TargetUser.php new file mode 100644 index 0000000..37dc106 --- /dev/null +++ b/src/Proto/RoomMessageLog/TargetUser.php @@ -0,0 +1,61 @@ +proto.RoomMessageLog.TargetUser + */ +class TargetUser extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 id = 1; + */ + private $id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 id = 1; + * @return int|string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field uint64 id = 1; + * @param int|string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkUint64($var); + $this->id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TargetUser::class, \Proto\RoomMessageLog_TargetUser::class); + diff --git a/src/Proto/RoomMessageLog/Type.php b/src/Proto/RoomMessageLog/Type.php new file mode 100644 index 0000000..498742a --- /dev/null +++ b/src/Proto/RoomMessageLog/Type.php @@ -0,0 +1,76 @@ +proto.RoomMessageLog.Type + */ +class Type +{ + /** + * Generated from protobuf enum USER_JOINED = 0; + */ + const USER_JOINED = 0; + /** + * Generated from protobuf enum USER_DELETED = 1; + */ + const USER_DELETED = 1; + /** + * Generated from protobuf enum ROOM_CREATED = 2; + */ + const ROOM_CREATED = 2; + /** + * Generated from protobuf enum MEMBER_ADDED = 3; + */ + const MEMBER_ADDED = 3; + /** + * Generated from protobuf enum MEMBER_KICKED = 4; + */ + const MEMBER_KICKED = 4; + /** + * Generated from protobuf enum MEMBER_LEFT = 5; + */ + const MEMBER_LEFT = 5; + /** + * Generated from protobuf enum ROOM_CONVERTED_TO_PUBLIC = 6; + */ + const ROOM_CONVERTED_TO_PUBLIC = 6; + /** + * Generated from protobuf enum ROOM_CONVERTED_TO_PRIVATE = 7; + */ + const ROOM_CONVERTED_TO_PRIVATE = 7; + /** + * Generated from protobuf enum MEMBER_JOINED_BY_INVITE_LINK = 8; + */ + const MEMBER_JOINED_BY_INVITE_LINK = 8; + /** + * Generated from protobuf enum ROOM_DELETED = 9; + */ + const ROOM_DELETED = 9; + /** + * Generated from protobuf enum MISSED_VOICE_CALL = 10; + */ + const MISSED_VOICE_CALL = 10; + /** + * Generated from protobuf enum MISSED_VIDEO_CALL = 11; + */ + const MISSED_VIDEO_CALL = 11; + /** + * Generated from protobuf enum MISSED_SCREEN_SHARE = 12; + */ + const MISSED_SCREEN_SHARE = 12; + /** + * Generated from protobuf enum MISSED_SECRET_CHAT = 13; + */ + const MISSED_SECRET_CHAT = 13; + /** + * Generated from protobuf enum PINNED_MESSAGE = 14; + */ + const PINNED_MESSAGE = 14; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\RoomMessageLog_Type::class); + diff --git a/src/Proto/RoomMessageLog_ExtraType.php b/src/Proto/RoomMessageLog_ExtraType.php index d941f5a..465d237 100644 --- a/src/Proto/RoomMessageLog_ExtraType.php +++ b/src/Proto/RoomMessageLog_ExtraType.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\RoomMessageLog\ExtraType - */ -class RoomMessageLog_ExtraType -{ +if (false) { /** - * Generated from protobuf enum NO_EXTRA = 0; + * This class is deprecated. Use Proto\RoomMessageLog\ExtraType instead. + * @deprecated */ - const NO_EXTRA = 0; - /** - * Generated from protobuf enum TARGET_USER = 1; - */ - const TARGET_USER = 1; + class RoomMessageLog_ExtraType {} } +class_exists(RoomMessageLog\ExtraType::class); +@trigger_error('Proto\RoomMessageLog_ExtraType is deprecated and will be removed in the next major release. Use Proto\RoomMessageLog\ExtraType instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMessageLog_TargetUser.php b/src/Proto/RoomMessageLog_TargetUser.php index f37bca6..35cf664 100644 --- a/src/Proto/RoomMessageLog_TargetUser.php +++ b/src/Proto/RoomMessageLog_TargetUser.php @@ -4,46 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.RoomMessageLog.TargetUser - */ -class RoomMessageLog_TargetUser extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 id = 1; - */ - private $id = 0; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - +if (false) { /** - * Generated from protobuf field uint64 id = 1; - * @return int|string + * This class is deprecated. Use Proto\RoomMessageLog\TargetUser instead. + * @deprecated */ - public function getId() - { - return $this->id; - } - - /** - * Generated from protobuf field uint64 id = 1; - * @param int|string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkUint64($var); - $this->id = $var; - - return $this; - } - + class RoomMessageLog_TargetUser {} } +class_exists(RoomMessageLog\TargetUser::class); +@trigger_error('Proto\RoomMessageLog_TargetUser is deprecated and will be removed in the next major release. Use Proto\RoomMessageLog\TargetUser instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMessageLog_Type.php b/src/Proto/RoomMessageLog_Type.php index b1d05e4..071c544 100644 --- a/src/Proto/RoomMessageLog_Type.php +++ b/src/Proto/RoomMessageLog_Type.php @@ -4,70 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\RoomMessageLog\Type - */ -class RoomMessageLog_Type -{ +if (false) { /** - * Generated from protobuf enum USER_JOINED = 0; + * This class is deprecated. Use Proto\RoomMessageLog\Type instead. + * @deprecated */ - const USER_JOINED = 0; - /** - * Generated from protobuf enum USER_DELETED = 1; - */ - const USER_DELETED = 1; - /** - * Generated from protobuf enum ROOM_CREATED = 2; - */ - const ROOM_CREATED = 2; - /** - * Generated from protobuf enum MEMBER_ADDED = 3; - */ - const MEMBER_ADDED = 3; - /** - * Generated from protobuf enum MEMBER_KICKED = 4; - */ - const MEMBER_KICKED = 4; - /** - * Generated from protobuf enum MEMBER_LEFT = 5; - */ - const MEMBER_LEFT = 5; - /** - * Generated from protobuf enum ROOM_CONVERTED_TO_PUBLIC = 6; - */ - const ROOM_CONVERTED_TO_PUBLIC = 6; - /** - * Generated from protobuf enum ROOM_CONVERTED_TO_PRIVATE = 7; - */ - const ROOM_CONVERTED_TO_PRIVATE = 7; - /** - * Generated from protobuf enum MEMBER_JOINED_BY_INVITE_LINK = 8; - */ - const MEMBER_JOINED_BY_INVITE_LINK = 8; - /** - * Generated from protobuf enum ROOM_DELETED = 9; - */ - const ROOM_DELETED = 9; - /** - * Generated from protobuf enum MISSED_VOICE_CALL = 10; - */ - const MISSED_VOICE_CALL = 10; - /** - * Generated from protobuf enum MISSED_VIDEO_CALL = 11; - */ - const MISSED_VIDEO_CALL = 11; - /** - * Generated from protobuf enum MISSED_SCREEN_SHARE = 12; - */ - const MISSED_SCREEN_SHARE = 12; - /** - * Generated from protobuf enum MISSED_SECRET_CHAT = 13; - */ - const MISSED_SECRET_CHAT = 13; - /** - * Generated from protobuf enum PINNED_MESSAGE = 14; - */ - const PINNED_MESSAGE = 14; + class RoomMessageLog_Type {} } +class_exists(RoomMessageLog\Type::class); +@trigger_error('Proto\RoomMessageLog_Type is deprecated and will be removed in the next major release. Use Proto\RoomMessageLog\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMessageReaction.php b/src/Proto/RoomMessageReaction.php index 5654c8f..37acb89 100644 --- a/src/Proto/RoomMessageReaction.php +++ b/src/Proto/RoomMessageReaction.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\RoomMessageReaction + * Protobuf type proto.RoomMessageReaction */ class RoomMessageReaction { diff --git a/src/Proto/RoomMessageStatus.php b/src/Proto/RoomMessageStatus.php index e16dadc..8f8394f 100644 --- a/src/Proto/RoomMessageStatus.php +++ b/src/Proto/RoomMessageStatus.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\RoomMessageStatus + * Protobuf type proto.RoomMessageStatus */ class RoomMessageStatus { diff --git a/src/Proto/RoomMessageType.php b/src/Proto/RoomMessageType.php index 85dd4d0..bff7ad4 100644 --- a/src/Proto/RoomMessageType.php +++ b/src/Proto/RoomMessageType.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\RoomMessageType + * Protobuf type proto.RoomMessageType */ class RoomMessageType { diff --git a/src/Proto/RoomMessage_Author.php b/src/Proto/RoomMessage_Author.php index 9dfe4c8..26aac31 100644 --- a/src/Proto/RoomMessage_Author.php +++ b/src/Proto/RoomMessage_Author.php @@ -4,98 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.RoomMessage.Author - */ -class RoomMessage_Author extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string hash = 1; - */ - private $hash = ''; - /** - * Generated from protobuf field .proto.RoomMessage.Author.User user = 2; - */ - private $user = null; - /** - * Generated from protobuf field .proto.RoomMessage.Author.Room room = 3; - */ - private $room = null; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field string hash = 1; - * @return string - */ - public function getHash() - { - return $this->hash; - } - - /** - * Generated from protobuf field string hash = 1; - * @param string $var - * @return $this - */ - public function setHash($var) - { - GPBUtil::checkString($var, True); - $this->hash = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.RoomMessage.Author.User user = 2; - * @return \Proto\RoomMessage_Author_User - */ - public function getUser() - { - return $this->user; - } - - /** - * Generated from protobuf field .proto.RoomMessage.Author.User user = 2; - * @param \Proto\RoomMessage_Author_User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Proto\RoomMessage_Author_User::class); - $this->user = $var; - - return $this; - } - +if (false) { /** - * Generated from protobuf field .proto.RoomMessage.Author.Room room = 3; - * @return \Proto\RoomMessage_Author_Room + * This class is deprecated. Use Proto\RoomMessage\Author instead. + * @deprecated */ - public function getRoom() - { - return $this->room; - } - - /** - * Generated from protobuf field .proto.RoomMessage.Author.Room room = 3; - * @param \Proto\RoomMessage_Author_Room $var - * @return $this - */ - public function setRoom($var) - { - GPBUtil::checkMessage($var, \Proto\RoomMessage_Author_Room::class); - $this->room = $var; - - return $this; - } - + class RoomMessage_Author {} } +class_exists(RoomMessage\Author::class); +@trigger_error('Proto\RoomMessage_Author is deprecated and will be removed in the next major release. Use Proto\RoomMessage\Author instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMessage_Author_Room.php b/src/Proto/RoomMessage_Author_Room.php index 199ea93..57e1e31 100644 --- a/src/Proto/RoomMessage_Author_Room.php +++ b/src/Proto/RoomMessage_Author_Room.php @@ -4,46 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.RoomMessage.Author.Room - */ -class RoomMessage_Author_Room extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 room_id = 1; - */ - private $room_id = 0; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - +if (false) { /** - * Generated from protobuf field uint64 room_id = 1; - * @return int|string + * This class is deprecated. Use Proto\RoomMessage\Author\Room instead. + * @deprecated */ - public function getRoomId() - { - return $this->room_id; - } - - /** - * Generated from protobuf field uint64 room_id = 1; - * @param int|string $var - * @return $this - */ - public function setRoomId($var) - { - GPBUtil::checkUint64($var); - $this->room_id = $var; - - return $this; - } - + class RoomMessage_Author_Room {} } +class_exists(RoomMessage\Author\Room::class); +@trigger_error('Proto\RoomMessage_Author_Room is deprecated and will be removed in the next major release. Use Proto\RoomMessage\Author\Room instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMessage_Author_User.php b/src/Proto/RoomMessage_Author_User.php index 51c5a75..86b0cd9 100644 --- a/src/Proto/RoomMessage_Author_User.php +++ b/src/Proto/RoomMessage_Author_User.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.RoomMessage.Author.User - */ -class RoomMessage_Author_User extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 user_id = 1; - */ - private $user_id = 0; - /** - * Generated from protobuf field string cache_id = 2; - */ - private $cache_id = ''; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @return int|string - */ - public function getUserId() - { - return $this->user_id; - } - +if (false) { /** - * Generated from protobuf field uint64 user_id = 1; - * @param int|string $var - * @return $this + * This class is deprecated. Use Proto\RoomMessage\Author\User instead. + * @deprecated */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->user_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string cache_id = 2; - * @return string - */ - public function getCacheId() - { - return $this->cache_id; - } - - /** - * Generated from protobuf field string cache_id = 2; - * @param string $var - * @return $this - */ - public function setCacheId($var) - { - GPBUtil::checkString($var, True); - $this->cache_id = $var; - - return $this; - } - + class RoomMessage_Author_User {} } +class_exists(RoomMessage\Author\User::class); +@trigger_error('Proto\RoomMessage_Author_User is deprecated and will be removed in the next major release. Use Proto\RoomMessage\Author\User instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMessage_ChannelExtra.php b/src/Proto/RoomMessage_ChannelExtra.php index 66b4e90..6d966c9 100644 --- a/src/Proto/RoomMessage_ChannelExtra.php +++ b/src/Proto/RoomMessage_ChannelExtra.php @@ -4,124 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.RoomMessage.ChannelExtra - */ -class RoomMessage_ChannelExtra extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string signature = 1; - */ - private $signature = ''; - /** - * Generated from protobuf field string views_label = 2; - */ - private $views_label = ''; +if (false) { /** - * Generated from protobuf field string thumbs_up_label = 3; + * This class is deprecated. Use Proto\RoomMessage\ChannelExtra instead. + * @deprecated */ - private $thumbs_up_label = ''; - /** - * Generated from protobuf field string thumbs_down_label = 4; - */ - private $thumbs_down_label = ''; - - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field string signature = 1; - * @return string - */ - public function getSignature() - { - return $this->signature; - } - - /** - * Generated from protobuf field string signature = 1; - * @param string $var - * @return $this - */ - public function setSignature($var) - { - GPBUtil::checkString($var, True); - $this->signature = $var; - - return $this; - } - - /** - * Generated from protobuf field string views_label = 2; - * @return string - */ - public function getViewsLabel() - { - return $this->views_label; - } - - /** - * Generated from protobuf field string views_label = 2; - * @param string $var - * @return $this - */ - public function setViewsLabel($var) - { - GPBUtil::checkString($var, True); - $this->views_label = $var; - - return $this; - } - - /** - * Generated from protobuf field string thumbs_up_label = 3; - * @return string - */ - public function getThumbsUpLabel() - { - return $this->thumbs_up_label; - } - - /** - * Generated from protobuf field string thumbs_up_label = 3; - * @param string $var - * @return $this - */ - public function setThumbsUpLabel($var) - { - GPBUtil::checkString($var, True); - $this->thumbs_up_label = $var; - - return $this; - } - - /** - * Generated from protobuf field string thumbs_down_label = 4; - * @return string - */ - public function getThumbsDownLabel() - { - return $this->thumbs_down_label; - } - - /** - * Generated from protobuf field string thumbs_down_label = 4; - * @param string $var - * @return $this - */ - public function setThumbsDownLabel($var) - { - GPBUtil::checkString($var, True); - $this->thumbs_down_label = $var; - - return $this; - } - + class RoomMessage_ChannelExtra {} } +class_exists(RoomMessage\ChannelExtra::class); +@trigger_error('Proto\RoomMessage_ChannelExtra is deprecated and will be removed in the next major release. Use Proto\RoomMessage\ChannelExtra instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMessage_ExtraType.php b/src/Proto/RoomMessage_ExtraType.php index 6bc3add..d63c97a 100644 --- a/src/Proto/RoomMessage_ExtraType.php +++ b/src/Proto/RoomMessage_ExtraType.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\RoomMessage\ExtraType - */ -class RoomMessage_ExtraType -{ +if (false) { /** - * Generated from protobuf enum NO_EXTRA = 0; + * This class is deprecated. Use Proto\RoomMessage\ExtraType instead. + * @deprecated */ - const NO_EXTRA = 0; - /** - * Generated from protobuf enum CHANNEL_EXTRA = 1; - */ - const CHANNEL_EXTRA = 1; + class RoomMessage_ExtraType {} } +class_exists(RoomMessage\ExtraType::class); +@trigger_error('Proto\RoomMessage_ExtraType is deprecated and will be removed in the next major release. Use Proto\RoomMessage\ExtraType instead', E_USER_DEPRECATED); diff --git a/src/Proto/RoomMute.php b/src/Proto/RoomMute.php index b5594ca..b8f7355 100644 --- a/src/Proto/RoomMute.php +++ b/src/Proto/RoomMute.php @@ -5,7 +5,7 @@ namespace Proto; /** - * Protobuf enum Proto\RoomMute + * Protobuf type proto.RoomMute */ class RoomMute { diff --git a/src/Proto/Room_Type.php b/src/Proto/Room_Type.php index 818af9d..4fc98c4 100644 --- a/src/Proto/Room_Type.php +++ b/src/Proto/Room_Type.php @@ -4,22 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\Room\Type - */ -class Room_Type -{ +if (false) { /** - * Generated from protobuf enum CHAT = 0; + * This class is deprecated. Use Proto\Room\Type instead. + * @deprecated */ - const CHAT = 0; - /** - * Generated from protobuf enum GROUP = 1; - */ - const GROUP = 1; - /** - * Generated from protobuf enum CHANNEL = 2; - */ - const CHANNEL = 2; + class Room_Type {} } +class_exists(Room\Type::class); +@trigger_error('Proto\Room_Type is deprecated and will be removed in the next major release. Use Proto\Room\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/SignalingAccept.php b/src/Proto/SignalingAccept.php index a4f7151..4f5383d 100644 --- a/src/Proto/SignalingAccept.php +++ b/src/Proto/SignalingAccept.php @@ -22,9 +22,19 @@ class SignalingAccept extends \Google\Protobuf\Internal\Message */ private $called_sdp = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $called_sdp + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingAccept::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingAcceptResponse.php b/src/Proto/SignalingAcceptResponse.php index d32b8c0..7c6e43e 100644 --- a/src/Proto/SignalingAcceptResponse.php +++ b/src/Proto/SignalingAcceptResponse.php @@ -22,9 +22,19 @@ class SignalingAcceptResponse extends \Google\Protobuf\Internal\Message */ private $called_sdp = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $called_sdp + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingAccept::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingCandidate.php b/src/Proto/SignalingCandidate.php index af10699..1e4841a 100644 --- a/src/Proto/SignalingCandidate.php +++ b/src/Proto/SignalingCandidate.php @@ -30,9 +30,21 @@ class SignalingCandidate extends \Google\Protobuf\Internal\Message */ private $sdp_m_line_index = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $candidate + * @type string $sdp_m_id + * @type int $sdp_m_line_index + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingCandidate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingCandidateResponse.php b/src/Proto/SignalingCandidateResponse.php index f51e3ec..3201bca 100644 --- a/src/Proto/SignalingCandidateResponse.php +++ b/src/Proto/SignalingCandidateResponse.php @@ -30,9 +30,21 @@ class SignalingCandidateResponse extends \Google\Protobuf\Internal\Message */ private $peer_sdp_m_line_index = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $peer_candidate + * @type string $peer_sdp_m_id + * @type int $peer_sdp_m_line_index + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingCandidate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingClearLog.php b/src/Proto/SignalingClearLog.php index aeb79c7..d5d5c7a 100644 --- a/src/Proto/SignalingClearLog.php +++ b/src/Proto/SignalingClearLog.php @@ -22,9 +22,19 @@ class SignalingClearLog extends \Google\Protobuf\Internal\Message */ private $clear_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $clear_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingClearLog::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingClearLogResponse.php b/src/Proto/SignalingClearLogResponse.php index 6599aba..0fb027c 100644 --- a/src/Proto/SignalingClearLogResponse.php +++ b/src/Proto/SignalingClearLogResponse.php @@ -22,9 +22,19 @@ class SignalingClearLogResponse extends \Google\Protobuf\Internal\Message */ private $clear_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $clear_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingClearLog::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingGetConfiguration.php b/src/Proto/SignalingGetConfiguration.php index e717cc6..492add3 100644 --- a/src/Proto/SignalingGetConfiguration.php +++ b/src/Proto/SignalingGetConfiguration.php @@ -18,9 +18,18 @@ class SignalingGetConfiguration extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingGetConfiguration::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingGetConfigurationResponse.php b/src/Proto/SignalingGetConfigurationResponse.php index ea8a5a0..12c61f7 100644 --- a/src/Proto/SignalingGetConfigurationResponse.php +++ b/src/Proto/SignalingGetConfigurationResponse.php @@ -38,9 +38,23 @@ class SignalingGetConfigurationResponse extends \Google\Protobuf\Internal\Messag */ private $secret_chat = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\SignalingGetConfigurationResponse\IceServer[]|\Google\Protobuf\Internal\RepeatedField $ice_server + * @type bool $voice_calling + * @type bool $video_calling + * @type bool $screen_sharing + * @type bool $secret_chat + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingGetConfiguration::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -76,12 +90,12 @@ public function getIceServer() /** * Generated from protobuf field repeated .proto.SignalingGetConfigurationResponse.IceServer ice_server = 2; - * @param \Proto\SignalingGetConfigurationResponse_IceServer[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\SignalingGetConfigurationResponse\IceServer[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIceServer($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\SignalingGetConfigurationResponse_IceServer::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\SignalingGetConfigurationResponse\IceServer::class); $this->ice_server = $arr; return $this; diff --git a/src/Proto/SignalingGetConfigurationResponse/IceServer.php b/src/Proto/SignalingGetConfigurationResponse/IceServer.php new file mode 100644 index 0000000..42bf248 --- /dev/null +++ b/src/Proto/SignalingGetConfigurationResponse/IceServer.php @@ -0,0 +1,115 @@ +proto.SignalingGetConfigurationResponse.IceServer + */ +class IceServer extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string url = 1; + */ + private $url = ''; + /** + * Generated from protobuf field string credential = 2; + */ + private $credential = ''; + /** + * Generated from protobuf field string username = 3; + */ + private $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * @type string $credential + * @type string $username + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\SignalingGetConfiguration::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * 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; + } + + /** + * Generated from protobuf field string credential = 2; + * @return string + */ + public function getCredential() + { + return $this->credential; + } + + /** + * Generated from protobuf field string credential = 2; + * @param string $var + * @return $this + */ + public function setCredential($var) + { + GPBUtil::checkString($var, True); + $this->credential = $var; + + return $this; + } + + /** + * Generated from protobuf field string username = 3; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Generated from protobuf field string username = 3; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IceServer::class, \Proto\SignalingGetConfigurationResponse_IceServer::class); + diff --git a/src/Proto/SignalingGetConfigurationResponse_IceServer.php b/src/Proto/SignalingGetConfigurationResponse_IceServer.php index 5523b4b..8bf4648 100644 --- a/src/Proto/SignalingGetConfigurationResponse_IceServer.php +++ b/src/Proto/SignalingGetConfigurationResponse_IceServer.php @@ -4,98 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.SignalingGetConfigurationResponse.IceServer - */ -class SignalingGetConfigurationResponse_IceServer extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string url = 1; - */ - private $url = ''; - /** - * Generated from protobuf field string credential = 2; - */ - private $credential = ''; - /** - * Generated from protobuf field string username = 3; - */ - private $username = ''; - - public function __construct() { - \GPBMetadata\SignalingGetConfiguration::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * 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; - } - - /** - * Generated from protobuf field string credential = 2; - * @return string - */ - public function getCredential() - { - return $this->credential; - } - - /** - * Generated from protobuf field string credential = 2; - * @param string $var - * @return $this - */ - public function setCredential($var) - { - GPBUtil::checkString($var, True); - $this->credential = $var; - - return $this; - } - +if (false) { /** - * Generated from protobuf field string username = 3; - * @return string + * This class is deprecated. Use Proto\SignalingGetConfigurationResponse\IceServer instead. + * @deprecated */ - public function getUsername() - { - return $this->username; - } - - /** - * Generated from protobuf field string username = 3; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - + class SignalingGetConfigurationResponse_IceServer {} } +class_exists(SignalingGetConfigurationResponse\IceServer::class); +@trigger_error('Proto\SignalingGetConfigurationResponse_IceServer is deprecated and will be removed in the next major release. Use Proto\SignalingGetConfigurationResponse\IceServer instead', E_USER_DEPRECATED); diff --git a/src/Proto/SignalingGetLog.php b/src/Proto/SignalingGetLog.php index 3dda19f..bc6acb4 100644 --- a/src/Proto/SignalingGetLog.php +++ b/src/Proto/SignalingGetLog.php @@ -22,9 +22,19 @@ class SignalingGetLog extends \Google\Protobuf\Internal\Message */ private $pagination = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type \Proto\Pagination $pagination + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingGetLog::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingGetLogResponse.php b/src/Proto/SignalingGetLogResponse.php index 5f375c9..caf7fce 100644 --- a/src/Proto/SignalingGetLogResponse.php +++ b/src/Proto/SignalingGetLogResponse.php @@ -22,9 +22,19 @@ class SignalingGetLogResponse extends \Google\Protobuf\Internal\Message */ private $signaling_log; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\SignalingGetLogResponse\SignalingLog[]|\Google\Protobuf\Internal\RepeatedField $signaling_log + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingGetLog::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getSignalingLog() /** * Generated from protobuf field repeated .proto.SignalingGetLogResponse.SignalingLog signaling_log = 2; - * @param \Proto\SignalingGetLogResponse_SignalingLog[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\SignalingGetLogResponse\SignalingLog[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSignalingLog($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\SignalingGetLogResponse_SignalingLog::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\SignalingGetLogResponse\SignalingLog::class); $this->signaling_log = $arr; return $this; diff --git a/src/Proto/SignalingGetLogResponse/SignalingLog.php b/src/Proto/SignalingGetLogResponse/SignalingLog.php new file mode 100644 index 0000000..e5dfbd0 --- /dev/null +++ b/src/Proto/SignalingGetLogResponse/SignalingLog.php @@ -0,0 +1,196 @@ +proto.SignalingGetLogResponse.SignalingLog + */ +class SignalingLog extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 id = 1; + */ + private $id = 0; + /** + * Generated from protobuf field .proto.SignalingOffer.Type type = 2; + */ + private $type = 0; + /** + * Generated from protobuf field .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + */ + private $status = 0; + /** + * Generated from protobuf field .proto.RegisteredUser peer = 4; + */ + private $peer = null; + /** + * Generated from protobuf field uint32 offer_time = 5; + */ + private $offer_time = 0; + /** + * Generated from protobuf field uint32 duration = 6; + */ + private $duration = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $id + * @type int $type + * @type int $status + * @type \Proto\RegisteredUser $peer + * @type int $offer_time + * @type int $duration + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\SignalingGetLog::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 id = 1; + * @return int|string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field uint64 id = 1; + * @param int|string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkUint64($var); + $this->id = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.SignalingOffer.Type type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Generated from protobuf field .proto.SignalingOffer.Type type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Proto\SignalingOffer_Type::class); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Generated from protobuf field .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Proto\SignalingGetLogResponse_SignalingLog_Status::class); + $this->status = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.RegisteredUser peer = 4; + * @return \Proto\RegisteredUser + */ + public function getPeer() + { + return $this->peer; + } + + /** + * Generated from protobuf field .proto.RegisteredUser peer = 4; + * @param \Proto\RegisteredUser $var + * @return $this + */ + public function setPeer($var) + { + GPBUtil::checkMessage($var, \Proto\RegisteredUser::class); + $this->peer = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 offer_time = 5; + * @return int + */ + public function getOfferTime() + { + return $this->offer_time; + } + + /** + * Generated from protobuf field uint32 offer_time = 5; + * @param int $var + * @return $this + */ + public function setOfferTime($var) + { + GPBUtil::checkUint32($var); + $this->offer_time = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 duration = 6; + * @return int + */ + public function getDuration() + { + return $this->duration; + } + + /** + * Generated from protobuf field uint32 duration = 6; + * @param int $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkUint32($var); + $this->duration = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SignalingLog::class, \Proto\SignalingGetLogResponse_SignalingLog::class); + diff --git a/src/Proto/SignalingGetLogResponse/SignalingLog/Status.php b/src/Proto/SignalingGetLogResponse/SignalingLog/Status.php new file mode 100644 index 0000000..6e3a32e --- /dev/null +++ b/src/Proto/SignalingGetLogResponse/SignalingLog/Status.php @@ -0,0 +1,32 @@ +proto.SignalingGetLogResponse.SignalingLog.Status + */ +class Status +{ + /** + * Generated from protobuf enum MISSED = 0; + */ + const MISSED = 0; + /** + * Generated from protobuf enum CANCELED = 1; + */ + const CANCELED = 1; + /** + * Generated from protobuf enum INCOMING = 2; + */ + const INCOMING = 2; + /** + * Generated from protobuf enum OUTGOING = 3; + */ + const OUTGOING = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\SignalingGetLogResponse_SignalingLog_Status::class); + diff --git a/src/Proto/SignalingGetLogResponse_SignalingLog.php b/src/Proto/SignalingGetLogResponse_SignalingLog.php index 9e86ead..15c81fa 100644 --- a/src/Proto/SignalingGetLogResponse_SignalingLog.php +++ b/src/Proto/SignalingGetLogResponse_SignalingLog.php @@ -4,176 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.SignalingGetLogResponse.SignalingLog - */ -class SignalingGetLogResponse_SignalingLog extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 id = 1; - */ - private $id = 0; - /** - * Generated from protobuf field .proto.SignalingOffer.Type type = 2; - */ - private $type = 0; - /** - * Generated from protobuf field .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; - */ - private $status = 0; - /** - * Generated from protobuf field .proto.RegisteredUser peer = 4; - */ - private $peer = null; - /** - * Generated from protobuf field uint32 offer_time = 5; - */ - private $offer_time = 0; - /** - * Generated from protobuf field uint32 duration = 6; - */ - private $duration = 0; - - public function __construct() { - \GPBMetadata\SignalingGetLog::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 id = 1; - * @return int|string - */ - public function getId() - { - return $this->id; - } - - /** - * Generated from protobuf field uint64 id = 1; - * @param int|string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkUint64($var); - $this->id = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.SignalingOffer.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - +if (false) { /** - * Generated from protobuf field .proto.SignalingOffer.Type type = 2; - * @param int $var - * @return $this + * This class is deprecated. Use Proto\SignalingGetLogResponse\SignalingLog instead. + * @deprecated */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Proto\SignalingOffer_Type::class); - $this->type = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Generated from protobuf field .proto.SignalingGetLogResponse.SignalingLog.Status status = 3; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Proto\SignalingGetLogResponse_SignalingLog_Status::class); - $this->status = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.RegisteredUser peer = 4; - * @return \Proto\RegisteredUser - */ - public function getPeer() - { - return $this->peer; - } - - /** - * Generated from protobuf field .proto.RegisteredUser peer = 4; - * @param \Proto\RegisteredUser $var - * @return $this - */ - public function setPeer($var) - { - GPBUtil::checkMessage($var, \Proto\RegisteredUser::class); - $this->peer = $var; - - return $this; - } - - /** - * Generated from protobuf field uint32 offer_time = 5; - * @return int - */ - public function getOfferTime() - { - return $this->offer_time; - } - - /** - * Generated from protobuf field uint32 offer_time = 5; - * @param int $var - * @return $this - */ - public function setOfferTime($var) - { - GPBUtil::checkUint32($var); - $this->offer_time = $var; - - return $this; - } - - /** - * Generated from protobuf field uint32 duration = 6; - * @return int - */ - public function getDuration() - { - return $this->duration; - } - - /** - * Generated from protobuf field uint32 duration = 6; - * @param int $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkUint32($var); - $this->duration = $var; - - return $this; - } - + class SignalingGetLogResponse_SignalingLog {} } +class_exists(SignalingGetLogResponse\SignalingLog::class); +@trigger_error('Proto\SignalingGetLogResponse_SignalingLog is deprecated and will be removed in the next major release. Use Proto\SignalingGetLogResponse\SignalingLog instead', E_USER_DEPRECATED); diff --git a/src/Proto/SignalingGetLogResponse_SignalingLog_Status.php b/src/Proto/SignalingGetLogResponse_SignalingLog_Status.php index 8a1479f..ca83e55 100644 --- a/src/Proto/SignalingGetLogResponse_SignalingLog_Status.php +++ b/src/Proto/SignalingGetLogResponse_SignalingLog_Status.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\SignalingGetLogResponse\SignalingLog\Status - */ -class SignalingGetLogResponse_SignalingLog_Status -{ +if (false) { /** - * Generated from protobuf enum MISSED = 0; + * This class is deprecated. Use Proto\SignalingGetLogResponse\SignalingLog\Status instead. + * @deprecated */ - const MISSED = 0; - /** - * Generated from protobuf enum CANCELED = 1; - */ - const CANCELED = 1; - /** - * Generated from protobuf enum INCOMING = 2; - */ - const INCOMING = 2; - /** - * Generated from protobuf enum OUTGOING = 3; - */ - const OUTGOING = 3; + class SignalingGetLogResponse_SignalingLog_Status {} } +class_exists(SignalingGetLogResponse\SignalingLog\Status::class); +@trigger_error('Proto\SignalingGetLogResponse_SignalingLog_Status is deprecated and will be removed in the next major release. Use Proto\SignalingGetLogResponse\SignalingLog\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/SignalingLeave.php b/src/Proto/SignalingLeave.php index 027f5e0..027450e 100644 --- a/src/Proto/SignalingLeave.php +++ b/src/Proto/SignalingLeave.php @@ -18,9 +18,18 @@ class SignalingLeave extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingLeave::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingLeaveResponse.php b/src/Proto/SignalingLeaveResponse.php index 69bb8df..5c86ce2 100644 --- a/src/Proto/SignalingLeaveResponse.php +++ b/src/Proto/SignalingLeaveResponse.php @@ -22,9 +22,19 @@ class SignalingLeaveResponse extends \Google\Protobuf\Internal\Message */ private $type = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $type + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingLeave::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingLeaveResponse/Type.php b/src/Proto/SignalingLeaveResponse/Type.php new file mode 100644 index 0000000..385cb2b --- /dev/null +++ b/src/Proto/SignalingLeaveResponse/Type.php @@ -0,0 +1,48 @@ +proto.SignalingLeaveResponse.Type + */ +class Type +{ + /** + * Generated from protobuf enum MISSED = 0; + */ + const MISSED = 0; + /** + * Generated from protobuf enum REJECTED = 1; + */ + const REJECTED = 1; + /** + * Generated from protobuf enum ACCEPTED = 2; + */ + const ACCEPTED = 2; + /** + * Generated from protobuf enum NOT_ANSWERED = 3; + */ + const NOT_ANSWERED = 3; + /** + * Generated from protobuf enum UNAVAILABLE = 4; + */ + const UNAVAILABLE = 4; + /** + * Generated from protobuf enum DISCONNECTED = 5; + */ + const DISCONNECTED = 5; + /** + * Generated from protobuf enum FINISHED = 6; + */ + const FINISHED = 6; + /** + * Generated from protobuf enum TOO_LONG = 7; + */ + const TOO_LONG = 7; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\SignalingLeaveResponse_Type::class); + diff --git a/src/Proto/SignalingLeaveResponse_Type.php b/src/Proto/SignalingLeaveResponse_Type.php index 7e516ad..cb3498c 100644 --- a/src/Proto/SignalingLeaveResponse_Type.php +++ b/src/Proto/SignalingLeaveResponse_Type.php @@ -4,42 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\SignalingLeaveResponse\Type - */ -class SignalingLeaveResponse_Type -{ +if (false) { /** - * Generated from protobuf enum MISSED = 0; + * This class is deprecated. Use Proto\SignalingLeaveResponse\Type instead. + * @deprecated */ - const MISSED = 0; - /** - * Generated from protobuf enum REJECTED = 1; - */ - const REJECTED = 1; - /** - * Generated from protobuf enum ACCEPTED = 2; - */ - const ACCEPTED = 2; - /** - * Generated from protobuf enum NOT_ANSWERED = 3; - */ - const NOT_ANSWERED = 3; - /** - * Generated from protobuf enum UNAVAILABLE = 4; - */ - const UNAVAILABLE = 4; - /** - * Generated from protobuf enum DISCONNECTED = 5; - */ - const DISCONNECTED = 5; - /** - * Generated from protobuf enum FINISHED = 6; - */ - const FINISHED = 6; - /** - * Generated from protobuf enum TOO_LONG = 7; - */ - const TOO_LONG = 7; + class SignalingLeaveResponse_Type {} } +class_exists(SignalingLeaveResponse\Type::class); +@trigger_error('Proto\SignalingLeaveResponse_Type is deprecated and will be removed in the next major release. Use Proto\SignalingLeaveResponse\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/SignalingOffer.php b/src/Proto/SignalingOffer.php index 9c55b51..a620c7f 100644 --- a/src/Proto/SignalingOffer.php +++ b/src/Proto/SignalingOffer.php @@ -30,9 +30,21 @@ class SignalingOffer extends \Google\Protobuf\Internal\Message */ private $caller_sdp = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $called_user_id + * @type int $type + * @type string $caller_sdp + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingOffer::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingOffer/Type.php b/src/Proto/SignalingOffer/Type.php new file mode 100644 index 0000000..b7bf2be --- /dev/null +++ b/src/Proto/SignalingOffer/Type.php @@ -0,0 +1,32 @@ +proto.SignalingOffer.Type + */ +class Type +{ + /** + * Generated from protobuf enum VOICE_CALLING = 0; + */ + const VOICE_CALLING = 0; + /** + * Generated from protobuf enum VIDEO_CALLING = 1; + */ + const VIDEO_CALLING = 1; + /** + * Generated from protobuf enum SCREEN_SHARING = 2; + */ + const SCREEN_SHARING = 2; + /** + * Generated from protobuf enum SECRET_CHAT = 3; + */ + const SECRET_CHAT = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Proto\SignalingOffer_Type::class); + diff --git a/src/Proto/SignalingOfferResponse.php b/src/Proto/SignalingOfferResponse.php index 9036710..6b3f2e8 100644 --- a/src/Proto/SignalingOfferResponse.php +++ b/src/Proto/SignalingOfferResponse.php @@ -30,9 +30,21 @@ class SignalingOfferResponse extends \Google\Protobuf\Internal\Message */ private $caller_sdp = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $caller_user_id + * @type int $type + * @type string $caller_sdp + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingOffer::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingOffer_Type.php b/src/Proto/SignalingOffer_Type.php index 0b30421..979331d 100644 --- a/src/Proto/SignalingOffer_Type.php +++ b/src/Proto/SignalingOffer_Type.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\SignalingOffer\Type - */ -class SignalingOffer_Type -{ +if (false) { /** - * Generated from protobuf enum VOICE_CALLING = 0; + * This class is deprecated. Use Proto\SignalingOffer\Type instead. + * @deprecated */ - const VOICE_CALLING = 0; - /** - * Generated from protobuf enum VIDEO_CALLING = 1; - */ - const VIDEO_CALLING = 1; - /** - * Generated from protobuf enum SCREEN_SHARING = 2; - */ - const SCREEN_SHARING = 2; - /** - * Generated from protobuf enum SECRET_CHAT = 3; - */ - const SECRET_CHAT = 3; + class SignalingOffer_Type {} } +class_exists(SignalingOffer\Type::class); +@trigger_error('Proto\SignalingOffer_Type is deprecated and will be removed in the next major release. Use Proto\SignalingOffer\Type instead', E_USER_DEPRECATED); diff --git a/src/Proto/SignalingRate.php b/src/Proto/SignalingRate.php index 6106fe4..717bd5c 100644 --- a/src/Proto/SignalingRate.php +++ b/src/Proto/SignalingRate.php @@ -30,9 +30,21 @@ class SignalingRate extends \Google\Protobuf\Internal\Message */ private $reason = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $id + * @type int $rate + * @type string $reason + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingRate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingRateResponse.php b/src/Proto/SignalingRateResponse.php index dc0f4ea..eaf643c 100644 --- a/src/Proto/SignalingRateResponse.php +++ b/src/Proto/SignalingRateResponse.php @@ -18,9 +18,18 @@ class SignalingRateResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingRate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingRinging.php b/src/Proto/SignalingRinging.php index 9de1323..c520a4f 100644 --- a/src/Proto/SignalingRinging.php +++ b/src/Proto/SignalingRinging.php @@ -18,9 +18,18 @@ class SignalingRinging extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingRinging::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingRingingResponse.php b/src/Proto/SignalingRingingResponse.php index f9c4b7e..606fd70 100644 --- a/src/Proto/SignalingRingingResponse.php +++ b/src/Proto/SignalingRingingResponse.php @@ -18,9 +18,18 @@ class SignalingRingingResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingRinging::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingSessionHold.php b/src/Proto/SignalingSessionHold.php index 8fa88dc..bd550cf 100644 --- a/src/Proto/SignalingSessionHold.php +++ b/src/Proto/SignalingSessionHold.php @@ -22,9 +22,19 @@ class SignalingSessionHold extends \Google\Protobuf\Internal\Message */ private $hold = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type bool $hold + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingSessionHold::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/SignalingSessionHoldResponse.php b/src/Proto/SignalingSessionHoldResponse.php index 568e5eb..cdd5e82 100644 --- a/src/Proto/SignalingSessionHoldResponse.php +++ b/src/Proto/SignalingSessionHoldResponse.php @@ -22,9 +22,19 @@ class SignalingSessionHoldResponse extends \Google\Protobuf\Internal\Message */ private $hold = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type bool $hold + * } + */ + public function __construct($data = NULL) { \GPBMetadata\SignalingSessionHold::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/Thumbnail.php b/src/Proto/Thumbnail.php index 55165c1..7e872e3 100644 --- a/src/Proto/Thumbnail.php +++ b/src/Proto/Thumbnail.php @@ -38,9 +38,23 @@ class Thumbnail extends \Google\Protobuf\Internal\Message */ private $mime = ''; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $size + * @type int $width + * @type int $height + * @type string $cache_id + * @type string $name + * @type string $mime + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /** diff --git a/src/Proto/UserAvatarAdd.php b/src/Proto/UserAvatarAdd.php index 211cb74..262a096 100644 --- a/src/Proto/UserAvatarAdd.php +++ b/src/Proto/UserAvatarAdd.php @@ -22,9 +22,19 @@ class UserAvatarAdd extends \Google\Protobuf\Internal\Message */ private $attachment = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $attachment + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserAvatarAdd::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserAvatarAddResponse.php b/src/Proto/UserAvatarAddResponse.php index 7b3e48e..d70c1a1 100644 --- a/src/Proto/UserAvatarAddResponse.php +++ b/src/Proto/UserAvatarAddResponse.php @@ -22,9 +22,19 @@ class UserAvatarAddResponse extends \Google\Protobuf\Internal\Message */ private $avatar = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Avatar $avatar + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserAvatarAdd::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserAvatarDelete.php b/src/Proto/UserAvatarDelete.php index 13ddd05..92195e1 100644 --- a/src/Proto/UserAvatarDelete.php +++ b/src/Proto/UserAvatarDelete.php @@ -22,9 +22,19 @@ class UserAvatarDelete extends \Google\Protobuf\Internal\Message */ private $id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserAvatarDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserAvatarDeleteResponse.php b/src/Proto/UserAvatarDeleteResponse.php index 1896b5a..e12c6e0 100644 --- a/src/Proto/UserAvatarDeleteResponse.php +++ b/src/Proto/UserAvatarDeleteResponse.php @@ -22,9 +22,19 @@ class UserAvatarDeleteResponse extends \Google\Protobuf\Internal\Message */ private $id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserAvatarDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserAvatarGetList.php b/src/Proto/UserAvatarGetList.php index 5b2a2d2..deaf262 100644 --- a/src/Proto/UserAvatarGetList.php +++ b/src/Proto/UserAvatarGetList.php @@ -22,9 +22,19 @@ class UserAvatarGetList extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserAvatarGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserAvatarGetListResponse.php b/src/Proto/UserAvatarGetListResponse.php index fdb532b..56dc6ac 100644 --- a/src/Proto/UserAvatarGetListResponse.php +++ b/src/Proto/UserAvatarGetListResponse.php @@ -22,9 +22,19 @@ class UserAvatarGetListResponse extends \Google\Protobuf\Internal\Message */ private $avatar; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\Avatar[]|\Google\Protobuf\Internal\RepeatedField $avatar + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserAvatarGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsBlock.php b/src/Proto/UserContactsBlock.php index 49231ff..35a3fd3 100644 --- a/src/Proto/UserContactsBlock.php +++ b/src/Proto/UserContactsBlock.php @@ -22,9 +22,19 @@ class UserContactsBlock extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsBlock::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsBlockResponse.php b/src/Proto/UserContactsBlockResponse.php index 18a6662..821adc6 100644 --- a/src/Proto/UserContactsBlockResponse.php +++ b/src/Proto/UserContactsBlockResponse.php @@ -22,9 +22,19 @@ class UserContactsBlockResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsBlock::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsDelete.php b/src/Proto/UserContactsDelete.php index ac2d635..a786820 100644 --- a/src/Proto/UserContactsDelete.php +++ b/src/Proto/UserContactsDelete.php @@ -22,9 +22,19 @@ class UserContactsDelete extends \Google\Protobuf\Internal\Message */ private $phone = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $phone + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsDeleteResponse.php b/src/Proto/UserContactsDeleteResponse.php index a88b00c..b8324a0 100644 --- a/src/Proto/UserContactsDeleteResponse.php +++ b/src/Proto/UserContactsDeleteResponse.php @@ -22,9 +22,19 @@ class UserContactsDeleteResponse extends \Google\Protobuf\Internal\Message */ private $phone = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $phone + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsEdit.php b/src/Proto/UserContactsEdit.php index df2e8d2..71fe4f5 100644 --- a/src/Proto/UserContactsEdit.php +++ b/src/Proto/UserContactsEdit.php @@ -30,9 +30,21 @@ class UserContactsEdit extends \Google\Protobuf\Internal\Message */ private $last_name = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $phone + * @type string $first_name + * @type string $last_name + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsEdit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsEditResponse.php b/src/Proto/UserContactsEditResponse.php index b93369f..475a8bf 100644 --- a/src/Proto/UserContactsEditResponse.php +++ b/src/Proto/UserContactsEditResponse.php @@ -34,9 +34,22 @@ class UserContactsEditResponse extends \Google\Protobuf\Internal\Message */ private $initials = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $phone + * @type string $first_name + * @type string $last_name + * @type string $initials + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsEdit::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsGetBlockedList.php b/src/Proto/UserContactsGetBlockedList.php index 36ac53e..315dab8 100644 --- a/src/Proto/UserContactsGetBlockedList.php +++ b/src/Proto/UserContactsGetBlockedList.php @@ -18,9 +18,18 @@ class UserContactsGetBlockedList extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsGetBlockedList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsGetBlockedListResponse.php b/src/Proto/UserContactsGetBlockedListResponse.php index d141476..9476282 100644 --- a/src/Proto/UserContactsGetBlockedListResponse.php +++ b/src/Proto/UserContactsGetBlockedListResponse.php @@ -22,9 +22,19 @@ class UserContactsGetBlockedListResponse extends \Google\Protobuf\Internal\Messa */ private $user; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\UserContactsGetBlockedListResponse\User[]|\Google\Protobuf\Internal\RepeatedField $user + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsGetBlockedList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getUser() /** * Generated from protobuf field repeated .proto.UserContactsGetBlockedListResponse.User user = 2; - * @param \Proto\UserContactsGetBlockedListResponse_User[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\UserContactsGetBlockedListResponse\User[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUser($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserContactsGetBlockedListResponse_User::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserContactsGetBlockedListResponse\User::class); $this->user = $arr; return $this; diff --git a/src/Proto/UserContactsGetBlockedListResponse/User.php b/src/Proto/UserContactsGetBlockedListResponse/User.php new file mode 100644 index 0000000..5f2ac2c --- /dev/null +++ b/src/Proto/UserContactsGetBlockedListResponse/User.php @@ -0,0 +1,88 @@ +proto.UserContactsGetBlockedListResponse.User + */ +class User extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 user_id = 1; + */ + private $user_id = 0; + /** + * Generated from protobuf field string cache_id = 2; + */ + private $cache_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $user_id + * @type string $cache_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\UserContactsGetBlockedList::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @return int|string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Generated from protobuf field uint64 user_id = 1; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->user_id = $var; + + return $this; + } + + /** + * Generated from protobuf field string cache_id = 2; + * @return string + */ + public function getCacheId() + { + return $this->cache_id; + } + + /** + * Generated from protobuf field string cache_id = 2; + * @param string $var + * @return $this + */ + public function setCacheId($var) + { + GPBUtil::checkString($var, True); + $this->cache_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(User::class, \Proto\UserContactsGetBlockedListResponse_User::class); + diff --git a/src/Proto/UserContactsGetBlockedListResponse_User.php b/src/Proto/UserContactsGetBlockedListResponse_User.php index 710d5ed..31eefa2 100644 --- a/src/Proto/UserContactsGetBlockedListResponse_User.php +++ b/src/Proto/UserContactsGetBlockedListResponse_User.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.UserContactsGetBlockedListResponse.User - */ -class UserContactsGetBlockedListResponse_User extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 user_id = 1; - */ - private $user_id = 0; - /** - * Generated from protobuf field string cache_id = 2; - */ - private $cache_id = ''; - - public function __construct() { - \GPBMetadata\UserContactsGetBlockedList::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 user_id = 1; - * @return int|string - */ - public function getUserId() - { - return $this->user_id; - } - +if (false) { /** - * Generated from protobuf field uint64 user_id = 1; - * @param int|string $var - * @return $this + * This class is deprecated. Use Proto\UserContactsGetBlockedListResponse\User instead. + * @deprecated */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->user_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string cache_id = 2; - * @return string - */ - public function getCacheId() - { - return $this->cache_id; - } - - /** - * Generated from protobuf field string cache_id = 2; - * @param string $var - * @return $this - */ - public function setCacheId($var) - { - GPBUtil::checkString($var, True); - $this->cache_id = $var; - - return $this; - } - + class UserContactsGetBlockedListResponse_User {} } +class_exists(UserContactsGetBlockedListResponse\User::class); +@trigger_error('Proto\UserContactsGetBlockedListResponse_User is deprecated and will be removed in the next major release. Use Proto\UserContactsGetBlockedListResponse\User instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserContactsGetList.php b/src/Proto/UserContactsGetList.php index 81867b2..3b7758d 100644 --- a/src/Proto/UserContactsGetList.php +++ b/src/Proto/UserContactsGetList.php @@ -18,9 +18,18 @@ class UserContactsGetList extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsGetListResponse.php b/src/Proto/UserContactsGetListResponse.php index 1da8f5e..281e741 100644 --- a/src/Proto/UserContactsGetListResponse.php +++ b/src/Proto/UserContactsGetListResponse.php @@ -22,9 +22,19 @@ class UserContactsGetListResponse extends \Google\Protobuf\Internal\Message */ private $registered_user; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\RegisteredUser[]|\Google\Protobuf\Internal\RepeatedField $registered_user + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsGetList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsImport.php b/src/Proto/UserContactsImport.php index 1b6c8c5..d2f9404 100644 --- a/src/Proto/UserContactsImport.php +++ b/src/Proto/UserContactsImport.php @@ -26,9 +26,20 @@ class UserContactsImport extends \Google\Protobuf\Internal\Message */ private $force = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type \Proto\UserContactsImport\Contact[]|\Google\Protobuf\Internal\RepeatedField $contacts + * @type bool $force + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsImport::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -64,12 +75,12 @@ public function getContacts() /** * Generated from protobuf field repeated .proto.UserContactsImport.Contact contacts = 2; - * @param \Proto\UserContactsImport_Contact[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\UserContactsImport\Contact[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setContacts($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserContactsImport_Contact::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserContactsImport\Contact::class); $this->contacts = $arr; return $this; diff --git a/src/Proto/UserContactsImport/Contact.php b/src/Proto/UserContactsImport/Contact.php new file mode 100644 index 0000000..e82feef --- /dev/null +++ b/src/Proto/UserContactsImport/Contact.php @@ -0,0 +1,142 @@ +proto.UserContactsImport.Contact + */ +class Contact extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string phone = 1; + */ + private $phone = ''; + /** + * Generated from protobuf field string first_name = 2; + */ + private $first_name = ''; + /** + * Generated from protobuf field string last_name = 3; + */ + private $last_name = ''; + /** + * Generated from protobuf field string client_id = 4; + */ + private $client_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $phone + * @type string $first_name + * @type string $last_name + * @type string $client_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\UserContactsImport::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string phone = 1; + * @return string + */ + public function getPhone() + { + return $this->phone; + } + + /** + * Generated from protobuf field string phone = 1; + * @param string $var + * @return $this + */ + public function setPhone($var) + { + GPBUtil::checkString($var, True); + $this->phone = $var; + + return $this; + } + + /** + * Generated from protobuf field string first_name = 2; + * @return string + */ + public function getFirstName() + { + return $this->first_name; + } + + /** + * Generated from protobuf field string first_name = 2; + * @param string $var + * @return $this + */ + public function setFirstName($var) + { + GPBUtil::checkString($var, True); + $this->first_name = $var; + + return $this; + } + + /** + * Generated from protobuf field string last_name = 3; + * @return string + */ + public function getLastName() + { + return $this->last_name; + } + + /** + * Generated from protobuf field string last_name = 3; + * @param string $var + * @return $this + */ + public function setLastName($var) + { + GPBUtil::checkString($var, True); + $this->last_name = $var; + + return $this; + } + + /** + * Generated from protobuf field string client_id = 4; + * @return string + */ + public function getClientId() + { + return $this->client_id; + } + + /** + * Generated from protobuf field string client_id = 4; + * @param string $var + * @return $this + */ + public function setClientId($var) + { + GPBUtil::checkString($var, True); + $this->client_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Contact::class, \Proto\UserContactsImport_Contact::class); + diff --git a/src/Proto/UserContactsImportResponse.php b/src/Proto/UserContactsImportResponse.php index 65df9ae..55eb9af 100644 --- a/src/Proto/UserContactsImportResponse.php +++ b/src/Proto/UserContactsImportResponse.php @@ -22,9 +22,19 @@ class UserContactsImportResponse extends \Google\Protobuf\Internal\Message */ private $registered_contacts; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\UserContactsImportResponse\Contact[]|\Google\Protobuf\Internal\RepeatedField $registered_contacts + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsImport::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getRegisteredContacts() /** * Generated from protobuf field repeated .proto.UserContactsImportResponse.Contact registered_contacts = 2; - * @param \Proto\UserContactsImportResponse_Contact[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\UserContactsImportResponse\Contact[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRegisteredContacts($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserContactsImportResponse_Contact::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserContactsImportResponse\Contact::class); $this->registered_contacts = $arr; return $this; diff --git a/src/Proto/UserContactsImportResponse/Contact.php b/src/Proto/UserContactsImportResponse/Contact.php new file mode 100644 index 0000000..48f4786 --- /dev/null +++ b/src/Proto/UserContactsImportResponse/Contact.php @@ -0,0 +1,88 @@ +proto.UserContactsImportResponse.Contact + */ +class Contact extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string client_id = 1; + */ + private $client_id = ''; + /** + * Generated from protobuf field uint64 user_id = 2; + */ + private $user_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $client_id + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\UserContactsImport::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string client_id = 1; + * @return string + */ + public function getClientId() + { + return $this->client_id; + } + + /** + * Generated from protobuf field string client_id = 1; + * @param string $var + * @return $this + */ + public function setClientId($var) + { + GPBUtil::checkString($var, True); + $this->client_id = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 user_id = 2; + * @return int|string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Generated from protobuf field uint64 user_id = 2; + * @param int|string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkUint64($var); + $this->user_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Contact::class, \Proto\UserContactsImportResponse_Contact::class); + diff --git a/src/Proto/UserContactsImportResponse_Contact.php b/src/Proto/UserContactsImportResponse_Contact.php index 6d8e240..837d790 100644 --- a/src/Proto/UserContactsImportResponse_Contact.php +++ b/src/Proto/UserContactsImportResponse_Contact.php @@ -4,72 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.UserContactsImportResponse.Contact - */ -class UserContactsImportResponse_Contact extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string client_id = 1; - */ - private $client_id = ''; - /** - * Generated from protobuf field uint64 user_id = 2; - */ - private $user_id = 0; - - public function __construct() { - \GPBMetadata\UserContactsImport::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field string client_id = 1; - * @return string - */ - public function getClientId() - { - return $this->client_id; - } - +if (false) { /** - * Generated from protobuf field string client_id = 1; - * @param string $var - * @return $this + * This class is deprecated. Use Proto\UserContactsImportResponse\Contact instead. + * @deprecated */ - public function setClientId($var) - { - GPBUtil::checkString($var, True); - $this->client_id = $var; - - return $this; - } - - /** - * Generated from protobuf field uint64 user_id = 2; - * @return int|string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Generated from protobuf field uint64 user_id = 2; - * @param int|string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkUint64($var); - $this->user_id = $var; - - return $this; - } - + class UserContactsImportResponse_Contact {} } +class_exists(UserContactsImportResponse\Contact::class); +@trigger_error('Proto\UserContactsImportResponse_Contact is deprecated and will be removed in the next major release. Use Proto\UserContactsImportResponse\Contact instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserContactsImport_Contact.php b/src/Proto/UserContactsImport_Contact.php index 242288a..a11b868 100644 --- a/src/Proto/UserContactsImport_Contact.php +++ b/src/Proto/UserContactsImport_Contact.php @@ -4,124 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.UserContactsImport.Contact - */ -class UserContactsImport_Contact extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string phone = 1; - */ - private $phone = ''; - /** - * Generated from protobuf field string first_name = 2; - */ - private $first_name = ''; +if (false) { /** - * Generated from protobuf field string last_name = 3; + * This class is deprecated. Use Proto\UserContactsImport\Contact instead. + * @deprecated */ - private $last_name = ''; - /** - * Generated from protobuf field string client_id = 4; - */ - private $client_id = ''; - - public function __construct() { - \GPBMetadata\UserContactsImport::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field string phone = 1; - * @return string - */ - public function getPhone() - { - return $this->phone; - } - - /** - * Generated from protobuf field string phone = 1; - * @param string $var - * @return $this - */ - public function setPhone($var) - { - GPBUtil::checkString($var, True); - $this->phone = $var; - - return $this; - } - - /** - * Generated from protobuf field string first_name = 2; - * @return string - */ - public function getFirstName() - { - return $this->first_name; - } - - /** - * Generated from protobuf field string first_name = 2; - * @param string $var - * @return $this - */ - public function setFirstName($var) - { - GPBUtil::checkString($var, True); - $this->first_name = $var; - - return $this; - } - - /** - * Generated from protobuf field string last_name = 3; - * @return string - */ - public function getLastName() - { - return $this->last_name; - } - - /** - * Generated from protobuf field string last_name = 3; - * @param string $var - * @return $this - */ - public function setLastName($var) - { - GPBUtil::checkString($var, True); - $this->last_name = $var; - - return $this; - } - - /** - * Generated from protobuf field string client_id = 4; - * @return string - */ - public function getClientId() - { - return $this->client_id; - } - - /** - * Generated from protobuf field string client_id = 4; - * @param string $var - * @return $this - */ - public function setClientId($var) - { - GPBUtil::checkString($var, True); - $this->client_id = $var; - - return $this; - } - + class UserContactsImport_Contact {} } +class_exists(UserContactsImport\Contact::class); +@trigger_error('Proto\UserContactsImport_Contact is deprecated and will be removed in the next major release. Use Proto\UserContactsImport\Contact instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserContactsUnblock.php b/src/Proto/UserContactsUnblock.php index 834c1aa..9729c49 100644 --- a/src/Proto/UserContactsUnblock.php +++ b/src/Proto/UserContactsUnblock.php @@ -22,9 +22,19 @@ class UserContactsUnblock extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsUnblock::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserContactsUnblockResponse.php b/src/Proto/UserContactsUnblockResponse.php index 0ea8e1b..a843609 100644 --- a/src/Proto/UserContactsUnblockResponse.php +++ b/src/Proto/UserContactsUnblockResponse.php @@ -22,9 +22,19 @@ class UserContactsUnblockResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserContactsUnblock::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserDelete.php b/src/Proto/UserDelete.php index 8477197..43f55a6 100644 --- a/src/Proto/UserDelete.php +++ b/src/Proto/UserDelete.php @@ -26,9 +26,20 @@ class UserDelete extends \Google\Protobuf\Internal\Message */ private $reason = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * @type int $reason + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserDelete/Reason.php b/src/Proto/UserDelete/Reason.php new file mode 100644 index 0000000..54e2d90 --- /dev/null +++ b/src/Proto/UserDelete/Reason.php @@ -0,0 +1,20 @@ +proto.UserDelete.Reason + */ +class Reason +{ + /** + * Generated from protobuf enum OTHER = 0; + */ + const OTHER = 0; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Reason::class, \Proto\UserDelete_Reason::class); + diff --git a/src/Proto/UserDeleteResponse.php b/src/Proto/UserDeleteResponse.php index da6d8a9..a6713fc 100644 --- a/src/Proto/UserDeleteResponse.php +++ b/src/Proto/UserDeleteResponse.php @@ -18,9 +18,18 @@ class UserDeleteResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserDelete::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserDelete_Reason.php b/src/Proto/UserDelete_Reason.php index d6bf298..f6167e9 100644 --- a/src/Proto/UserDelete_Reason.php +++ b/src/Proto/UserDelete_Reason.php @@ -4,14 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\UserDelete\Reason - */ -class UserDelete_Reason -{ +if (false) { /** - * Generated from protobuf enum OTHER = 0; + * This class is deprecated. Use Proto\UserDelete\Reason instead. + * @deprecated */ - const OTHER = 0; + class UserDelete_Reason {} } +class_exists(UserDelete\Reason::class); +@trigger_error('Proto\UserDelete_Reason is deprecated and will be removed in the next major release. Use Proto\UserDelete\Reason instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserGetDeleteToken.php b/src/Proto/UserGetDeleteToken.php index 36074ef..605fa01 100644 --- a/src/Proto/UserGetDeleteToken.php +++ b/src/Proto/UserGetDeleteToken.php @@ -18,9 +18,18 @@ class UserGetDeleteToken extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserGetDeleteToken::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserGetDeleteTokenResponse.php b/src/Proto/UserGetDeleteTokenResponse.php index a1d9991..fbe582a 100644 --- a/src/Proto/UserGetDeleteTokenResponse.php +++ b/src/Proto/UserGetDeleteTokenResponse.php @@ -34,9 +34,22 @@ class UserGetDeleteTokenResponse extends \Google\Protobuf\Internal\Message */ private $token_length = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $resend_delay + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $sms_number + * @type string $token_regex + * @type string $token_length + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserGetDeleteToken::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserInfo.php b/src/Proto/UserInfo.php index 8ec39cf..7234a9f 100644 --- a/src/Proto/UserInfo.php +++ b/src/Proto/UserInfo.php @@ -22,9 +22,19 @@ class UserInfo extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserInfo::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserInfoResponse.php b/src/Proto/UserInfoResponse.php index 6747d35..be51beb 100644 --- a/src/Proto/UserInfoResponse.php +++ b/src/Proto/UserInfoResponse.php @@ -22,9 +22,19 @@ class UserInfoResponse extends \Google\Protobuf\Internal\Message */ private $user = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\RegisteredUser $user + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserInfo::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserLogin.php b/src/Proto/UserLogin.php index ca091c8..4d04b39 100644 --- a/src/Proto/UserLogin.php +++ b/src/Proto/UserLogin.php @@ -58,9 +58,28 @@ class UserLogin extends \Google\Protobuf\Internal\Message */ private $language = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * @type string $app_name + * @type int $app_id + * @type int $app_build_version + * @type string $app_version + * @type int $platform + * @type string $platform_version + * @type int $device + * @type string $device_name + * @type int $language + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserLogin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserLoginResponse.php b/src/Proto/UserLoginResponse.php index 9ee0212..466b718 100644 --- a/src/Proto/UserLoginResponse.php +++ b/src/Proto/UserLoginResponse.php @@ -34,9 +34,22 @@ class UserLoginResponse extends \Google\Protobuf\Internal\Message */ private $chat_delete_message_for_both_period = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type bool $deprecated_client + * @type string $secondary_node_name + * @type bool $update_available + * @type int $chat_delete_message_for_both_period + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserLogin::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserPrivacyGetRule.php b/src/Proto/UserPrivacyGetRule.php index 868126c..95f595c 100644 --- a/src/Proto/UserPrivacyGetRule.php +++ b/src/Proto/UserPrivacyGetRule.php @@ -22,9 +22,19 @@ class UserPrivacyGetRule extends \Google\Protobuf\Internal\Message */ private $type = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $type + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserPrivacyGetRule::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserPrivacyGetRuleResponse.php b/src/Proto/UserPrivacyGetRuleResponse.php index 44369b8..a06eba4 100644 --- a/src/Proto/UserPrivacyGetRuleResponse.php +++ b/src/Proto/UserPrivacyGetRuleResponse.php @@ -22,9 +22,19 @@ class UserPrivacyGetRuleResponse extends \Google\Protobuf\Internal\Message */ private $level = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $level + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserPrivacyGetRule::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserPrivacySetRule.php b/src/Proto/UserPrivacySetRule.php index 09a479d..7545d5a 100644 --- a/src/Proto/UserPrivacySetRule.php +++ b/src/Proto/UserPrivacySetRule.php @@ -26,9 +26,20 @@ class UserPrivacySetRule extends \Google\Protobuf\Internal\Message */ private $level = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $type + * @type int $level + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserPrivacySetRule::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserPrivacySetRuleResponse.php b/src/Proto/UserPrivacySetRuleResponse.php index 739e452..4455605 100644 --- a/src/Proto/UserPrivacySetRuleResponse.php +++ b/src/Proto/UserPrivacySetRuleResponse.php @@ -26,9 +26,20 @@ class UserPrivacySetRuleResponse extends \Google\Protobuf\Internal\Message */ private $level = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $type + * @type int $level + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserPrivacySetRule::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileCheckUsername.php b/src/Proto/UserProfileCheckUsername.php index c8e40ee..cec74be 100644 --- a/src/Proto/UserProfileCheckUsername.php +++ b/src/Proto/UserProfileCheckUsername.php @@ -22,9 +22,19 @@ class UserProfileCheckUsername extends \Google\Protobuf\Internal\Message */ private $username = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileCheckUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileCheckUsernameResponse.php b/src/Proto/UserProfileCheckUsernameResponse.php index 4269885..8415172 100644 --- a/src/Proto/UserProfileCheckUsernameResponse.php +++ b/src/Proto/UserProfileCheckUsernameResponse.php @@ -22,9 +22,19 @@ class UserProfileCheckUsernameResponse extends \Google\Protobuf\Internal\Message */ private $status = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileCheckUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileCheckUsernameResponse/Status.php b/src/Proto/UserProfileCheckUsernameResponse/Status.php new file mode 100644 index 0000000..d4abe94 --- /dev/null +++ b/src/Proto/UserProfileCheckUsernameResponse/Status.php @@ -0,0 +1,28 @@ +proto.UserProfileCheckUsernameResponse.Status + */ +class Status +{ + /** + * Generated from protobuf enum INVALID = 0; + */ + const INVALID = 0; + /** + * Generated from protobuf enum TAKEN = 1; + */ + const TAKEN = 1; + /** + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\UserProfileCheckUsernameResponse_Status::class); + diff --git a/src/Proto/UserProfileCheckUsernameResponse_Status.php b/src/Proto/UserProfileCheckUsernameResponse_Status.php index 2d58604..abc290a 100644 --- a/src/Proto/UserProfileCheckUsernameResponse_Status.php +++ b/src/Proto/UserProfileCheckUsernameResponse_Status.php @@ -4,22 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\UserProfileCheckUsernameResponse\Status - */ -class UserProfileCheckUsernameResponse_Status -{ +if (false) { /** - * Generated from protobuf enum INVALID = 0; + * This class is deprecated. Use Proto\UserProfileCheckUsernameResponse\Status instead. + * @deprecated */ - const INVALID = 0; - /** - * Generated from protobuf enum TAKEN = 1; - */ - const TAKEN = 1; - /** - * Generated from protobuf enum AVAILABLE = 2; - */ - const AVAILABLE = 2; + class UserProfileCheckUsernameResponse_Status {} } +class_exists(UserProfileCheckUsernameResponse\Status::class); +@trigger_error('Proto\UserProfileCheckUsernameResponse_Status is deprecated and will be removed in the next major release. Use Proto\UserProfileCheckUsernameResponse\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserProfileGetBio.php b/src/Proto/UserProfileGetBio.php index 4d5c40f..f502b59 100644 --- a/src/Proto/UserProfileGetBio.php +++ b/src/Proto/UserProfileGetBio.php @@ -18,9 +18,18 @@ class UserProfileGetBio extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetBio::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetBioResponse.php b/src/Proto/UserProfileGetBioResponse.php index 7aeb1a0..ef1c8a7 100644 --- a/src/Proto/UserProfileGetBioResponse.php +++ b/src/Proto/UserProfileGetBioResponse.php @@ -22,9 +22,19 @@ class UserProfileGetBioResponse extends \Google\Protobuf\Internal\Message */ private $bio = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $bio + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetBio::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetEmail.php b/src/Proto/UserProfileGetEmail.php index ed1354d..a5da60f 100644 --- a/src/Proto/UserProfileGetEmail.php +++ b/src/Proto/UserProfileGetEmail.php @@ -18,9 +18,18 @@ class UserProfileGetEmail extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetEmailResponse.php b/src/Proto/UserProfileGetEmailResponse.php index c745eca..39fdc62 100644 --- a/src/Proto/UserProfileGetEmailResponse.php +++ b/src/Proto/UserProfileGetEmailResponse.php @@ -22,9 +22,19 @@ class UserProfileGetEmailResponse extends \Google\Protobuf\Internal\Message */ private $email = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $email + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetGender.php b/src/Proto/UserProfileGetGender.php index d70e041..c73af11 100644 --- a/src/Proto/UserProfileGetGender.php +++ b/src/Proto/UserProfileGetGender.php @@ -18,9 +18,18 @@ class UserProfileGetGender extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetGender::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetGenderResponse.php b/src/Proto/UserProfileGetGenderResponse.php index 39e8be1..a5c370a 100644 --- a/src/Proto/UserProfileGetGenderResponse.php +++ b/src/Proto/UserProfileGetGenderResponse.php @@ -22,9 +22,19 @@ class UserProfileGetGenderResponse extends \Google\Protobuf\Internal\Message */ private $gender = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $gender + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetGender::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetNickname.php b/src/Proto/UserProfileGetNickname.php index 51673f8..640bafa 100644 --- a/src/Proto/UserProfileGetNickname.php +++ b/src/Proto/UserProfileGetNickname.php @@ -18,9 +18,18 @@ class UserProfileGetNickname extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetNickname::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetNicknameResponse.php b/src/Proto/UserProfileGetNicknameResponse.php index 5a18cd6..c7dae78 100644 --- a/src/Proto/UserProfileGetNicknameResponse.php +++ b/src/Proto/UserProfileGetNicknameResponse.php @@ -22,9 +22,19 @@ class UserProfileGetNicknameResponse extends \Google\Protobuf\Internal\Message */ private $nickname = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $nickname + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetNickname::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetSelfRemove.php b/src/Proto/UserProfileGetSelfRemove.php index 5ba6b35..1d04fce 100644 --- a/src/Proto/UserProfileGetSelfRemove.php +++ b/src/Proto/UserProfileGetSelfRemove.php @@ -18,9 +18,18 @@ class UserProfileGetSelfRemove extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetSelfRemove::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileGetSelfRemoveResponse.php b/src/Proto/UserProfileGetSelfRemoveResponse.php index 6ca29cd..ada827a 100644 --- a/src/Proto/UserProfileGetSelfRemoveResponse.php +++ b/src/Proto/UserProfileGetSelfRemoveResponse.php @@ -22,9 +22,19 @@ class UserProfileGetSelfRemoveResponse extends \Google\Protobuf\Internal\Message */ private $self_remove = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $self_remove + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileGetSelfRemove::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetBio.php b/src/Proto/UserProfileSetBio.php index 232906a..b83d2e9 100644 --- a/src/Proto/UserProfileSetBio.php +++ b/src/Proto/UserProfileSetBio.php @@ -22,9 +22,19 @@ class UserProfileSetBio extends \Google\Protobuf\Internal\Message */ private $bio = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $bio + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetBio::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetBioResponse.php b/src/Proto/UserProfileSetBioResponse.php index 7ccc87c..33610c7 100644 --- a/src/Proto/UserProfileSetBioResponse.php +++ b/src/Proto/UserProfileSetBioResponse.php @@ -22,9 +22,19 @@ class UserProfileSetBioResponse extends \Google\Protobuf\Internal\Message */ private $bio = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $bio + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetBio::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetEmail.php b/src/Proto/UserProfileSetEmail.php index 806a6a0..0023e6b 100644 --- a/src/Proto/UserProfileSetEmail.php +++ b/src/Proto/UserProfileSetEmail.php @@ -22,9 +22,19 @@ class UserProfileSetEmail extends \Google\Protobuf\Internal\Message */ private $email = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $email + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetEmailResponse.php b/src/Proto/UserProfileSetEmailResponse.php index 28f1f4f..5893693 100644 --- a/src/Proto/UserProfileSetEmailResponse.php +++ b/src/Proto/UserProfileSetEmailResponse.php @@ -22,9 +22,19 @@ class UserProfileSetEmailResponse extends \Google\Protobuf\Internal\Message */ private $email = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $email + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetGender.php b/src/Proto/UserProfileSetGender.php index a6248dd..f7a8837 100644 --- a/src/Proto/UserProfileSetGender.php +++ b/src/Proto/UserProfileSetGender.php @@ -22,9 +22,19 @@ class UserProfileSetGender extends \Google\Protobuf\Internal\Message */ private $gender = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $gender + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetGender::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetGenderResponse.php b/src/Proto/UserProfileSetGenderResponse.php index a33eb02..9283fdd 100644 --- a/src/Proto/UserProfileSetGenderResponse.php +++ b/src/Proto/UserProfileSetGenderResponse.php @@ -22,9 +22,19 @@ class UserProfileSetGenderResponse extends \Google\Protobuf\Internal\Message */ private $gender = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $gender + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetGender::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetNickname.php b/src/Proto/UserProfileSetNickname.php index 264480b..0cb3eb7 100644 --- a/src/Proto/UserProfileSetNickname.php +++ b/src/Proto/UserProfileSetNickname.php @@ -22,9 +22,19 @@ class UserProfileSetNickname extends \Google\Protobuf\Internal\Message */ private $nickname = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $nickname + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetNickname::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetNicknameResponse.php b/src/Proto/UserProfileSetNicknameResponse.php index 6397493..6015fa7 100644 --- a/src/Proto/UserProfileSetNicknameResponse.php +++ b/src/Proto/UserProfileSetNicknameResponse.php @@ -26,9 +26,20 @@ class UserProfileSetNicknameResponse extends \Google\Protobuf\Internal\Message */ private $initials = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $nickname + * @type string $initials + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetNickname::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetSelfRemove.php b/src/Proto/UserProfileSetSelfRemove.php index ccb6faf..2f93a66 100644 --- a/src/Proto/UserProfileSetSelfRemove.php +++ b/src/Proto/UserProfileSetSelfRemove.php @@ -22,9 +22,19 @@ class UserProfileSetSelfRemove extends \Google\Protobuf\Internal\Message */ private $self_remove = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $self_remove + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetSelfRemove::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileSetSelfRemoveResponse.php b/src/Proto/UserProfileSetSelfRemoveResponse.php index 5249e4e..46674be 100644 --- a/src/Proto/UserProfileSetSelfRemoveResponse.php +++ b/src/Proto/UserProfileSetSelfRemoveResponse.php @@ -22,9 +22,19 @@ class UserProfileSetSelfRemoveResponse extends \Google\Protobuf\Internal\Message */ private $self_remove = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $self_remove + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileSetSelfRemove::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileUpdateUsername.php b/src/Proto/UserProfileUpdateUsername.php index 06847cf..5f26115 100644 --- a/src/Proto/UserProfileUpdateUsername.php +++ b/src/Proto/UserProfileUpdateUsername.php @@ -22,9 +22,19 @@ class UserProfileUpdateUsername extends \Google\Protobuf\Internal\Message */ private $username = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileUpdateUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserProfileUpdateUsernameResponse.php b/src/Proto/UserProfileUpdateUsernameResponse.php index 13869bf..8e1ab68 100644 --- a/src/Proto/UserProfileUpdateUsernameResponse.php +++ b/src/Proto/UserProfileUpdateUsernameResponse.php @@ -22,9 +22,19 @@ class UserProfileUpdateUsernameResponse extends \Google\Protobuf\Internal\Messag */ private $username = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $username + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserProfileUpdateUsername::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserRegister.php b/src/Proto/UserRegister.php index ab45260..68fdd25 100644 --- a/src/Proto/UserRegister.php +++ b/src/Proto/UserRegister.php @@ -26,9 +26,20 @@ class UserRegister extends \Google\Protobuf\Internal\Message */ private $country_code = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $phone_number + * @type string $country_code + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserRegister::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserRegisterResponse.php b/src/Proto/UserRegisterResponse.php index 6e259cf..47274be 100644 --- a/src/Proto/UserRegisterResponse.php +++ b/src/Proto/UserRegisterResponse.php @@ -50,9 +50,26 @@ class UserRegisterResponse extends \Google\Protobuf\Internal\Message */ private $verify_code_digit_count = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $username + * @type int|string $user_id + * @type string $author_hash + * @type int $method + * @type int $resend_delay + * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $sms_number + * @type string $verify_code_regex + * @type int $verify_code_digit_count + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserRegister::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserRegisterResponse/Method.php b/src/Proto/UserRegisterResponse/Method.php new file mode 100644 index 0000000..6169164 --- /dev/null +++ b/src/Proto/UserRegisterResponse/Method.php @@ -0,0 +1,28 @@ +proto.UserRegisterResponse.Method + */ +class Method +{ + /** + * Generated from protobuf enum VERIFY_CODE_SMS = 0; + */ + const VERIFY_CODE_SMS = 0; + /** + * Generated from protobuf enum VERIFY_CODE_SOCKET = 1; + */ + const VERIFY_CODE_SOCKET = 1; + /** + * Generated from protobuf enum VERIFY_CODE_SMS_SOCKET = 2; + */ + const VERIFY_CODE_SMS_SOCKET = 2; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Method::class, \Proto\UserRegisterResponse_Method::class); + diff --git a/src/Proto/UserRegisterResponse_Method.php b/src/Proto/UserRegisterResponse_Method.php index 02c79e2..45d0885 100644 --- a/src/Proto/UserRegisterResponse_Method.php +++ b/src/Proto/UserRegisterResponse_Method.php @@ -4,22 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\UserRegisterResponse\Method - */ -class UserRegisterResponse_Method -{ +if (false) { /** - * Generated from protobuf enum VERIFY_CODE_SMS = 0; + * This class is deprecated. Use Proto\UserRegisterResponse\Method instead. + * @deprecated */ - const VERIFY_CODE_SMS = 0; - /** - * Generated from protobuf enum VERIFY_CODE_SOCKET = 1; - */ - const VERIFY_CODE_SOCKET = 1; - /** - * Generated from protobuf enum VERIFY_CODE_SMS_SOCKET = 2; - */ - const VERIFY_CODE_SMS_SOCKET = 2; + class UserRegisterResponse_Method {} } +class_exists(UserRegisterResponse\Method::class); +@trigger_error('Proto\UserRegisterResponse_Method is deprecated and will be removed in the next major release. Use Proto\UserRegisterResponse\Method instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserReport.php b/src/Proto/UserReport.php index 206589e..c7e41c8 100644 --- a/src/Proto/UserReport.php +++ b/src/Proto/UserReport.php @@ -30,9 +30,21 @@ class UserReport extends \Google\Protobuf\Internal\Message */ private $description = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $user_id + * @type int $reason + * @type string $description + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserReport::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserReport/Reason.php b/src/Proto/UserReport/Reason.php new file mode 100644 index 0000000..94921c4 --- /dev/null +++ b/src/Proto/UserReport/Reason.php @@ -0,0 +1,32 @@ +proto.UserReport.Reason + */ +class Reason +{ + /** + * Generated from protobuf enum OTHER = 0; + */ + const OTHER = 0; + /** + * Generated from protobuf enum SPAM = 1; + */ + const SPAM = 1; + /** + * Generated from protobuf enum ABUSE = 2; + */ + const ABUSE = 2; + /** + * Generated from protobuf enum FAKE_ACCOUNT = 3; + */ + const FAKE_ACCOUNT = 3; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Reason::class, \Proto\UserReport_Reason::class); + diff --git a/src/Proto/UserReportResponse.php b/src/Proto/UserReportResponse.php index 6b64b35..3c98715 100644 --- a/src/Proto/UserReportResponse.php +++ b/src/Proto/UserReportResponse.php @@ -18,9 +18,18 @@ class UserReportResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserReport::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserReport_Reason.php b/src/Proto/UserReport_Reason.php index bf53b9f..68ef8eb 100644 --- a/src/Proto/UserReport_Reason.php +++ b/src/Proto/UserReport_Reason.php @@ -4,26 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\UserReport\Reason - */ -class UserReport_Reason -{ +if (false) { /** - * Generated from protobuf enum OTHER = 0; + * This class is deprecated. Use Proto\UserReport\Reason instead. + * @deprecated */ - const OTHER = 0; - /** - * Generated from protobuf enum SPAM = 1; - */ - const SPAM = 1; - /** - * Generated from protobuf enum ABUSE = 2; - */ - const ABUSE = 2; - /** - * Generated from protobuf enum FAKE_ACCOUNT = 3; - */ - const FAKE_ACCOUNT = 3; + class UserReport_Reason {} } +class_exists(UserReport\Reason::class); +@trigger_error('Proto\UserReport_Reason is deprecated and will be removed in the next major release. Use Proto\UserReport\Reason instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserSessionGetActiveList.php b/src/Proto/UserSessionGetActiveList.php index ed176c2..5870626 100644 --- a/src/Proto/UserSessionGetActiveList.php +++ b/src/Proto/UserSessionGetActiveList.php @@ -18,9 +18,18 @@ class UserSessionGetActiveList extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserSessionGetActiveList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserSessionGetActiveListResponse.php b/src/Proto/UserSessionGetActiveListResponse.php index 1f0b900..073cff1 100644 --- a/src/Proto/UserSessionGetActiveListResponse.php +++ b/src/Proto/UserSessionGetActiveListResponse.php @@ -22,9 +22,19 @@ class UserSessionGetActiveListResponse extends \Google\Protobuf\Internal\Message */ private $session; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type \Proto\UserSessionGetActiveListResponse\Session[]|\Google\Protobuf\Internal\RepeatedField $session + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserSessionGetActiveList::initOnce(); - parent::__construct(); + parent::__construct($data); } /** @@ -60,12 +70,12 @@ public function getSession() /** * Generated from protobuf field repeated .proto.UserSessionGetActiveListResponse.Session session = 2; - * @param \Proto\UserSessionGetActiveListResponse_Session[]|\Google\Protobuf\Internal\RepeatedField $var + * @param \Proto\UserSessionGetActiveListResponse\Session[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSession($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserSessionGetActiveListResponse_Session::class); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\UserSessionGetActiveListResponse\Session::class); $this->session = $arr; return $this; diff --git a/src/Proto/UserSessionGetActiveListResponse/Session.php b/src/Proto/UserSessionGetActiveListResponse/Session.php new file mode 100644 index 0000000..d6dd985 --- /dev/null +++ b/src/Proto/UserSessionGetActiveListResponse/Session.php @@ -0,0 +1,439 @@ +proto.UserSessionGetActiveListResponse.Session + */ +class Session extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 session_id = 1; + */ + private $session_id = 0; + /** + * Generated from protobuf field string app_name = 2; + */ + private $app_name = ''; + /** + * Generated from protobuf field uint32 app_id = 3; + */ + private $app_id = 0; + /** + * Generated from protobuf field uint32 app_build_version = 4; + */ + private $app_build_version = 0; + /** + * Generated from protobuf field string app_version = 5; + */ + private $app_version = ''; + /** + * Generated from protobuf field .proto.Platform platform = 6; + */ + private $platform = 0; + /** + * Generated from protobuf field string platform_version = 7; + */ + private $platform_version = ''; + /** + * Generated from protobuf field .proto.Device device = 8; + */ + private $device = 0; + /** + * Generated from protobuf field string device_name = 9; + */ + private $device_name = ''; + /** + * Generated from protobuf field .proto.Language language = 10; + */ + private $language = 0; + /** + * Generated from protobuf field string country = 11; + */ + private $country = ''; + /** + * Generated from protobuf field bool current = 12; + */ + private $current = false; + /** + * Generated from protobuf field uint32 create_time = 13; + */ + private $create_time = 0; + /** + * Generated from protobuf field uint32 active_time = 14; + */ + private $active_time = 0; + /** + * Generated from protobuf field string ip = 15; + */ + private $ip = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $session_id + * @type string $app_name + * @type int $app_id + * @type int $app_build_version + * @type string $app_version + * @type int $platform + * @type string $platform_version + * @type int $device + * @type string $device_name + * @type int $language + * @type string $country + * @type bool $current + * @type int $create_time + * @type int $active_time + * @type string $ip + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\UserSessionGetActiveList::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 session_id = 1; + * @return int|string + */ + public function getSessionId() + { + return $this->session_id; + } + + /** + * Generated from protobuf field uint64 session_id = 1; + * @param int|string $var + * @return $this + */ + public function setSessionId($var) + { + GPBUtil::checkUint64($var); + $this->session_id = $var; + + return $this; + } + + /** + * Generated from protobuf field string app_name = 2; + * @return string + */ + public function getAppName() + { + return $this->app_name; + } + + /** + * Generated from protobuf field string app_name = 2; + * @param string $var + * @return $this + */ + public function setAppName($var) + { + GPBUtil::checkString($var, True); + $this->app_name = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 app_id = 3; + * @return int + */ + public function getAppId() + { + return $this->app_id; + } + + /** + * Generated from protobuf field uint32 app_id = 3; + * @param int $var + * @return $this + */ + public function setAppId($var) + { + GPBUtil::checkUint32($var); + $this->app_id = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 app_build_version = 4; + * @return int + */ + public function getAppBuildVersion() + { + return $this->app_build_version; + } + + /** + * Generated from protobuf field uint32 app_build_version = 4; + * @param int $var + * @return $this + */ + public function setAppBuildVersion($var) + { + GPBUtil::checkUint32($var); + $this->app_build_version = $var; + + return $this; + } + + /** + * Generated from protobuf field string app_version = 5; + * @return string + */ + public function getAppVersion() + { + return $this->app_version; + } + + /** + * Generated from protobuf field string app_version = 5; + * @param string $var + * @return $this + */ + public function setAppVersion($var) + { + GPBUtil::checkString($var, True); + $this->app_version = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.Platform platform = 6; + * @return int + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * Generated from protobuf field .proto.Platform platform = 6; + * @param int $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkEnum($var, \Proto\Platform::class); + $this->platform = $var; + + return $this; + } + + /** + * Generated from protobuf field string platform_version = 7; + * @return string + */ + public function getPlatformVersion() + { + return $this->platform_version; + } + + /** + * Generated from protobuf field string platform_version = 7; + * @param string $var + * @return $this + */ + public function setPlatformVersion($var) + { + GPBUtil::checkString($var, True); + $this->platform_version = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.Device device = 8; + * @return int + */ + public function getDevice() + { + return $this->device; + } + + /** + * Generated from protobuf field .proto.Device device = 8; + * @param int $var + * @return $this + */ + public function setDevice($var) + { + GPBUtil::checkEnum($var, \Proto\Device::class); + $this->device = $var; + + return $this; + } + + /** + * Generated from protobuf field string device_name = 9; + * @return string + */ + public function getDeviceName() + { + return $this->device_name; + } + + /** + * Generated from protobuf field string device_name = 9; + * @param string $var + * @return $this + */ + public function setDeviceName($var) + { + GPBUtil::checkString($var, True); + $this->device_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .proto.Language language = 10; + * @return int + */ + public function getLanguage() + { + return $this->language; + } + + /** + * Generated from protobuf field .proto.Language language = 10; + * @param int $var + * @return $this + */ + public function setLanguage($var) + { + GPBUtil::checkEnum($var, \Proto\Language::class); + $this->language = $var; + + return $this; + } + + /** + * Generated from protobuf field string country = 11; + * @return string + */ + public function getCountry() + { + return $this->country; + } + + /** + * Generated from protobuf field string country = 11; + * @param string $var + * @return $this + */ + public function setCountry($var) + { + GPBUtil::checkString($var, True); + $this->country = $var; + + return $this; + } + + /** + * Generated from protobuf field bool current = 12; + * @return bool + */ + public function getCurrent() + { + return $this->current; + } + + /** + * Generated from protobuf field bool current = 12; + * @param bool $var + * @return $this + */ + public function setCurrent($var) + { + GPBUtil::checkBool($var); + $this->current = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 create_time = 13; + * @return int + */ + public function getCreateTime() + { + return $this->create_time; + } + + /** + * Generated from protobuf field uint32 create_time = 13; + * @param int $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkUint32($var); + $this->create_time = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 active_time = 14; + * @return int + */ + public function getActiveTime() + { + return $this->active_time; + } + + /** + * Generated from protobuf field uint32 active_time = 14; + * @param int $var + * @return $this + */ + public function setActiveTime($var) + { + GPBUtil::checkUint32($var); + $this->active_time = $var; + + return $this; + } + + /** + * Generated from protobuf field string ip = 15; + * @return string + */ + public function getIp() + { + return $this->ip; + } + + /** + * Generated from protobuf field string ip = 15; + * @param string $var + * @return $this + */ + public function setIp($var) + { + GPBUtil::checkString($var, True); + $this->ip = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Session::class, \Proto\UserSessionGetActiveListResponse_Session::class); + diff --git a/src/Proto/UserSessionGetActiveListResponse_Session.php b/src/Proto/UserSessionGetActiveListResponse_Session.php index 395d639..4dfd309 100644 --- a/src/Proto/UserSessionGetActiveListResponse_Session.php +++ b/src/Proto/UserSessionGetActiveListResponse_Session.php @@ -4,410 +4,13 @@ namespace Proto; -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\GPBUtil; - -/** - * Generated from protobuf message proto.UserSessionGetActiveListResponse.Session - */ -class UserSessionGetActiveListResponse_Session extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field uint64 session_id = 1; - */ - private $session_id = 0; - /** - * Generated from protobuf field string app_name = 2; - */ - private $app_name = ''; - /** - * Generated from protobuf field uint32 app_id = 3; - */ - private $app_id = 0; - /** - * Generated from protobuf field uint32 app_build_version = 4; - */ - private $app_build_version = 0; - /** - * Generated from protobuf field string app_version = 5; - */ - private $app_version = ''; - /** - * Generated from protobuf field .proto.Platform platform = 6; - */ - private $platform = 0; - /** - * Generated from protobuf field string platform_version = 7; - */ - private $platform_version = ''; - /** - * Generated from protobuf field .proto.Device device = 8; - */ - private $device = 0; - /** - * Generated from protobuf field string device_name = 9; - */ - private $device_name = ''; - /** - * Generated from protobuf field .proto.Language language = 10; - */ - private $language = 0; - /** - * Generated from protobuf field string country = 11; - */ - private $country = ''; - /** - * Generated from protobuf field bool current = 12; - */ - private $current = false; - /** - * Generated from protobuf field uint32 create_time = 13; - */ - private $create_time = 0; - /** - * Generated from protobuf field uint32 active_time = 14; - */ - private $active_time = 0; - /** - * Generated from protobuf field string ip = 15; - */ - private $ip = ''; - - public function __construct() { - \GPBMetadata\UserSessionGetActiveList::initOnce(); - parent::__construct(); - } - - /** - * Generated from protobuf field uint64 session_id = 1; - * @return int|string - */ - public function getSessionId() - { - return $this->session_id; - } - - /** - * Generated from protobuf field uint64 session_id = 1; - * @param int|string $var - * @return $this - */ - public function setSessionId($var) - { - GPBUtil::checkUint64($var); - $this->session_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string app_name = 2; - * @return string - */ - public function getAppName() - { - return $this->app_name; - } - - /** - * Generated from protobuf field string app_name = 2; - * @param string $var - * @return $this - */ - public function setAppName($var) - { - GPBUtil::checkString($var, True); - $this->app_name = $var; - - return $this; - } - - /** - * Generated from protobuf field uint32 app_id = 3; - * @return int - */ - public function getAppId() - { - return $this->app_id; - } - - /** - * Generated from protobuf field uint32 app_id = 3; - * @param int $var - * @return $this - */ - public function setAppId($var) - { - GPBUtil::checkUint32($var); - $this->app_id = $var; - - return $this; - } - - /** - * Generated from protobuf field uint32 app_build_version = 4; - * @return int - */ - public function getAppBuildVersion() - { - return $this->app_build_version; - } - - /** - * Generated from protobuf field uint32 app_build_version = 4; - * @param int $var - * @return $this - */ - public function setAppBuildVersion($var) - { - GPBUtil::checkUint32($var); - $this->app_build_version = $var; - - return $this; - } - - /** - * Generated from protobuf field string app_version = 5; - * @return string - */ - public function getAppVersion() - { - return $this->app_version; - } - - /** - * Generated from protobuf field string app_version = 5; - * @param string $var - * @return $this - */ - public function setAppVersion($var) - { - GPBUtil::checkString($var, True); - $this->app_version = $var; - - return $this; - } - +if (false) { /** - * Generated from protobuf field .proto.Platform platform = 6; - * @return int + * This class is deprecated. Use Proto\UserSessionGetActiveListResponse\Session instead. + * @deprecated */ - public function getPlatform() - { - return $this->platform; - } - - /** - * Generated from protobuf field .proto.Platform platform = 6; - * @param int $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkEnum($var, \Proto\Platform::class); - $this->platform = $var; - - return $this; - } - - /** - * Generated from protobuf field string platform_version = 7; - * @return string - */ - public function getPlatformVersion() - { - return $this->platform_version; - } - - /** - * Generated from protobuf field string platform_version = 7; - * @param string $var - * @return $this - */ - public function setPlatformVersion($var) - { - GPBUtil::checkString($var, True); - $this->platform_version = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.Device device = 8; - * @return int - */ - public function getDevice() - { - return $this->device; - } - - /** - * Generated from protobuf field .proto.Device device = 8; - * @param int $var - * @return $this - */ - public function setDevice($var) - { - GPBUtil::checkEnum($var, \Proto\Device::class); - $this->device = $var; - - return $this; - } - - /** - * Generated from protobuf field string device_name = 9; - * @return string - */ - public function getDeviceName() - { - return $this->device_name; - } - - /** - * Generated from protobuf field string device_name = 9; - * @param string $var - * @return $this - */ - public function setDeviceName($var) - { - GPBUtil::checkString($var, True); - $this->device_name = $var; - - return $this; - } - - /** - * Generated from protobuf field .proto.Language language = 10; - * @return int - */ - public function getLanguage() - { - return $this->language; - } - - /** - * Generated from protobuf field .proto.Language language = 10; - * @param int $var - * @return $this - */ - public function setLanguage($var) - { - GPBUtil::checkEnum($var, \Proto\Language::class); - $this->language = $var; - - return $this; - } - - /** - * Generated from protobuf field string country = 11; - * @return string - */ - public function getCountry() - { - return $this->country; - } - - /** - * Generated from protobuf field string country = 11; - * @param string $var - * @return $this - */ - public function setCountry($var) - { - GPBUtil::checkString($var, True); - $this->country = $var; - - return $this; - } - - /** - * Generated from protobuf field bool current = 12; - * @return bool - */ - public function getCurrent() - { - return $this->current; - } - - /** - * Generated from protobuf field bool current = 12; - * @param bool $var - * @return $this - */ - public function setCurrent($var) - { - GPBUtil::checkBool($var); - $this->current = $var; - - return $this; - } - - /** - * Generated from protobuf field uint32 create_time = 13; - * @return int - */ - public function getCreateTime() - { - return $this->create_time; - } - - /** - * Generated from protobuf field uint32 create_time = 13; - * @param int $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkUint32($var); - $this->create_time = $var; - - return $this; - } - - /** - * Generated from protobuf field uint32 active_time = 14; - * @return int - */ - public function getActiveTime() - { - return $this->active_time; - } - - /** - * Generated from protobuf field uint32 active_time = 14; - * @param int $var - * @return $this - */ - public function setActiveTime($var) - { - GPBUtil::checkUint32($var); - $this->active_time = $var; - - return $this; - } - - /** - * Generated from protobuf field string ip = 15; - * @return string - */ - public function getIp() - { - return $this->ip; - } - - /** - * Generated from protobuf field string ip = 15; - * @param string $var - * @return $this - */ - public function setIp($var) - { - GPBUtil::checkString($var, True); - $this->ip = $var; - - return $this; - } - + class UserSessionGetActiveListResponse_Session {} } +class_exists(UserSessionGetActiveListResponse\Session::class); +@trigger_error('Proto\UserSessionGetActiveListResponse_Session is deprecated and will be removed in the next major release. Use Proto\UserSessionGetActiveListResponse\Session instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserSessionLogout.php b/src/Proto/UserSessionLogout.php index e0c157c..9b7e9f0 100644 --- a/src/Proto/UserSessionLogout.php +++ b/src/Proto/UserSessionLogout.php @@ -18,9 +18,18 @@ class UserSessionLogout extends \Google\Protobuf\Internal\Message */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserSessionLogout::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserSessionLogoutResponse.php b/src/Proto/UserSessionLogoutResponse.php index 7cabc91..7b657c0 100644 --- a/src/Proto/UserSessionLogoutResponse.php +++ b/src/Proto/UserSessionLogoutResponse.php @@ -18,9 +18,18 @@ class UserSessionLogoutResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserSessionLogout::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserSessionTerminate.php b/src/Proto/UserSessionTerminate.php index af1ca85..9471a15 100644 --- a/src/Proto/UserSessionTerminate.php +++ b/src/Proto/UserSessionTerminate.php @@ -22,9 +22,19 @@ class UserSessionTerminate extends \Google\Protobuf\Internal\Message */ private $session_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int|string $session_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserSessionTerminate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserSessionTerminateResponse.php b/src/Proto/UserSessionTerminateResponse.php index 0bc35c4..99823a0 100644 --- a/src/Proto/UserSessionTerminateResponse.php +++ b/src/Proto/UserSessionTerminateResponse.php @@ -18,9 +18,18 @@ class UserSessionTerminateResponse extends \Google\Protobuf\Internal\Message */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserSessionTerminate::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationChangeHint.php b/src/Proto/UserTwoStepVerificationChangeHint.php index 9175a17..1b4211e 100644 --- a/src/Proto/UserTwoStepVerificationChangeHint.php +++ b/src/Proto/UserTwoStepVerificationChangeHint.php @@ -26,9 +26,20 @@ class UserTwoStepVerificationChangeHint extends \Google\Protobuf\Internal\Messag */ private $hint = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $password + * @type string $hint + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationChangeHint::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationChangeHintResponse.php b/src/Proto/UserTwoStepVerificationChangeHintResponse.php index 95cc699..7c7807d 100644 --- a/src/Proto/UserTwoStepVerificationChangeHintResponse.php +++ b/src/Proto/UserTwoStepVerificationChangeHintResponse.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationChangeHintResponse extends \Google\Protobuf\Interna */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationChangeHint::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationChangeRecoveryEmail.php b/src/Proto/UserTwoStepVerificationChangeRecoveryEmail.php index 512fc99..ec965e2 100644 --- a/src/Proto/UserTwoStepVerificationChangeRecoveryEmail.php +++ b/src/Proto/UserTwoStepVerificationChangeRecoveryEmail.php @@ -26,9 +26,20 @@ class UserTwoStepVerificationChangeRecoveryEmail extends \Google\Protobuf\Intern */ private $email = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $password + * @type string $email + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationChangeRecoveryEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationChangeRecoveryEmailResponse.php b/src/Proto/UserTwoStepVerificationChangeRecoveryEmailResponse.php index a165ec2..b2fab10 100644 --- a/src/Proto/UserTwoStepVerificationChangeRecoveryEmailResponse.php +++ b/src/Proto/UserTwoStepVerificationChangeRecoveryEmailResponse.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationChangeRecoveryEmailResponse extends \Google\Protobu */ private $unconfirmed_email_pattern = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $unconfirmed_email_pattern + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationChangeRecoveryEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationChangeRecoveryQuestion.php b/src/Proto/UserTwoStepVerificationChangeRecoveryQuestion.php index ff146b9..16ed4dd 100644 --- a/src/Proto/UserTwoStepVerificationChangeRecoveryQuestion.php +++ b/src/Proto/UserTwoStepVerificationChangeRecoveryQuestion.php @@ -38,9 +38,23 @@ class UserTwoStepVerificationChangeRecoveryQuestion extends \Google\Protobuf\Int */ private $answer_two = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $password + * @type string $question_one + * @type string $answer_one + * @type string $question_two + * @type string $answer_two + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationChangeRecoveryQuestion::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationChangeRecoveryQuestionResponse.php b/src/Proto/UserTwoStepVerificationChangeRecoveryQuestionResponse.php index a951e21..1b1ca45 100644 --- a/src/Proto/UserTwoStepVerificationChangeRecoveryQuestionResponse.php +++ b/src/Proto/UserTwoStepVerificationChangeRecoveryQuestionResponse.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationChangeRecoveryQuestionResponse extends \Google\Prot */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationChangeRecoveryQuestion::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationCheckPassword.php b/src/Proto/UserTwoStepVerificationCheckPassword.php index 0c3e2e8..ff78634 100644 --- a/src/Proto/UserTwoStepVerificationCheckPassword.php +++ b/src/Proto/UserTwoStepVerificationCheckPassword.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationCheckPassword extends \Google\Protobuf\Internal\Mes */ private $password = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $password + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationCheckPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationCheckPasswordResponse.php b/src/Proto/UserTwoStepVerificationCheckPasswordResponse.php index d9b1905..b9cab03 100644 --- a/src/Proto/UserTwoStepVerificationCheckPasswordResponse.php +++ b/src/Proto/UserTwoStepVerificationCheckPasswordResponse.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationCheckPasswordResponse extends \Google\Protobuf\Inte */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationCheckPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationGetPasswordDetail.php b/src/Proto/UserTwoStepVerificationGetPasswordDetail.php index f645e3a..11755c6 100644 --- a/src/Proto/UserTwoStepVerificationGetPasswordDetail.php +++ b/src/Proto/UserTwoStepVerificationGetPasswordDetail.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationGetPasswordDetail extends \Google\Protobuf\Internal */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationGetPasswordDetail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationGetPasswordDetailResponse.php b/src/Proto/UserTwoStepVerificationGetPasswordDetailResponse.php index dfe9c22..65a4f51 100644 --- a/src/Proto/UserTwoStepVerificationGetPasswordDetailResponse.php +++ b/src/Proto/UserTwoStepVerificationGetPasswordDetailResponse.php @@ -38,9 +38,23 @@ class UserTwoStepVerificationGetPasswordDetailResponse extends \Google\Protobuf\ */ private $unconfirmed_email_pattern = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $question_one + * @type string $question_two + * @type string $hint + * @type bool $has_confirmed_recovery_email + * @type string $unconfirmed_email_pattern + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationGetPasswordDetail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswers.php b/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswers.php index cff1d76..6a95fdb 100644 --- a/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswers.php +++ b/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswers.php @@ -26,9 +26,20 @@ class UserTwoStepVerificationRecoverPasswordByAnswers extends \Google\Protobuf\I */ private $answer_two = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $answer_one + * @type string $answer_two + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationRecoverPasswordByAnswers::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswersResponse.php b/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswersResponse.php index 82bd523..5e7a1b9 100644 --- a/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswersResponse.php +++ b/src/Proto/UserTwoStepVerificationRecoverPasswordByAnswersResponse.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationRecoverPasswordByAnswersResponse extends \Google\Pr */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationRecoverPasswordByAnswers::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationRecoverPasswordByToken.php b/src/Proto/UserTwoStepVerificationRecoverPasswordByToken.php index 9717c23..63597f2 100644 --- a/src/Proto/UserTwoStepVerificationRecoverPasswordByToken.php +++ b/src/Proto/UserTwoStepVerificationRecoverPasswordByToken.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationRecoverPasswordByToken extends \Google\Protobuf\Int */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationRecoverPasswordByToken::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationRecoverPasswordByTokenResponse.php b/src/Proto/UserTwoStepVerificationRecoverPasswordByTokenResponse.php index 1dee098..7e02439 100644 --- a/src/Proto/UserTwoStepVerificationRecoverPasswordByTokenResponse.php +++ b/src/Proto/UserTwoStepVerificationRecoverPasswordByTokenResponse.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationRecoverPasswordByTokenResponse extends \Google\Prot */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationRecoverPasswordByToken::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationRequestRecoveryToken.php b/src/Proto/UserTwoStepVerificationRequestRecoveryToken.php index ad83cdd..4f4181c 100644 --- a/src/Proto/UserTwoStepVerificationRequestRecoveryToken.php +++ b/src/Proto/UserTwoStepVerificationRequestRecoveryToken.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationRequestRecoveryToken extends \Google\Protobuf\Inter */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationRequestRecoveryToken::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationRequestRecoveryTokenResponse.php b/src/Proto/UserTwoStepVerificationRequestRecoveryTokenResponse.php index 4ac1fbb..7a77f09 100644 --- a/src/Proto/UserTwoStepVerificationRequestRecoveryTokenResponse.php +++ b/src/Proto/UserTwoStepVerificationRequestRecoveryTokenResponse.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationRequestRecoveryTokenResponse extends \Google\Protob */ private $email_pattern = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $email_pattern + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationRequestRecoveryToken::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationResendVerifyEmail.php b/src/Proto/UserTwoStepVerificationResendVerifyEmail.php index f9ec0aa..596396e 100644 --- a/src/Proto/UserTwoStepVerificationResendVerifyEmail.php +++ b/src/Proto/UserTwoStepVerificationResendVerifyEmail.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationResendVerifyEmail extends \Google\Protobuf\Internal */ private $request = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationResendVerifyEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationResendVerifyEmailResponse.php b/src/Proto/UserTwoStepVerificationResendVerifyEmailResponse.php index 3e4d39b..3b8874a 100644 --- a/src/Proto/UserTwoStepVerificationResendVerifyEmailResponse.php +++ b/src/Proto/UserTwoStepVerificationResendVerifyEmailResponse.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationResendVerifyEmailResponse extends \Google\Protobuf\ */ private $unconfirmed_email_pattern = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $unconfirmed_email_pattern + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationResendVerifyEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationSetPassword.php b/src/Proto/UserTwoStepVerificationSetPassword.php index c77f0e3..4b1085c 100644 --- a/src/Proto/UserTwoStepVerificationSetPassword.php +++ b/src/Proto/UserTwoStepVerificationSetPassword.php @@ -50,9 +50,26 @@ class UserTwoStepVerificationSetPassword extends \Google\Protobuf\Internal\Messa */ private $hint = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $old_password + * @type string $new_password + * @type string $recovery_email + * @type string $question_one + * @type string $answer_one + * @type string $question_two + * @type string $answer_two + * @type string $hint + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationSetPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationSetPasswordResponse.php b/src/Proto/UserTwoStepVerificationSetPasswordResponse.php index 263a523..916470b 100644 --- a/src/Proto/UserTwoStepVerificationSetPasswordResponse.php +++ b/src/Proto/UserTwoStepVerificationSetPasswordResponse.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationSetPasswordResponse extends \Google\Protobuf\Intern */ private $unconfirmed_email_pattern = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $unconfirmed_email_pattern + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationSetPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationUnsetPassword.php b/src/Proto/UserTwoStepVerificationUnsetPassword.php index c7518bf..ce7a379 100644 --- a/src/Proto/UserTwoStepVerificationUnsetPassword.php +++ b/src/Proto/UserTwoStepVerificationUnsetPassword.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationUnsetPassword extends \Google\Protobuf\Internal\Mes */ private $password = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $password + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationUnsetPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationUnsetPasswordResponse.php b/src/Proto/UserTwoStepVerificationUnsetPasswordResponse.php index 2b1a799..3bc647b 100644 --- a/src/Proto/UserTwoStepVerificationUnsetPasswordResponse.php +++ b/src/Proto/UserTwoStepVerificationUnsetPasswordResponse.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationUnsetPasswordResponse extends \Google\Protobuf\Inte */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationUnsetPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationVerifyPassword.php b/src/Proto/UserTwoStepVerificationVerifyPassword.php index 3246a23..635b3d9 100644 --- a/src/Proto/UserTwoStepVerificationVerifyPassword.php +++ b/src/Proto/UserTwoStepVerificationVerifyPassword.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationVerifyPassword extends \Google\Protobuf\Internal\Me */ private $password = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $password + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationVerifyPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationVerifyPasswordResponse.php b/src/Proto/UserTwoStepVerificationVerifyPasswordResponse.php index 84ba303..2a0dd9e 100644 --- a/src/Proto/UserTwoStepVerificationVerifyPasswordResponse.php +++ b/src/Proto/UserTwoStepVerificationVerifyPasswordResponse.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationVerifyPasswordResponse extends \Google\Protobuf\Int */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationVerifyPassword::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationVerifyRecoveryEmail.php b/src/Proto/UserTwoStepVerificationVerifyRecoveryEmail.php index 2fa8a25..702857c 100644 --- a/src/Proto/UserTwoStepVerificationVerifyRecoveryEmail.php +++ b/src/Proto/UserTwoStepVerificationVerifyRecoveryEmail.php @@ -22,9 +22,19 @@ class UserTwoStepVerificationVerifyRecoveryEmail extends \Google\Protobuf\Intern */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationVerifyRecoveryEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserTwoStepVerificationVerifyRecoveryEmailResponse.php b/src/Proto/UserTwoStepVerificationVerifyRecoveryEmailResponse.php index 34affed..23391bd 100644 --- a/src/Proto/UserTwoStepVerificationVerifyRecoveryEmailResponse.php +++ b/src/Proto/UserTwoStepVerificationVerifyRecoveryEmailResponse.php @@ -18,9 +18,18 @@ class UserTwoStepVerificationVerifyRecoveryEmailResponse extends \Google\Protobu */ private $response = null; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserTwoStepVerificationVerifyRecoveryEmail::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserUpdateStatus.php b/src/Proto/UserUpdateStatus.php index 36e993f..2b4087d 100644 --- a/src/Proto/UserUpdateStatus.php +++ b/src/Proto/UserUpdateStatus.php @@ -22,9 +22,19 @@ class UserUpdateStatus extends \Google\Protobuf\Internal\Message */ private $status = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $status + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserUpdateStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserUpdateStatus/Status.php b/src/Proto/UserUpdateStatus/Status.php new file mode 100644 index 0000000..4509919 --- /dev/null +++ b/src/Proto/UserUpdateStatus/Status.php @@ -0,0 +1,24 @@ +proto.UserUpdateStatus.Status + */ +class Status +{ + /** + * Generated from protobuf enum ONLINE = 0; + */ + const ONLINE = 0; + /** + * Generated from protobuf enum OFFLINE = 1; + */ + const OFFLINE = 1; +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Proto\UserUpdateStatus_Status::class); + diff --git a/src/Proto/UserUpdateStatusResponse.php b/src/Proto/UserUpdateStatusResponse.php index 609bbb2..8954990 100644 --- a/src/Proto/UserUpdateStatusResponse.php +++ b/src/Proto/UserUpdateStatusResponse.php @@ -26,9 +26,20 @@ class UserUpdateStatusResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int $status + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserUpdateStatus::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserUpdateStatus_Status.php b/src/Proto/UserUpdateStatus_Status.php index e1f38ee..6d94aba 100644 --- a/src/Proto/UserUpdateStatus_Status.php +++ b/src/Proto/UserUpdateStatus_Status.php @@ -4,18 +4,13 @@ namespace Proto; -/** - * Protobuf enum Proto\UserUpdateStatus\Status - */ -class UserUpdateStatus_Status -{ +if (false) { /** - * Generated from protobuf enum ONLINE = 0; + * This class is deprecated. Use Proto\UserUpdateStatus\Status instead. + * @deprecated */ - const ONLINE = 0; - /** - * Generated from protobuf enum OFFLINE = 1; - */ - const OFFLINE = 1; + class UserUpdateStatus_Status {} } +class_exists(UserUpdateStatus\Status::class); +@trigger_error('Proto\UserUpdateStatus_Status is deprecated and will be removed in the next major release. Use Proto\UserUpdateStatus\Status instead', E_USER_DEPRECATED); diff --git a/src/Proto/UserUsernameToId.php b/src/Proto/UserUsernameToId.php index 29bd6e1..5403647 100644 --- a/src/Proto/UserUsernameToId.php +++ b/src/Proto/UserUsernameToId.php @@ -22,9 +22,19 @@ class UserUsernameToId extends \Google\Protobuf\Internal\Message */ private $username = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $username + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserUsernameToId::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserUsernameToIdResponse.php b/src/Proto/UserUsernameToIdResponse.php index e8cdcfb..4a54cb8 100644 --- a/src/Proto/UserUsernameToIdResponse.php +++ b/src/Proto/UserUsernameToIdResponse.php @@ -22,9 +22,19 @@ class UserUsernameToIdResponse extends \Google\Protobuf\Internal\Message */ private $user_id = 0; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type int|string $user_id + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserUsernameToId::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserVerify.php b/src/Proto/UserVerify.php index 7c4a996..3e9acd9 100644 --- a/src/Proto/UserVerify.php +++ b/src/Proto/UserVerify.php @@ -26,9 +26,20 @@ class UserVerify extends \Google\Protobuf\Internal\Message */ private $username = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type int $code + * @type string $username + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserVerify::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserVerifyNewDevice.php b/src/Proto/UserVerifyNewDevice.php index 9093379..42be693 100644 --- a/src/Proto/UserVerifyNewDevice.php +++ b/src/Proto/UserVerifyNewDevice.php @@ -22,9 +22,19 @@ class UserVerifyNewDevice extends \Google\Protobuf\Internal\Message */ private $token = ''; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Request $request + * @type string $token + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserVerifyNewDevice::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserVerifyNewDeviceResponse.php b/src/Proto/UserVerifyNewDeviceResponse.php index 769332c..3c8e4fc 100644 --- a/src/Proto/UserVerifyNewDeviceResponse.php +++ b/src/Proto/UserVerifyNewDeviceResponse.php @@ -54,9 +54,27 @@ class UserVerifyNewDeviceResponse extends \Google\Protobuf\Internal\Message */ private $two_step_verification = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $app_name + * @type int $app_id + * @type int $app_build_version + * @type string $app_version + * @type int $platform + * @type string $platform_version + * @type int $device + * @type string $device_name + * @type bool $two_step_verification + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserVerifyNewDevice::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/UserVerifyResponse.php b/src/Proto/UserVerifyResponse.php index 78a2cf0..3812b8b 100644 --- a/src/Proto/UserVerifyResponse.php +++ b/src/Proto/UserVerifyResponse.php @@ -26,9 +26,20 @@ class UserVerifyResponse extends \Google\Protobuf\Internal\Message */ private $new_user = false; - public function __construct() { + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\Response $response + * @type string $token + * @type bool $new_user + * } + */ + public function __construct($data = NULL) { \GPBMetadata\UserVerify::initOnce(); - parent::__construct(); + parent::__construct($data); } /** diff --git a/src/Proto/Wallpaper.php b/src/Proto/Wallpaper.php index f6c9fc4..618495c 100644 --- a/src/Proto/Wallpaper.php +++ b/src/Proto/Wallpaper.php @@ -22,9 +22,19 @@ class Wallpaper extends \Google\Protobuf\Internal\Message */ private $color = ''; - public function __construct() { - \GPBMetadata\Global::initOnce(); - parent::__construct(); + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Proto\File $file + * @type string $color + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\PBGlobal::initOnce(); + parent::__construct($data); } /**